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

does not work when started via flask run #5

Closed
ror6ax opened this issue Nov 6, 2017 · 2 comments
Closed

does not work when started via flask run #5

ror6ax opened this issue Nov 6, 2017 · 2 comments

Comments

@ror6ax
Copy link
Contributor

ror6ax commented Nov 6, 2017

The following script never starts the webserver and just hangs forever:

import opentracing
from flask import Flask
from flask_opentracing import FlaskTracer
from jaeger_client import Config

app = Flask(__name__)

config = Config(
config={ # usually read from some yaml config
                          'sampler': {
                          'type': 'const',
                          'param': 1,
                  },
                          'logging': True,
                  },
service_name='flask_app_1',
)


opentracing_tracer = config.initialize_tracer()
tracer = FlaskTracer(opentracing_tracer)

@app.route('/some_url')
@tracer.trace()
def some_view_func():
    return "some_view"

With debug logging turned on, I see this:

2017-11-06 15:10:16,177 Initializing Jaeger Tracer with UDP reporter

Same script with minimal changes started by python scriptname.py works as a charm.

@ror6ax
Copy link
Contributor Author

ror6ax commented Nov 27, 2017

Hi guys, any update on this?

@ror6ax
Copy link
Contributor Author

ror6ax commented Jan 3, 2018

Addressed by #4

@ror6ax ror6ax closed this as completed Jan 3, 2018
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

1 participant