You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2026-06-03 18:35:08 +02:00
536750c0cb
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [github.com/Masterminds/semver/v3](https://redirect.github.com/Masterminds/semver) | `v3.4.0` → `v3.5.0` |  |  | --- > [!WARNING] > Some dependencies could not be looked up. Check the [Dependency Dashboard](../issues/5322) for more information. --- ### Release Notes <details> <summary>Masterminds/semver (github.com/Masterminds/semver/v3)</summary> ### [`v3.5.0`](https://redirect.github.com/Masterminds/semver/releases/tag/v3.5.0) [Compare Source](https://redirect.github.com/Masterminds/semver/compare/v3.4.0...v3.5.0) ##### What's Changed - Adding more prerelease tests by [@​mattfarina](https://redirect.github.com/mattfarina) in [#​273](https://redirect.github.com/Masterminds/semver/pull/273) - Update constraint error messages by [@​mattfarina](https://redirect.github.com/mattfarina) in [#​278](https://redirect.github.com/Masterminds/semver/pull/278) - Fix edge cases by [@​mattfarina](https://redirect.github.com/mattfarina) in [#​279](https://redirect.github.com/Masterminds/semver/pull/279) - Adding some checks in by [@​mattfarina](https://redirect.github.com/mattfarina) in [#​280](https://redirect.github.com/Masterminds/semver/pull/280) - Updating deps by [@​mattfarina](https://redirect.github.com/mattfarina) in [#​281](https://redirect.github.com/Masterminds/semver/pull/281) - Bump github/codeql-action from 4.35.1 to 4.35.2 by [@​dependabot](https://redirect.github.com/dependabot)\[bot] in [#​282](https://redirect.github.com/Masterminds/semver/pull/282) - Bump actions/cache from 4.2.3 to 5.0.5 by [@​dependabot](https://redirect.github.com/dependabot)\[bot] in [#​283](https://redirect.github.com/Masterminds/semver/pull/283) - Bump golangci/golangci-lint-action from 7.0.1 to 9.2.0 by [@​dependabot](https://redirect.github.com/dependabot)\[bot] in [#​284](https://redirect.github.com/Masterminds/semver/pull/284) - Updating gitignore for devcontainers by [@​mattfarina](https://redirect.github.com/mattfarina) in [#​286](https://redirect.github.com/Masterminds/semver/pull/286) - Fixing some quality issues by [@​mattfarina](https://redirect.github.com/mattfarina) in [#​287](https://redirect.github.com/Masterminds/semver/pull/287) ##### New Contributors - [@​dependabot](https://redirect.github.com/dependabot)\[bot] made their first contribution in [#​282](https://redirect.github.com/Masterminds/semver/pull/282) **Full Changelog**: <https://github.com/Masterminds/semver/compare/v3.4.0...v3.5.0> </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/open-telemetry/opentelemetry-go). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xNTkuMiIsInVwZGF0ZWRJblZlciI6IjQzLjE1OS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJTa2lwIENoYW5nZWxvZyIsImRlcGVuZGVuY2llcyJdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Telemetry Schema Files
The schema module contains packages that help to parse and validate
schema files.
Each major.minor schema file format version is implemented as a separate package, with
the name of the package in the vmajor.minor form.
To parse a schema file, first decide what file format version you want to parse,
then import the corresponding package and use the Parse or ParseFile functions
like this:
import schema "go.opentelemetry.io/otel/schema/v1.1"
// Load the schema from a file in v1.1.x file format.
func loadSchemaFromFile() error {
telSchema, err := schema.ParseFile("schema-file.yaml")
if err != nil {
return err
}
// Use telSchema struct here.
}
// Alternatively use schema.Parse to read the schema file from io.Reader.
func loadSchemaFromReader(r io.Reader) error {
telSchema, err := schema.Parse(r)
if err != nil {
return err
}
// Use telSchema struct here.
}