Skip to content

Commit

Permalink
fix: Update _examples/http (#621)
Browse files Browse the repository at this point in the history
  • Loading branch information
cleptric committed Apr 4, 2023
1 parent ee30222 commit 2c4f1c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _examples/http/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func run() error {

// Set a custom transaction name: use "Home" instead of the
// default "/" based on r.URL.Path.
hub.Scope().SetTransaction("Home")
sentry.TransactionFromContext(ctx).Name = "Home"

// The next block of code shows how to instrument concurrent
// tasks.
Expand Down

0 comments on commit 2c4f1c1

Please sign in to comment.