Skip to content

[BUG]: Prisma DBM propagation does not work correctly. #6063

@public

Description

@public

Tracer Version(s)

5.58.0

Node.js Version(s)

22

Bug Report

DBM propagation should work with Prisma but it doesn't because the traceparent is invalid.

Reproduction Code

  1. Setup Prisma
  2. Setup dd-trace with dbmPropagationMode=full.
  3. Register the dd-trace OTel TracerProvider
  4. Run some queries.

Prisma supports trace propagation via OTel and adds the traceparent comment based on the OTel context. However using the new dd-trace Prisma support this comment always comes out as /* traceparent='00-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-bbbbbbbbbbbbbbbb-01' */ because it is hard coded to that value here.

Error Logs

No response

Tracer Config

No response

Operating System

No response

Bundling

Unsure

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions