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

Middleware (maybe) not working #1

Open
italux opened this issue May 30, 2021 · 3 comments
Open

Middleware (maybe) not working #1

italux opened this issue May 30, 2021 · 3 comments

Comments

@italux
Copy link

italux commented May 30, 2021

Hey @wesdu

I'm trying to use your library but even after installation and add "django_istio_opentracing.middleware.Middleware", to the application settings, which is running in Kubernetes + Istio, I'm not able to see new spans on the Jaeger, I'm only able to see spans related to Istio Proxy. There is something I'm missing here?

@wesdu
Copy link
Owner

wesdu commented May 31, 2021

any detail? Are you using requests ?

@italux
Copy link
Author

italux commented Jun 1, 2021

I have a very complex application and I'm trying to get all requests passing through, going to the database, other systems, and so on. The application uses requests in some places but even the requests that use it I'm not able to see into the Jaeger from Istio installation. Let me explain what I did until now...

  1. I've added the configuration below to settings
from config.settings.base import MIDDLEWARE

MIDDLEWARE += [
    "django_istio_opentracing.middleware.Middleware",
]
  1. After that I made several requests to the application but I'm only able to see the Istio related tracing
    image

@wesdu
Copy link
Owner

wesdu commented Jun 3, 2021

If you are using requests to make request
this code below will help.

from django_istio_opentracing import monkey
monkey.patch_requests()

if you are using other libs, you should get the span by your self. And add to your request headers.

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