Skip to content

ddtrace - throws error when deploying a rails 6.1 instance #3649

Open

Description

Current behaviour

ERROR -- ddtrace: [ddtrace] (/usr/local/bundle/gems/ddtrace-1.22.0/lib/datadog/core/remote/negotiation.rb:50:in `endpoint?')

agent reachable but does not report /v0.7/config

Expected behaviour

dd-trace should not throw an error when a instance is deployed.
Will this cause an issue when gathering logs? Currently I see data is getting to datadog, but can't confirm if something is missing

Steps to reproduce

How does datadog help you?

Environment

  • datadog version: 7.0.0.1.0
  • Configuration block (Datadog.configure ...):
  gem 'ddtrace', require: 'ddtrace/auto_instrument'
if [[ $env != "dev" && "$DATADOG_APM" = "true" ]]; then
  export DD_SERVICE=$service
  export DD_VERSION=$version_app

  export DD_APM_ENABLED=true
  export DD_APM_NON_LOCAL_TRAFFIC=true
  export DD_PROFILING_ENABLED=true
  export DD_PROFILING_ALLOCATION_ENABLED=true
  export DD_TRACE_ENABLED=true
  export DD_TRACE_AGENT_URL=http://datadog-agent:8126
fi
require 'ddtrace'

Datadog.configure do |c|
  c.tracing.instrument :rails
end

Datadog::Tracing.before_flush(
  Datadog::Tracing::Pipeline::SpanFilter.new { |span|
    span.name == "rack.request" && span.get_tag("http.url") == "/health"
  }
)
  • Ruby version: 3.1.5
  • Operating system: Linux Debian bookworm (Dockerized)
  • Relevant library versions:
  • bundler: 2.5.9
  • rails: 6.1.4.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

bugInvolves a bugcommunityWas opened by a community member

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions