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

Fix for issue #73: Allow ScopeManager.active().close() and let it be a no-op #74

Merged
merged 1 commit into from
Apr 11, 2018

Conversation

hanson76
Copy link

No description provided.

@codefromthecrypt
Copy link
Contributor

codefromthecrypt commented Apr 11, 2018 via email

@hanson76
Copy link
Author

One example is opentracing-contrib java-spring-web [1]

There are also cases where you want to do
try (Scope scope = opentracing.scopeManager().active()) {
// Do something
}

Some implementations of the tracing API might need to do things on scope close.

[1] https://github.com/opentracing-contrib/java-spring-web/blob/master/opentracing-spring-web/src/main/java/io/opentracing/contrib/spring/web/interceptor/TracingHandlerInterceptor.java

@codefromthecrypt
Copy link
Contributor

I made a request to remove this api. Meanwhile will merge your change and cut a patch opentracing/opentracing-java#267

@codefromthecrypt
Copy link
Contributor

Thanks for the background. FYI in spring we stopped using MVC filters for lifecycle, rather deferring to servlet layer. MVC filters are a bit unreliable and also can be cut-off by servlet layer filters. This change is available in Brave 4.18+ https://github.com/openzipkin/brave/releases/tag/4.18.2

@codefromthecrypt
Copy link
Contributor

going out now in 0.30.1

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

Successfully merging this pull request may close these issues.

2 participants