
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
go.opentelemetry.io/build-tools/semconvgen
Advanced tools
[!WARNING] This tool is deprecated and will be removed in a future release. Use weaver instead.
This tool is designed to generate constants in a semantic convention package for the Go API and the collector. It may be used by other systems, but it's primary function beyond invoking the template processor is to ensure that generated identifiers conform to Go's naming idiom, particularly with respect to initialisms and acronyms. Other users may be served just as well by using the template processor directly.
go get go.opentelemetry.io/build-tools/semconvgen
semconvgen -i <path to spec YAML> -t <path to template> -o <path to output>
A full list of available options:
-z, --capitalizations-path string Path to a file containing additional newline-separated capitalization strings.
-c, --container string Container image ID (default "otel/semconvgen")
-f, --filename string Filename for templated output. If not specified 'basename(inputPath).go' will be used.
-i, --input string Path to semantic convention definition YAML. Should be a directory in the specification git repository.
--only string Process only semantic conventions of the specified type. {span, resource, event, metric_group, metric, units, scope, attribute_group}
-o, --output string Path to output target. Must be either an absolute path or relative to the repository root. If unspecified will output to a sub-directory with the name matching the version number specified via --specver flag.
-p, --parameters string List of key=value pairs separated by comma. These values are fed into the template as-is.
-s, --specver string Version of semantic convention to generate. Must be an existing version tag in the specification git repository.
-t, --template string Template filename (default "template.j2")```
FAQs
Unknown package
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.