Skip to content
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 tag in pymongo span cannot be overridden #10897

Open
osawa-eiji opened this issue Oct 2, 2024 · 2 comments
Open

service tag in pymongo span cannot be overridden #10897

osawa-eiji opened this issue Oct 2, 2024 · 2 comments

Comments

@osawa-eiji
Copy link

Summary of problem

The following is specified as in the documentation, but the service tag is not overridden and the default "pymongo" is output.

    ddtrace.config.pymongo["service"] = "anther-mongo"
    ddtrace.patch(pymongo=True)

Incidentally, it is overwritten without any problems in redis.

    ddtrace.config.redis["service"] = "anther-redis"
    ddtrace.patch(redis=True)

Can you think of any cause for this event, such as an incorrect designation method?

Which version of dd-trace-py are you using?

2.14.0

Which version of pip are you using?

Use poetry instead of pip.
poetry version is 1.8.3

Which libraries and their versions are you using?

pymongo==4.9.1

How can we reproduce your problem?

Execute with the following designation

    ddtrace.config.pymongo["service"] = "anther-service"
    ddtrace.patch(pymongo=True)

What is the result that you get?

service tag in pymongo span not overridden.

What is the result that you expected?

service tag in pymongo span is overwritten.

@quinna-h
Copy link
Contributor

quinna-h commented Oct 7, 2024

Hi @osawa-eiji !

Thanks for raising this issue. This should be fixed by #10917.

Please follow up if you have further issues.

@osawa-eiji
Copy link
Author

Hi @quinna-h

Thank you for your response!
We will check this when it is released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants