diff --git a/cmd/porter/main.go b/cmd/porter/main.go index 795778b3d..db1335636 100644 --- a/cmd/porter/main.go +++ b/cmd/porter/main.go @@ -189,7 +189,6 @@ Try our QuickStart https://getporter.org/quickstart to learn how to use Porter. // Reload configuration with the now parsed cli flags p.DataLoader = cli.LoadHierarchicalConfig(cmd) ctx, err := p.Connect(cmd.Context()) - // Extract the parent span from the main command parentSpan := trace.SpanFromContext(cmd.Context()) diff --git a/tests/integration/telemetry_test.go b/tests/integration/telemetry_test.go index f6afaf124..cfc5d4675 100644 --- a/tests/integration/telemetry_test.go +++ b/tests/integration/telemetry_test.go @@ -25,7 +25,7 @@ func TestTelemetrySetup(t *testing.T) { require.NoError(t, err, "test setup failed") ctx := context.Background() - _, _, err = test.RunPorter("install", "otel-jaeger", "-r=ghcr.io/getporter/examples/otel-jaeger:v0.1.0", "--allow-docker-host-access") + _, _, err = test.RunPorter("install", "otel-jaeger", "-r=ghcr.io/getporter/examples/otel-jaeger:v0.1.1", "--allow-docker-host-access") require.NoError(t, err) defer test.RunPorter("uninstall", "otel-jaeger", "--allow-docker-host-access") @@ -34,6 +34,7 @@ func TestTelemetrySetup(t *testing.T) { // Try to run porter with telemetry enabled p := porter.New() + defer p.Close() os.Setenv("PORTER_EXPERIMENTAL", "structured-logs") os.Setenv("PORTER_TELEMETRY_ENABLED", "true")