diff options
author | Andrii Kushch <[email protected]> | 2022-03-08 20:18:32 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2022-03-08 12:18:32 -0700 |
commit | d0b608af3178bc674936f4b1c6cce00591ebbf09 (patch) | |
tree | a8646d0d406acf98df62856815d4eae4d44cdd4f /modules/caddyhttp/standard/imports.go | |
parent | d9b1d463259a6f8f520edd6659dac11218c82b4e (diff) | |
download | caddy-d0b608af3178bc674936f4b1c6cce00591ebbf09.tar.gz caddy-d0b608af3178bc674936f4b1c6cce00591ebbf09.zip |
tracing: New OpenTelemetry module (#4361)
* opentelemetry: create a new module
* fix imports
* fix test
* Update modules/caddyhttp/opentelemetry/README.md
Co-authored-by: Dave Henderson <[email protected]>
* Update modules/caddyhttp/opentelemetry/README.md
Co-authored-by: Dave Henderson <[email protected]>
* Update modules/caddyhttp/opentelemetry/README.md
Co-authored-by: Dave Henderson <[email protected]>
* Update modules/caddyhttp/opentelemetry/tracer.go
Co-authored-by: Dave Henderson <[email protected]>
* rename error ErrUnsupportedTracesProtocol
* replace spaces with tabs in the test data
* Update modules/caddyhttp/opentelemetry/README.md
Co-authored-by: Francis Lavoie <[email protected]>
* Update modules/caddyhttp/opentelemetry/README.md
Co-authored-by: Francis Lavoie <[email protected]>
* replace spaces with tabs in the README.md
* use default values for a propagation and exporter protocol
* set http attributes with helper
* simplify code
* Cleanup modules/caddyhttp/opentelemetry/README.md
Co-authored-by: Dave Henderson <[email protected]>
* Update link in README.md
Co-authored-by: Dave Henderson <[email protected]>
* Update documentation in README.md
Co-authored-by: Dave Henderson <[email protected]>
* Update link to naming spec in README.md
Co-authored-by: Dave Henderson <[email protected]>
* Rename module from opentelemetry to tracing
Co-authored-by: Dave Henderson <[email protected]>
* Rename span_name to span
Co-authored-by: Dave Henderson <[email protected]>
* Rename span_name to span
Co-authored-by: Dave Henderson <[email protected]>
* Simplify otel resource creation
Co-authored-by: Dave Henderson <[email protected]>
* handle extra attributes
Co-authored-by: Dave Henderson <[email protected]>
* update go.opentelemetry.io/otel/semconv to 1.7.0
Co-authored-by: Dave Henderson <[email protected]>
* update go.opentelemetry.io/otel version
* remove environment variable handling
* always use tracecontext,baggage as propagators
* extract tracer name into variable
* rename OpenTelemetry to Tracing
* simplify resource creation
* update go.mod
* rename package from opentelemetry to tracing
* cleanup tests
* update Caddyfile example in README.md
* update README.md
* fix test
* fix module name in README.md
* fix module name in README.md
* change names in README.md and tests
* order imports
* remove redundant tests
* Update documentation README.md
Co-authored-by: Dave Henderson <[email protected]>
* Fix grammar
Co-authored-by: Dave Henderson <[email protected]>
* Update comments
Co-authored-by: Dave Henderson <[email protected]>
* Update comments
Co-authored-by: Dave Henderson <[email protected]>
* update go.sum
* update go.sum
* Add otelhttp instrumentation, update OpenTelemetry libraries.
* Use otelhttp instrumentation for instrumenting HTTP requests.
This change uses context.WithValue to inject the next handler into the
request context via a "nextCall" carrier struct, and pass it on to a
standard Go HTTP handler returned by otelhttp.NewHandler. The
underlying handler will extract the next handler from the context,
call it and pass the returned error to the carrier struct.
* use zap.Error() for the error log
* remove README.md
* update dependencies
* clean up the code
* change comment
* move serveHTTP method from separate file
* add syntax to the UnmarshalCaddyfile comment
* go import the file
* admin: Write proper status on invalid requests (#4569) (fix #4561)
* update dependencies
Co-authored-by: Dave Henderson <[email protected]>
Co-authored-by: Francis Lavoie <[email protected]>
Co-authored-by: Vibhav Pant <[email protected]>
Co-authored-by: Alok Naushad <[email protected]>
Co-authored-by: Cedric Ziel <[email protected]>
Diffstat (limited to 'modules/caddyhttp/standard/imports.go')
-rw-r--r-- | modules/caddyhttp/standard/imports.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/caddyhttp/standard/imports.go b/modules/caddyhttp/standard/imports.go index 0e2203c1e..8ce239579 100644 --- a/modules/caddyhttp/standard/imports.go +++ b/modules/caddyhttp/standard/imports.go @@ -17,4 +17,5 @@ import ( _ "github.com/caddyserver/caddy/v2/modules/caddyhttp/reverseproxy/fastcgi" _ "github.com/caddyserver/caddy/v2/modules/caddyhttp/rewrite" _ "github.com/caddyserver/caddy/v2/modules/caddyhttp/templates" + _ "github.com/caddyserver/caddy/v2/modules/caddyhttp/tracing" ) |