Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

go.mod: update to OpenCensus-Proto v0.2.0#48

Merged
odeke-em merged 2 commits intocensus-ecosystem:masterfrom
orijtech:update-opencensus-proto-to-v0.2.0
Mar 13, 2019
Merged

go.mod: update to OpenCensus-Proto v0.2.0#48
odeke-em merged 2 commits intocensus-ecosystem:masterfrom
orijtech:update-opencensus-proto-to-v0.2.0

Conversation

@odeke-em
Copy link
Copy Markdown
Contributor

Updated to OpenCensus-Proto v0.2.0 but also
ran go mod tidy too for a clean-up of old
resources.

Copy link
Copy Markdown
Contributor

@songy23 songy23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you'll need to fix a few backwards-incompatible changes in proto.

Updated to OpenCensus-Proto v0.2.0 but also
ran `go mod tidy` too for a clean-up of old
resources.
@odeke-em odeke-em force-pushed the update-opencensus-proto-to-v0.2.0 branch from 7e542d8 to 472362a Compare March 13, 2019 03:56
@odeke-em
Copy link
Copy Markdown
Contributor Author

I think you'll need to fix a few backwards-incompatible changes in proto.

@songy23 roger that, I updated the Proto version as you did in census-ecosystem/opencensus-go-exporter-stackdriver#102

@odeke-em
Copy link
Copy Markdown
Contributor Author

And some errors from that update

contrib.go.opencensus.io/exporter/ocagent
# contrib.go.opencensus.io/exporter/ocagent
./ocagent.go:297:35: cannot convert true (type untyped bool) to type "github.com/census-instrumentation/opencensus-proto/gen-go/trace/v1".ConstantSampler_ConstantDecision
./ocagent.go:297:35: invalid operation: csamp.Decision == true (mismatched types "github.com/census-instrumentation/opencensus-proto/gen-go/trace/v1".ConstantSampler_ConstantDecision and bool)
./transform_stats_to_metrics.go:53:3: unknown field 'Descriptor_' in struct literal of type "github.com/census-instrumentation/opencensus-proto/gen-go/metrics/v1".Metric
./transform_stats_to_metrics.go:59:45: undefined: "github.com/census-instrumentation/opencensus-proto/gen-go/metrics/v1".Metric_MetricDescriptor
./transform_stats_to_metrics.go:67:11: undefined: "github.com/census-instrumentation/opencensus-proto/gen-go/metrics/v1".Metric_MetricDescriptor

@songy23
Copy link
Copy Markdown
Contributor

songy23 commented Mar 13, 2019

And some errors from that update

Yes, those are the backwards-incompatible changes that I'm referring to (census-instrumentation/opencensus-proto#184 and census-instrumentation/opencensus-proto#182).

@songy23
Copy link
Copy Markdown
Contributor

songy23 commented Mar 13, 2019

./ocagent.go:297:38: undefined: agenttracebp
./transform_stats_to_metrics.go:53:3: cannot use promoted field Descriptor in struct literal of type "github.com/census-instrumentation/opencensus-proto/gen-go/metrics/v1".Metric

Please fix.

@odeke-em odeke-em force-pushed the update-opencensus-proto-to-v0.2.0 branch 4 times, most recently from d1a1ce4 to 33225ca Compare March 13, 2019 04:50
@odeke-em
Copy link
Copy Markdown
Contributor Author

@songy23 alright, just one left from OpenCensus-Proto

# github.com/census-instrumentation/opencensus-proto/gen-go/agent/common/v1
../../../../pkg/mod/github.com/census-instrumentation/opencensus-proto@v0.2.0/gen-go/agent/common/v1/common.pb.go:22:11: undefined: proto.ProtoPackageIsVersion3
# github.com/census-instrumentation/opencensus-proto/gen-go/resource/v1
../../../../pkg/mod/github.com/census-instrumentation/opencensus-proto@v0.2.0/gen-go/resource/v1/resource.pb.go:21:11: undefined: proto.ProtoPackageIsVersion3

@songy23
Copy link
Copy Markdown
Contributor

songy23 commented Mar 13, 2019

From what I saw the error is different (https://travis-ci.org/census-ecosystem/opencensus-go-exporter-ocagent/builds/505582131#L678):

# contrib.go.opencensus.io/exporter/ocagent_test [contrib.go.opencensus.io/exporter/ocagent.test]
./ocagent_test.go:57:47: cannot use true (type bool) as type "github.com/census-instrumentation/opencensus-proto/gen-go/trace/v1".ConstantSampler_ConstantDecision in field value
./ocagent_test.go:85:47: cannot use false (type bool) as type "github.com/census-instrumentation/opencensus-proto/gen-go/trace/v1".ConstantSampler_ConstantDecision in field value

undefined: proto.ProtoPackageIsVersion3

This should be fixed as long as you used v1.3.0 for protobuf.

@odeke-em odeke-em force-pushed the update-opencensus-proto-to-v0.2.0 branch from 33225ca to 7aed492 Compare March 13, 2019 05:49
Copy link
Copy Markdown
Contributor

@songy23 songy23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for looking into this!

@odeke-em
Copy link
Copy Markdown
Contributor Author

Thank you for the review @songy23!

@odeke-em odeke-em merged commit 7aed492 into census-ecosystem:master Mar 13, 2019
@odeke-em
Copy link
Copy Markdown
Contributor Author

I'll just publish a new version then we'll be gucci to go.

@odeke-em odeke-em deleted the update-opencensus-proto-to-v0.2.0 branch March 13, 2019 05:53
@odeke-em odeke-em restored the update-opencensus-proto-to-v0.2.0 branch July 11, 2019 02:06
@odeke-em odeke-em deleted the update-opencensus-proto-to-v0.2.0 branch July 11, 2019 02:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants