sentry-python icon indicating copy to clipboard operation
sentry-python copied to clipboard

DB Spans don't show while using Supabase

Open Dhrumil-Sentry opened this issue 4 months ago • 0 comments

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 Image

Solution Brainstorm

.

Dhrumil-Sentry avatar Oct 15 '24 19:10 Dhrumil-Sentry