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