Skip to content

The only tool you need to know what is happening and how to fix it.

server name removed as a tag needs to be added to each request

dduxfaaede10cd49
diff --git a/clients/go-client/traceway_gin/traceway_gin.go b/clients/go-client/traceway_gin/traceway_gin.go
index d9ceebbf..d9054839 100644
--- a/clients/go-client/traceway_gin/traceway_gin.go
+++ b/clients/go-client/traceway_gin/traceway_gin.go
@@ -64,9 +64,10 @@ func New(app, connectionString string, options ...func(*traceway.TracewayOptions
// Create request-scoped scope with defaults
scope := traceway.NewScope()
- scope.SetTag("server_name", cachedHostname)
- scope.SetTag("user_agent", c.Request.UserAgent())
- scope.SetTag("environment", cachedEnvironment)
+
+ // We won't store tags by default for now
+ // scope.SetTag("server_name", cachedHostname)
+ // scope.SetTag("environment", cachedEnvironment)
// Store scope in both gin.Context and request context
ctx := context.WithValue(c.Request.Context(), string(traceway.CtxScopeKey), scope)
@@ -100,7 +101,9 @@ func New(app, connectionString string, options ...func(*traceway.TracewayOptions
traceway.CaptureTransactionWithScope(transactionId, transactionEndpoint, duration, start, statusCode, bodySize, clientIP, scope.GetTags())
if stackTraceFormatted != nil {
- traceway.CaptureTransactionExceptionWithScope(transactionId, *stackTraceFormatted, scope.GetTags())
+ exceptionTags := scope.GetTags()
+ exceptionTags["user_agent"] = c.Request.UserAgent() // we'll only store the user agent IF an exception happens
+ traceway.CaptureTransactionExceptionWithScope(transactionId, *stackTraceFormatted, exceptionTags)
}
}
}
diff --git a/frontend/src/routes/layout.css b/frontend/src/routes/layout.css
index cfaf88da..73f8df02 100644
--- a/frontend/src/routes/layout.css
+++ b/frontend/src/routes/layout.css
@@ -83,7 +83,7 @@
}
@theme inline {
- --radius-sm: calc(var(--radius) - 4px);
+ --radius-sm: calc(var(--radius) - 6px);
--radius-md: calc(var(--radius) - 2px);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) + 4px);