-
Notifications
You must be signed in to change notification settings - Fork 144
Subsegment name serialization causing MissingName error #168
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
Comments
Hey, What framework are you instrumenting that's generating the subsegments? The Django Middleware is instrumented to generate Segments only. It seems like whatever's generating the subsegment is where the issue is. Is there a code snippet you can provide that pinpoints what method call within your application is causing this? Additionally, what environment are you running this in? |
Hi there, we're facing this same issue with the following environment:
|
Hmmm interesting, it looks like the issue you're having is exactly the same. @crustafari, can you provide your minimal X-Ray configuration information? I can't seem to reproduce this issue on my end. Also, what environment are you running this in? Is this in Lambda? If this is in a regular desktop environment, this confuses me because Django should be generating segments, not subsegments. It only generates subsegments if you're using a Serverless architecture (API Gateway -> Lambda). |
My environment is a Django 2.2.3 app in a Docker container running locally, with the xray daemon running in a separate container. |
We don't currently support versions of Django > 2 yet. It's in our backlog to add support for it as it has been a customer ask #10. Which probably makes sense why we're seeing these errors. There has probably been some major changes to Django that has caused it to not work with our current Django patcher. A PR is always welcome and we could provide guidance. In the mean time please stay tuned. |
Uh oh!
There was an error while loading. Please reload this page.
XRay Daemon reports the following error:
Simple setup. Django app, using middleware. setup includes:
I think subsegments' subsegments' names are not being serialized correctly. Below is a snippet from the XRay Daemon payload.Notice the
"name": {"py/newargs": ["core/snippets/ga.html"]}
name of the subsegment, which should instead be a string according to the segment JSON schema.All SDK versions between 2.0.1 and 2.4.2 were tested and have the same issue. Same issue on Python 3.6 and 3.7 as well. Django version is 2.2.3.
The text was updated successfully, but these errors were encountered: