Skip to content

Commit

Permalink
feat: support enterprise usecase
Browse files Browse the repository at this point in the history
  • Loading branch information
Tamir David authored and Tamir David committed Aug 25, 2024
1 parent 8b96c8e commit c1cdb0c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions initializer/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,19 +86,20 @@ def initialize_traces_if_enabled(trace_exporters, resource, span_processor = Non

# Exporting using EBPF
else:
set_tracer_provider(provider)
if span_processor is not None:
provider.add_span_processor(span_processor)

# return sampler

def initialize_metrics_if_enabled(metric_exporters, resource):
metrics_enabled = os.getenv(sdk_config.OTEL_METRICS_EXPORTER, "none").strip().lower()
if metrics_enabled != "none":
if metrics_enabled != "none" and metric_exporters:
sdk_config._init_metrics(metric_exporters, resource)

def initialize_logging_if_enabled(log_exporters, resource):
logging_enabled = os.getenv(sdk_config.OTEL_LOGS_EXPORTER, "none").strip().lower()
if logging_enabled != "none":
if logging_enabled != "none" and log_exporters:
sdk_config._init_logging(log_exporters, resource)


Expand Down

0 comments on commit c1cdb0c

Please sign in to comment.