sentry-python
sentry-python copied to clipboard
DB Spans don't show while using Supabase
Problem Statement
I have the following code snippet:
@app.route('/api/job-experience', methods=['GET'])
def get_job_experience():
user_id = get_user_id()
print(f"User ID: {user_id}") # Print user ID for each action
if not user_id:
return jsonify({'error': 'Unauthorized'}), 401
# Retrieve all job experiences from the 'job_experiences' table in Supabase for the authenticated user
response = supabase.table('job_experiences').select("*").eq('user_id', user_id).execute()
job_experiences = response.data
return jsonify({'jobExperiences': job_experiences}), 200
But my trace does not have any db spans
Solution Brainstorm
.