-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
exp(jaeger-v2): Simplify all-in-one configuration (#4875)
## Which problem is this PR solving? - Part of #4843 - Improvement on #4842, where all-in-one configuration was created via createDefaultConfig methods of extensions called by OTel automatically. This resulted in the memstore always being present in the config and always instantiated, which is not the desired behavior. ## Description of the changes - The cmd.RunE interceptor is changed to provide an internal value to the `--config` flag if no flag was present on cmd line - This avoids creating the collector manually, once we set the flag we always delegate back to official OTel code - The value for the config is embedded in the binary and passed using `yaml:...`, which is one of the official config providers in OTel ## How was this change tested? - Ran all-in-one manually Signed-off-by: Yuri Shkuro <[email protected]>
- Loading branch information
1 parent
244b4be
commit e1e1564
Showing
5 changed files
with
58 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
service: | ||
extensions: [jaeger_storage, jaeger_query] | ||
pipelines: | ||
traces: | ||
receivers: [otlp, jaeger, zipkin] | ||
processors: [batch] | ||
exporters: [jaeger_storage_exporter] | ||
|
||
extensions: | ||
jaeger_query: | ||
trace_storage: memstore | ||
|
||
jaeger_storage: | ||
memory: | ||
memstore: | ||
max_traces: 100000 | ||
|
||
receivers: | ||
otlp: | ||
protocols: | ||
grpc: | ||
http: | ||
|
||
jaeger: | ||
protocols: | ||
grpc: | ||
thrift_binary: | ||
thrift_compact: | ||
thrift_http: | ||
|
||
zipkin: | ||
|
||
processors: | ||
batch: | ||
|
||
exporters: | ||
jaeger_storage_exporter: | ||
trace_storage: memstore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters