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

Skip processing empty metrics slice in Stackdriver exporter #1494

Merged
merged 1 commit into from
Nov 5, 2020
Merged

Skip processing empty metrics slice in Stackdriver exporter #1494

merged 1 commit into from
Nov 5, 2020

Conversation

nilebox
Copy link
Member

@nilebox nilebox commented Nov 4, 2020

Description:
Fixing a minor bug - skip empty metrics slice instead of returning an error.

The OpenCensus exporter code currently returns an error when it encounters empty metrics slice: https:/census-ecosystem/opencensus-go-exporter-stackdriver/blob/59d068f8d8ff5b653916aa30cdc4e13c7f15d56e/metrics_proto.go#L53-L55

The easiest way to mitigate this issue is by adding a check to skip processing of empty slice.

@bogdandrutu bogdandrutu merged commit 507ad41 into open-telemetry:master Nov 5, 2020
@nilebox nilebox deleted the skip-empty-metrics branch November 5, 2020 01:17
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.

4 participants