Skip to content

Add support for DB spans with Supabase #3661

Open
@Dhrumil-Sentry

Description

@Dhrumil-Sentry

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

.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions