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

Test: test SemConv coverage #13

Open
michalpristas opened this issue Jul 11, 2024 · 0 comments
Open

Test: test SemConv coverage #13

michalpristas opened this issue Jul 11, 2024 · 0 comments

Comments

@michalpristas
Copy link
Contributor

michalpristas commented Jul 11, 2024

Produce a test that

  • parses all named capture in all patterns
  • checks whether name is valid SemConv key
  • report a list of not compliant keys

scanning patterns/*.go with this regex should do the trick for extracting them
%\{[A-Za-z_]+(?::[A-Za.-z_]+)(?::[A-Za-z_]+)?\}

this regex extracts all occurrences of %{SYNTAX:ID:TYPE} where ID is present and TYPE is optional

semconv for reference:
https://github.com/open-telemetry/opentelemetry-collector/blob/main/semconv/v1.25.0/generated_attribute_group.go

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

No branches or pull requests

1 participant