Skip to content

Allow quickstarttest to be compatible with various exporters#114

Merged
psx95 merged 2 commits into
GoogleCloudPlatform:mainfrom
psx95:fix-quickstart-otlp-exporter
Jun 30, 2026
Merged

Allow quickstarttest to be compatible with various exporters#114
psx95 merged 2 commits into
GoogleCloudPlatform:mainfrom
psx95:fix-quickstart-otlp-exporter

Conversation

@psx95

@psx95 psx95 commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

testCases previously hardcoded exporter: "googlemanagedprometheus" for the otelcol_exporter_sent_metric_points check.
When the instrumentation quickstart application and collector configuration switched from Google Managed Prometheus to OTLP, the OpenTelemetry Collector began exporting metrics via the OTLP HTTP exporter (otlphttp), emitting self-observability metrics under otelcol_exporter_sent_metric_points{exporter="otlphttp"}. Because verifyPromMetric() strictly required exporter="googlemanagedprometheus", it never matched any metric samples and eventually failed after polling for 2 minutes.

Addresses GoogleCloudPlatform/opentelemetry-samples#45

@psx95
psx95 requested a review from a team as a code owner June 29, 2026 20:54
Comment thread quickstarttest/testcases.go
Comment thread quickstarttest/testcases.go
Comment thread quickstarttest/testcases.go
@psx95
psx95 merged commit 4892b63 into GoogleCloudPlatform:main Jun 30, 2026
17 checks passed
@psx95
psx95 deleted the fix-quickstart-otlp-exporter branch June 30, 2026 15:25
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.

3 participants