Skip to content

Commit c0a2062

Browse files
muncusaabmass
andauthored
fix auto-instrument loading tests for trace exporter. (#197)
* fix auto-instrument loading tests for trace exporter. * Update gce build to have a higher health check timeout See #197 (comment) Co-authored-by: Aaron Abbott <[email protected]>
1 parent f66591e commit c0a2062

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

cloudbuild-e2e-gce.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ steps:
3030
args:
3131
- gce
3232
- --image=$_TEST_SERVER_IMAGE
33+
- --health-check-timeout=5m
3334

3435
logsBucket: gs://opentelemetry-ops-e2e-cloud-build-logs
3536
substitutions:

opentelemetry-exporter-gcp-trace/tests/test_cloud_trace_auto_instrument.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ class TestCloudTraceAutoInstrument(TestCase):
2424
def test_loads_cloud_trace_exporter(self):
2525
"""Test that OTel configuration internals can load the trace exporter from entrypoint
2626
by name"""
27-
trace_exporters, _ = _import_exporters(
28-
trace_exporter_names=["gcp_trace"], log_exporter_names=[]
27+
trace_exporters, _, _ = _import_exporters(
28+
trace_exporter_names=["gcp_trace"],
29+
log_exporter_names=[],
30+
metric_exporter_names=[],
2931
)
3032
self.assertEqual(
3133
trace_exporters, {"gcp_trace": CloudTraceSpanExporter}

0 commit comments

Comments
 (0)