Skip to content

Commit

Permalink
Use Tracegen And Simplify Config
Browse files Browse the repository at this point in the history
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
  • Loading branch information
mahadzaryab1 committed Aug 24, 2024
1 parent 6e799ce commit 929c409
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 19 deletions.
6 changes: 3 additions & 3 deletions docker-compose/tail-sampling/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ services:
ports:
- "8889:8889"

microsim:
tracegen:
networks:
- backend
image: yurishkuro/microsim:v0.4.1
command: "-d 24h -s 500ms"
image: jaegertracing/jaeger-tracegen:latest
environment:
- OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://jaeger:4318/v1/traces
command: ["-workers", "3", "-pause", "250ms", "-services", "5", "-traces", "10"]
depends_on:
- jaeger

Expand Down
17 changes: 1 addition & 16 deletions docker-compose/tail-sampling/jaeger-v2-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,10 @@ processors:
decision_wait: 15s
policies:
[
{
name: all-errors,
type: status_code,
status_code: {status_codes: [ERROR]}
},
{
name: filter-by-attribute,
type: string_attribute,
string_attribute: { key: key1, values: [ value1 ] }
},
{
name: filter-by-latency,
type: latency,
latency: { threshold_ms: 5000}
},
{
name: probabilistic-sampler,
type: probabilistic,
probabilistic: { sampling_percentage: 1 }
string_attribute: { key: service.name, values: [ tracegen-02, tracegen-04 ] }
},
]

Expand Down

0 comments on commit 929c409

Please sign in to comment.