-
Notifications
You must be signed in to change notification settings - Fork 12
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
Flask with Pymongo Instrumentation is not consistent and reflects wrong service name #72
Comments
@davkal not sure about the label your set. |
Not to worry, this label is needed for our internal triaging tool. But regardless, there is still a possibility that something is off in the x-ray-to-jaeger mapping code that could cause this. If it's a trace viewer issue, then we should reopen this in the grafana repo with the label |
After some time I was able to replicate the issue. Thanks for the detailed issue. |
@yossicohn-hs Hello! Taking a look at this now, apologies for the delay! A few questions:
@zoltanbedi, do you recall any additional details on this ticket? Would it make more sense to close and reopen this for the traces team, or does the issue seem to be with the xray datasource plugin? Thanks so much! |
@sarahzinger Oh well, it's been a while. Only thing I can recall is that it took some time to setup the python project but at the end I saw the issue happening. Sadly I can't recall what was the issue there. |
@zoltanbedi @sarahzinger I think this is behaving ok now |
That is awesome! @yossicohn-hs thanks for letting us know! |
When Running Flask(or FastAPI) instrumentation with Pymongo instrumentation, we get Grafana different visualization.
A function residing under a Flask would once get a "service" with proper Flask value and on the other occasion it would get the wrong value of "MongoDB_Database"
Simulation,
Step 1 - create flask image, using Flask and Pymongo instrumentation
Step 2 - run the image with was collector (via docker-compose)
step 3 - Grafana Traces seem different than AWS XRay
In the code below 2 functions should be under the Flask service (as defined by the OTEL_RESOURCE_ATTRIBUTES service.name in the service Environment Variable) function
do_my_function
and thedo_my_second_function
somehowthe result is with the service (and coloring ) with the MongoDB_Database vs the Flask service.
This happens in most of the traces while avery few get the proper service name and coloring
The python code is:
requirements.txt
The text was updated successfully, but these errors were encountered: