Skip to content

Commit

Permalink
more better
Browse files Browse the repository at this point in the history
  • Loading branch information
robbkidd committed Nov 30, 2023
1 parent 1dce8ed commit 99445fc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions beeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,10 @@ func Close() {
// add.This function is good for span-level data, eg timers or the arguments to
// a specific function call, etc.
//
// Field keys added will be prefixed with 'app.' if the prefix is not already
// present on the key name. If you provide a key that starts with 'app.', both
// speed and memory allocations are improved, especially within hot paths of
// your application.
// Field keys added will be prefixed with 'app.' if the 'app.' prefix is not
// already present on the key name. If you provide a key that starts with
// 'app.', both speed and memory allocations are improved, especially within hot
// paths of your application.
//
// Errors are treated as a special case for convenience: if `val` is of type
// `error` then the key is set to the error's message in the span.
Expand All @@ -304,10 +304,10 @@ func AddField(ctx context.Context, key string, val interface{}) {
// context that is better scoped to the request than this specific unit of work,
// eg user IDs, globally relevant feature flags, errors, etc.
//
// Field keys added will be prefixed with 'app.' if the prefix is not already
// present on the key name. If you provide a key that starts with 'app.', both
// speed and memory allocations are improved, especially within hot paths of
// your application.
// Field keys added will be prefixed with 'app.' if the 'app.' prefix is not
// already present on the key name. If you provide a key that starts with
// 'app.', both speed and memory allocations are improved, especially within hot
// paths of your application.
func AddFieldToTrace(ctx context.Context, key string, val interface{}) {
tr := trace.GetTraceFromContext(ctx)
if tr != nil {
Expand Down

0 comments on commit 99445fc

Please sign in to comment.