A builder class for the ScopeConfigurator that facilitates the creation of ScopeConfigurators.
Definition at line 26 of file includes/opentelemetry/sdk/instrumentationscope/scope_configurator.h.
Public Member Functions | |
| Builder (T default_scope_config) noexcept | |
| Constructor for a builder object that cam be used to create a scope configurator. More... | |
| Builder & | AddCondition (std::function< bool(const InstrumentationScope &)> scope_matcher, T scope_config) |
| Allows the user to pass a generic function that evaluates an instrumentation scope through a boolean check. More... | |
| Builder & | AddConditionNameEquals (nostd::string_view scope_name, T scope_config) |
| A convenience condition that specifically matches the scope name of the scope being evaluated. More... | |
| ScopeConfigurator< T > | Build () const |
| Constructs the scope configurator object that can be used to retrieve scope config depending on the instrumentation scope. More... | |
| Builder (T default_scope_config) noexcept | |
| Constructor for a builder object that cam be used to create a scope configurator. More... | |
| Builder & | AddCondition (std::function< bool(const InstrumentationScope &)> scope_matcher, T scope_config) |
| Allows the user to pass a generic function that evaluates an instrumentation scope through a boolean check. More... | |
| Builder & | AddConditionNameEquals (nostd::string_view scope_name, T scope_config) |
| A convenience condition that specifically matches the scope name of the scope being evaluated. More... | |
| ScopeConfigurator< T > | Build () const |
| Constructs the scope configurator object that can be used to retrieve scope config depending on the instrumentation scope. More... | |
|
inlineexplicitnoexcept |
Constructor for a builder object that cam be used to create a scope configurator.
A minimally configured builder would build a ScopeConfigurator that applies the default_scope_config to every instrumentation scope.
| default_scope_config | The default scope config that the built configurator should fall back on. |
Definition at line 36 of file includes/opentelemetry/sdk/instrumentationscope/scope_configurator.h.
|
inlineexplicitnoexcept |
Constructor for a builder object that cam be used to create a scope configurator.
A minimally configured builder would build a ScopeConfigurator that applies the default_scope_config to every instrumentation scope.
| default_scope_config | The default scope config that the built configurator should fall back on. |
Definition at line 36 of file 9.2/includes/opentelemetry/sdk/instrumentationscope/scope_configurator.h.
|
inline |
Allows the user to pass a generic function that evaluates an instrumentation scope through a boolean check.
If the check passes, the provided config is applied. Conditions are evaluated in order.
| scope_matcher | a function that returns true if the scope being evaluated matches the criteria defined by the function. |
| scope_config | the scope configuration to return for the matched scope. |
Definition at line 48 of file includes/opentelemetry/sdk/instrumentationscope/scope_configurator.h.
|
inline |
Allows the user to pass a generic function that evaluates an instrumentation scope through a boolean check.
If the check passes, the provided config is applied. Conditions are evaluated in order.
| scope_matcher | a function that returns true if the scope being evaluated matches the criteria defined by the function. |
| scope_config | the scope configuration to return for the matched scope. |
Definition at line 48 of file 9.2/includes/opentelemetry/sdk/instrumentationscope/scope_configurator.h.
|
inline |
A convenience condition that specifically matches the scope name of the scope being evaluated.
If the scope name matches to the provided string, then the provided scope configuration is applied to the scope.
| scope_name | The scope name to which the config needs to be applied. |
| scope_config | The scope config for the matching scopes. |
Definition at line 63 of file 9.2/includes/opentelemetry/sdk/instrumentationscope/scope_configurator.h.
|
inline |
A convenience condition that specifically matches the scope name of the scope being evaluated.
If the scope name matches to the provided string, then the provided scope configuration is applied to the scope.
| scope_name | The scope name to which the config needs to be applied. |
| scope_config | The scope config for the matching scopes. |
Definition at line 63 of file includes/opentelemetry/sdk/instrumentationscope/scope_configurator.h.
|
inline |
Constructs the scope configurator object that can be used to retrieve scope config depending on the instrumentation scope.
Definition at line 78 of file includes/opentelemetry/sdk/instrumentationscope/scope_configurator.h.
|
inline |
Constructs the scope configurator object that can be used to retrieve scope config depending on the instrumentation scope.
Definition at line 78 of file 9.2/includes/opentelemetry/sdk/instrumentationscope/scope_configurator.h.