-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Service name is always "celery-worker" regardless of attempts to change it. #510
Comments
Hey @jrsmith3! Hmm it seems as though we are setting the service name regardless of any configuration provided. So this behaviour is expected. Although this behaviour certainly does not seem ideal if a custom service name is provided. Thanks for reporting this, we'll get back to you about our plans around this soon! |
@jrsmith3 we're testing a new way to instrument Celery and if the result is positive, this task will be resolved with the new configuration system. From your code, will be enough: from ddtrace import config
config.celery['service_name'] = 'my-service'
# or task based
config.get_from(task)['service_name'] = 'another-service-for-this-task-only' I will be sure this is shipped next week. Thanks for your patience. |
@palazzem Perfect. Thanks for turning this around so quickly. Question: the example you posted is an example of the future release, or can I use that code with the current release? |
You're welcome @jrsmith3! This example is for a future release. We're already using it for Also we changed the way Celery instrumented because we had developers reporting that it wasn't working for them. The new approach is Sounds good to you to try and install a beta release before we ship the 0.12.2? |
I am trying to instrument my celery application with
ddrtace
and I cannot change its Datadog service name. The service name always shows up as "celery-worker" in the console even though a call toPin.get_from
shows the service name set to what I chose.Here is some code showing what I tried:
However, when I run my celery application, the Datadog console shows the service name as "celery-worker" in the "APM" -> "Services" window of the web console. I see similar behavior if I attempt to change the service name using
tracer.set_service_info
.Does anyone know how to set the service name of a celery application? Thanks in advance.
The text was updated successfully, but these errors were encountered: