-
Notifications
You must be signed in to change notification settings - Fork 327
Panic in span End() when created with NewSpan #717
Comments
For spans created with NewSpanXXX, we cannot create execution tracer tasks. Don't try to end if none is created. Fixes census-instrumentation#717.
For spans created with NewSpanXXX, we cannot create execution tracer tasks. Don't try to end if none is created. Fixes #717.
Thanks. I would have done the PR myself but signing the Contributor License Agreement is quite a hassle. I'm using this library in production, is there a way I can freeze the version of this library to avoid my infrastructure going down because of panics introduced in the code? |
@delthas not a problem, thank you for reporting it and for using OpenCensus! Awesome, that's great to know. So in order to freeze a version, perhaps you can use a package management tool, as per https://github.com/golang/go/wiki/PackageManagementTools? Also it would be great to keep in touch with companies/individuals using OpenCensus in production, if you are comfortable doing so, please send me an email at [email protected] telling me how you are using it and in the future, we'll compile a list and post it publicly on the wiki here perhaps or somewhere. |
PS: for clarity, I asked for an email because I haven't yet discussed with the OpenCensus team on how to liase with companies using OpenCensus i.e. publicly via wiki? Specialized contact? I didn't want to make a wiki suggestion without first discussing with the team on liason policy |
@delthas, you should pin to a specific release version at https://github.com/census-instrumentation/opencensus-go/releases and have reproducible builds by using a dependency management tool such as dep (https://github.com/golang/dep). |
When creating a span using the now deprecated NewSpan function, calling End() on it panics. Panic trace:
The simplest way to fix this is probably to replace
s.executionTracerSpanEnd()
byif s.executionTracerSpanEnd != nil { s.executionTracerSpanEnd() }
.This is a serious bug caused by #715 .
The text was updated successfully, but these errors were encountered: