Skip to content

Sinatra integration not setting rack.request #486

Closed

Description

I'm setting up DD APM to trace a Rack -> Sinatra -> Postgres application

With the following configuration each of these layers are presented as a seperate service in the environment. Which seems to be the way DD is expecting to be setup.

  Datadog.configure do |c|
    c.tracer(
      hostname: ENV.fetch('DD_AGENT_SERVICE_HOST'),
      port: ENV.fetch('DD_AGENT_SERVICE_PORT'),
      env: ENV.fetch('DD_APM_ENV')
    )
    c.use :rack
    c.use :sinatra 
    c.use :sequel
  end

  use Datadog::Contrib::Rack::TraceMiddleware

image

However the rack service is grouping requests by http method and response code

image

Whilst the Sinatra service is working as expected:

image

From reading through the code it seems like the Sinatra integration should be setting the resource on the rack span or am I missing something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

communityWas opened by a community memberintegrationsInvolves tracing integrationsquestionGeneral inquiry that may or may not involve changes

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions