good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pggat
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
gfx
pggat
Commits
092c1ed3
Commit
092c1ed3
authored
Sep 5, 2024
by
Thomas Guinther
Browse files
Options
Downloads
Patches
Plain Diff
start adding tracing
parent
40e9fd97
Branches
tomg_tracing
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#91250
passed
Sep 5, 2024
Stage: test
Stage: build
Pipeline: pggat
#91258
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/gat/handlers/pool/spool/pool.go
+8
-0
8 additions, 0 deletions
lib/gat/handlers/pool/spool/pool.go
with
8 additions
and
0 deletions
lib/gat/handlers/pool/spool/pool.go
+
8
−
0
View file @
092c1ed3
...
...
@@ -3,6 +3,9 @@ package spool
import
(
"context"
"gfx.cafe/gfx/pggat/lib/fed/middlewares/tracing"
"go.opentelemetry.io/otel"
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/trace"
"sync"
"time"
...
...
@@ -30,6 +33,8 @@ type Pool struct {
serversByID
map
[
uuid
.
UUID
]
*
Server
serversByConn
map
[
*
fed
.
Conn
]
*
Server
mu
sync
.
RWMutex
tracer
trace
.
Tracer
}
// MakePool will create a new pool with config. ScaleLoop must be called if this is used instead of NewPool
...
...
@@ -45,6 +50,9 @@ func MakePool(config Config) Pool {
Critics
:
config
.
Critics
,
Logger
:
config
.
Logger
,
}),
tracer
:
otel
.
Tracer
(
"spool"
,
trace
.
WithInstrumentationAttributes
(
attribute
.
String
(
"component"
,
"gfx.cafe/gfx/pggat/lib/gat/handlers/pool/spool/pool.go"
),
)),
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment