census-instrumentation / opencensus-go

A stats collection and distributed tracing framework
http://opencensus.io
Apache License 2.0
2.06k stars 327 forks source link

Revert "Allow replacing trace SDK (#1234)" #1235

Closed tbpg closed 4 years ago

tbpg commented 4 years ago

This reverts commit fc3822be251c0e5c0d1b92bd51fabe401fe3c0bf.

This is causing a break in Google Cloud Functions, which depends on master when running in GOPATH mode.

See https://github.com/GoogleCloudPlatform/functions-framework-go/issues/56.

Here is the error:

src/github.com/cloudevents/sdk-go/v2/extensions/distributed_tracing_extension.go:161:3: cannot use span (type trace.Span) as type *trace.Span in return argument:
    *trace.Span is pointer to interface, not interface; Error ID: 1093f764
tbpg commented 4 years ago

cc @nilebox @dashpole

nilebox commented 4 years ago

@tbpg It seems that you're using the HEAD revision for some reason? The breaking change wasn't released yet AFAICT. Can't you pin the dependency tag to v0.22.5?

@dashpole if we can come up with a backward compatible solution that would be preferred over the reverted change. We can't expect every library to migrate to the latest OpenCensus release.

tbpg commented 4 years ago

In GOPATH mode, you need some extra dependency/vendor management to depend on a specific version. We don't have that at the moment.