Skip to content

Commit

Permalink
feat: renamed to trace-id
Browse files Browse the repository at this point in the history
  • Loading branch information
sswastioyono18 committed Jul 7, 2024
1 parent 1a867ac commit edd5dd9
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

jobs:
test-build:
runs-on: ubuntu-latest
runs-on: ktbs-small-runner
steps:
- name: Checkout Code
uses: actions/checkout@v4
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/release-please-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
on:
push:
branches:
- master

name: release-please
jobs:
release-please:
runs-on: ktbs-small-runner
steps:
- uses: google-github-actions/release-please-action@v3
with:
token: ${{ secrets.GH_TOKEN }}
release-type: go
draft-pull-request: "true"
labels: "be-autorelease-pending"
release-labels: "be-autorelease-tagged"


2 changes: 1 addition & 1 deletion middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ func (tw traceware) ServeHTTP(w http.ResponseWriter, r *http.Request) {
rrw := getRRW(w)
defer putRRW(rrw)

ctx = context.WithValue(ctx, "traceID", span.SpanContext().TraceID().String())
ctx = context.WithValue(ctx, "trace-id", span.SpanContext().TraceID().String())

// execute next http handler
r = r.WithContext(ctx)
Expand Down

0 comments on commit edd5dd9

Please sign in to comment.