You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto Instrumentation in the tracing tag isn't setting the _dd.base_service which leads to un-necessary service creation in the APM services page, ideally these services should be clubbed inside the main service.
Datadog.configuredo |config|
## https://docs.datadoghq.com/containers/amazon_ecs/apm/?tab=ec2metadataendpoint#imdsv2.## For task running inside ECS we need to fetch the host IP where the container is running as a daemon :|# https://docs.datadoghq.com/tracing/trace_collection/automatic_instrumentation/dd_libraries/ruby/#additional-configurationconfig.service='service_name'config.agent.host=fetch_ecs_host_ipconfig.profiling.enabled=trueconfig.env=Rails.env# Changes the default value for service_name to the application service name across all instrumentationconfig.tracing.contrib.global_default_service_name.enabled=trueconfig.diagnostics.debug=trueend
How does datadog help you?
Environment
datadog version: 2.3.0
Configuration block
Datadog.configure do |config|
## https://docs.datadoghq.com/containers/amazon_ecs/apm/?tab=ec2metadataendpoint#imdsv2.
## For task running inside ECS we need to fetch the host IP where the container is running as a daemon :|
# https://docs.datadoghq.com/tracing/trace_collection/automatic_instrumentation/dd_libraries/ruby/#additional-configuration
config.service = 'service_name'
config.agent.host = fetch_ecs_host_ip
config.profiling.enabled = true
config.env = Rails.env
# Changes the default value for service_name to the application service name across all instrumentation
config.tracing.contrib.global_default_service_name.enabled = true
config.diagnostics.debug = true
end
Ruby version: ruby 3.3.0p0
Operating system: Not Relevant
Relevant library versions:
The text was updated successfully, but these errors were encountered:
Current behaviour
Auto Instrumentation in the tracing tag isn't setting the
_dd.base_service
which leads to un-necessary service creation in the APM services page, ideally these services should be clubbed inside the main service.Expected behaviour
Had to add following line
config.tracing.instrument :redis, service_name: config.service + "_" + "redis"
Steps to reproduce
Using Datadog's automatic instrumenation guide - https://docs.datadoghq.com/tracing/trace_collection/automatic_instrumentation/dd_libraries/ruby/ by setting
Gemfile
config/initializers/datadog.rb
How does
datadog
help you?Environment
The text was updated successfully, but these errors were encountered: