mirror of
https://github.com/caddyserver/caddy.git
synced 2025-12-08 06:09:53 +00:00
only write attributes after other middleware (and request)
This commit is contained in:
parent
168f0e02b8
commit
d28346cbdd
2 changed files with 7 additions and 6 deletions
|
|
@ -366,9 +366,10 @@ func TestTracing_OpenTelemetry_Span_Attributes(t *testing.T) {
|
|||
|
||||
// Verify that the span attributes were set correctly with placeholder replacement
|
||||
expectedAttributes := map[string]string{
|
||||
"placeholder": "POST",
|
||||
"static": "test-service",
|
||||
"mixed": "prefix-POST-suffix",
|
||||
"placeholder": "POST",
|
||||
"static": "test-service",
|
||||
"mixed": "prefix-POST-suffix",
|
||||
"http.response.status_code": "200", // OTEL default
|
||||
}
|
||||
|
||||
actualAttributes := make(map[string]string)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue