Skip to content

Commit 4393596

Browse files
committed
Added README.md section for the name generation
1 parent 28f27c8 commit 4393596

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,23 @@ jaeger:
3636
- 'healthcheck'
3737
- 'metrics'
3838
```
39+
40+
41+
## Name generation options
42+
43+
You can specify just the suffix, if you name generator service is named as `jaeger.name.generator.*` or if you have any other naming scheme you can put the whole name into the configuration.
44+
Keys are considered regular expressions that `route` of the request or `name` of the command should match to use alternative generator.
45+
Expressions are checked top to bottom, if no match is found, default generator will be used
46+
47+
Example bundle config with name generation feature:
48+
49+
```yaml
50+
# config/jaeger.yaml
51+
jaeger:
52+
name_generator:
53+
max_length: 32
54+
command:
55+
'.*': 'controller'
56+
request:
57+
'brand_routes_\d+': 'my_service_generator_alias'
58+
```

0 commit comments

Comments
 (0)