Aakash T M
36c2f1bfd1
semconvkit: add invariant test for histogram-exclusion rule ( #8370 )
...
Fixes #8353
2026-05-26 18:21:44 +02:00
Matthieu MOREL
f6c8baa895
Fix receiver-naming issues from revive ( #8093 )
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2026-05-22 09:01:15 +02:00
Tyler Yahn
442cdbdd94
Generate and upgrade to semconv/v1.41.0 ( #8324 )
...
Fix https://github.com/open-telemetry/opentelemetry-go/issues/8299
Relevant upstream v1.41.0 release notes:
> ### 🛑 Breaking changes 🛑
>
> - `graphql`: Change `graphql.document` attribute requirement level
from Recommended to Opt-In due to sensitive data, cardinality, and size
concerns
([#2985 ](https://github.com/open-telemetry/semantic-conventions/issues/2985 ))
> - `process`: Move process.executable to its own entity.
([#3535 ](https://github.com/open-telemetry/semantic-conventions/issues/3535 ))
> - `process`: Update requirement levels for process attributes to
ensure consistent identification and description across platforms.
([#864 ](https://github.com/open-telemetry/semantic-conventions/issues/864 ))
> - `rpc`: Remove `client.address` and `client.port` attributes from RPC
server spans.
([#3487 ](https://github.com/open-telemetry/semantic-conventions/issues/3487 ),
[#3488 ](https://github.com/open-telemetry/semantic-conventions/issues/3488 ))
>
> ### 💡 Enhancements 💡
>
> - `Go`: Add opt-in go.memory.gc.pause.duration histogram metric.
([#3353 ](https://github.com/open-telemetry/semantic-conventions/issues/3353 ))
> - `deployment`: Stabilize `deployment.environment.name` attribute.
([#3339 ](https://github.com/open-telemetry/semantic-conventions/issues/3339 ))
> - `deployment`: Add enum values for `deployment.environment.name`
attribute.
([#2910 ](https://github.com/open-telemetry/semantic-conventions/issues/2910 ))
> - `go`: Add the go.cpu.time opt-in metric, and add
go.cpu.detailed_state and go.memory.detailed_type attributes to CPU and
memory metrics respectively with wildcard values.
([#3354 ](https://github.com/open-telemetry/semantic-conventions/issues/3354 ))
> - `go`: Add the opt-in go.memory.gc.cycles metric.
([#3353 ](https://github.com/open-telemetry/semantic-conventions/issues/3353 ))
> - `telemetry`: Promote `telemetry.distro.name` and
`telemetry.distro.version` attributes to 'stable'.
([#3650 ](https://github.com/open-telemetry/semantic-conventions/issues/3650 ))
This PR also:
- fixes semconv migration generation to ignore unexported declarations
when computing renames/removals
- upgrades repo imports, depguard, docs, templates, and schema URL
expectations to `go.opentelemetry.io/otel/semconv/v1.41.0`
- adds missing generated-file headers to semconvkit templates and
regenerates the affected `v1.41.0` files via `TAG="v1.41.0" make
semconv-generate`
---------
Co-authored-by: David Ashpole <dashpole@google.com >
2026-05-14 14:06:05 -04:00
Robert Pająk
3b18b21580
unwrap error chains created with fmt.Errorf ( #8133 )
...
Fixes https://github.com/open-telemetry/opentelemetry-go/issues/7975
Per
https://github.com/open-telemetry/opentelemetry-go/issues/7975#issuecomment-4183251694
Per https://github.com/open-telemetry/semantic-conventions/issues/3588
Credits:
- Balaji01-4D for
https://github.com/open-telemetry/opentelemetry-go/pull/8018
- seh for providing valuable feedback
2026-04-07 20:03:30 +02:00
Tyler Yahn
a7624f50f7
Fix semconv generated error type to check error chain for custom type declaration ( #7994 )
...
Fix `ErrorType` detection to work through wrapped error chains.
`errorType` previously only checked whether the top-level error value
implemented `ErrorType() string`. In common Go usage, errors are often
wrapped, so this could miss `ErrorType` implementations behind wrappers.
2026-03-04 15:57:57 +01:00
Tyler Yahn
6af2f2ff67
Generate semconv/v1.38.0 ( #7648 )
...
Resolve #7647
2025-12-03 19:55:44 -08:00
Tyler Yahn
c4bdd87543
Support custom error type semantics ( #7442 )
...
Allow instrumentation to provide domain-specific error type values (i.e.
HTTP or gRPC status codes) for the "error.type" semantic attribute. This
is accomplished by passing an error value that implements the
`interface{ ErrorType string }` interface.
---------
Co-authored-by: Robert Pająk <pellared@hotmail.com >
2025-10-03 15:39:35 -07:00
Matthieu MOREL
1bae8f7347
chore: enable extra-rules from gofumpt ( #7114 )
...
#### Description
Enable extra rules from
[gofumpt](https://golangci-lint.run/usage/formatters/#gofumpt ) that also
fixes paramTypeCombine from go-critic
Also defines `go.opentelemetry.io/otel` as in
https://github.com/open-telemetry/opentelemetry-go-contrib/pull/7637
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com >
2025-08-03 08:24:33 -07:00
Bəxtiyar
687c3f5fb5
semconv: add ErrorType attribute function ( #6962 )
...
Closes #6904
This PR adds a helper method to semconv package to set ErrorType
attribute easily.
---------
Co-authored-by: Damien Mathieu <42@dmathieu.com >
Co-authored-by: Robert Pająk <pellared@hotmail.com >
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com >
2025-07-10 09:45:44 +02:00
Tyler Yahn
3d0e98e4fd
Add migration doc generation to semconvgen ( #6819 )
...
Fix #6248
2025-05-28 08:25:12 -07:00
Tyler Yahn
7ee6ff19b5
Add README templ to semconvkit ( #5279 )
2024-05-01 08:06:51 -07:00
Robert Pająk
7dea232a46
[chore] Simplify the license header ( #4987 )
2024-02-29 07:05:28 +01:00
Tyler Yahn
6cee2b4a4c
Add semconv v1.22.0 ( #4735 )
2023-12-04 21:21:49 +01:00
Robert Pająk
830fae8d70
Add semconv/v1.21.0 ( #4362 )
...
* Update tooling to point to new repository
* Update changelog
* Remove leftovers
* generate semconv/v1.21.0
2023-07-26 17:09:04 +02:00
Robert Pająk
b4faa3dfdb
semconv: Stop generating httpconv.go, netconv.go, http.go ( #4145 )
2023-06-05 09:33:03 +02:00
Robert Pająk
8445f21305
Add semconv/v1.20.0 ( #4078 )
...
* Add semconv/v1.20.0
* Update changelog
* Change http.flavor to net.protocol.(name|version)
* Update comments in httpconv
* Fix vanity import
* Update CHANGELOG.md
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com >
---------
Co-authored-by: Chester Cheung <cheung.zhy.csu@gmail.com >
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com >
2023-05-16 11:17:28 -07:00
Tristan Sloughter
b243b6e819
Add semconv/v1.19.0 ( #3848 )
...
* Add semconv/v1.19.0
Includes adding semconv/internal/v3/ to support the move of
the semantic convention HTTPUserAgentKey to the new key
UserAgentOriginalKey
* Update CHANGELOG.md
Co-authored-by: Robert Pająk <pellared@hotmail.com >
* format http.go.tmpl using tabs instead of spaces
* update http.go.tmpl to use v3 of semconv/internal
* Generate attribute_group.go
---------
Co-authored-by: Robert Pająk <pellared@hotmail.com >
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com >
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com >
2023-05-08 09:02:10 -07:00
Tyler Yahn
c869b9171a
Document httpconv and netconv packages as trace providing only trace semantic convention ( #3823 )
...
* Document {http,net}conv pkgs as trace semconv
* Fix spelling error
2023-03-02 11:42:46 -08:00
Tyler Yahn
af3db6e8be
Update ServerRequest to accept server name ( #3619 )
...
* Update ServerRequest to accept server name
* Update docs to include Apache and nginx examples
* Test the server not containing a port
2023-01-26 11:55:13 -08:00
Tyler Yahn
604772dda3
Change ClientResponse to accept an *http.Response ( #3617 )
2023-01-26 09:21:55 -08:00
Tyler Yahn
75a19d1910
Generate semconv/v1.14.0 ( #3566 )
...
* Update semconv cmd in Makefile
Fixes the template render for new upstream semantic conventions yaml.
* Fix semconvkit to ensure dest dir
* Generate v1.14.0 semconv package
* Add changes to changelog
* Update Makefile
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com >
* Revert removal of -p
* Update go.opentelemetry.io/build-tools/*
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com >
Co-authored-by: Chester Cheung <cheung.zhy.csu@gmail.com >
2023-01-06 14:30:32 -08:00
Tyler Yahn
112fbaaba4
Add v1.13 semantic conventions ( #3499 )
...
* WIP
* Add NetConv unit tests
* Add ServerRequest unit tests
* Unit test ClientRequest
* Remove unneeded
* Unit test helper funcs
* Add unit tests for remaining funcs
* Update exported docs
* Fix lint
* Add changelog entry
* Add Client/Server func to semconv/internal/v2
* Generate Client/Server func for semconv ver
* Update RELEASING
Add note about compatibility.
Update example TAG.
* Fix errors
* Update changelog
2023-01-05 14:58:42 -08:00
Tyler Yahn
db7fd1bb51
Add semantic conventions generation Make target ( #2758 )
...
* No wrap RELEASING Semantic Convention Generation section
* Initial generator
* Update template render
* Add exception and schema templates
* Add semconv/internal http unification
* Add http template
* Add licenses header
* Embed the templates
* Update static version in schema tmpl
* Add semconv-generate target to Makefile
Use this target to generate versions of the semconv packages.
* Generate semconv packages
* Update RELEASING to use make semconv-generate
* Add comments to semconvkit
* Make SemVer a method instead of a field
* Remove semconv/v* from codecov
* Fix lint for semconvkit main.go
* Fix documentation of validateHTTPStatusCode
Co-authored-by: Chester Cheung <cheung.zhy.csu@gmail.com >
2022-04-12 13:40:43 -07:00