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

telemetry: handle more attr type conversions #7259

Merged
merged 1 commit into from
May 2, 2024

Conversation

vito
Copy link
Contributor

@vito vito commented May 2, 2024

We use a StringSlice for process args, so we actually hit this branch pretty often. Here's a quick and dirty attempt at handling the cases that we can handle.

Signed-off-by: Alex Suraci <alex@dagger.io>
return attribute.StringValue(fmt.Sprintf("UNHANDLED ARRAY ELEM TYPE: %+v (%s)", vals, t))
}
}
panic("unreachable")
Copy link
Member

Choose a reason for hiding this comment

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

Bleh, of course go can't realize this is impossible 😢

@vito vito merged commit 48797ed into dagger:main May 2, 2024
44 checks passed
@vito vito deleted the otel-type-plumbing branch May 2, 2024 16:01
kpenfound pushed a commit to kpenfound/dagger that referenced this pull request May 2, 2024
Signed-off-by: Alex Suraci <alex@dagger.io>
Signed-off-by: kpenfound <kyle@dagger.io>
vikram-dagger pushed a commit to vikram-dagger/dagger that referenced this pull request May 3, 2024
Signed-off-by: Alex Suraci <alex@dagger.io>
vikram-dagger pushed a commit to vikram-dagger/dagger that referenced this pull request May 3, 2024
Signed-off-by: Alex Suraci <alex@dagger.io>
vikram-dagger pushed a commit to vikram-dagger/dagger that referenced this pull request May 3, 2024
Signed-off-by: Alex Suraci <alex@dagger.io>
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.

None yet

2 participants