Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fully support to export traces with http #1365

Conversation

erikoqvist
Copy link
Contributor

No description provided.

elif nipap_config.has_option("tracing", "otlp_http_endpoint"):
nipap.tracing.init_tracing("nipap-www", nipap_config.get("tracing", "otlp_http_endpoint"))
else:
raise NipapConfigError("Tracing enabled but no OTLP endpoint configured")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (89 > 79 characters)

if nipap_config.has_option("tracing", "otlp_grpc_endpoint"):
nipap.tracing.init_tracing("nipap-www", nipap_config.get("tracing", "otlp_grpc_endpoint"), True)
elif nipap_config.has_option("tracing", "otlp_http_endpoint"):
nipap.tracing.init_tracing("nipap-www", nipap_config.get("tracing", "otlp_http_endpoint"))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (106 > 79 characters)

nipap.tracing.init_tracing("nipap-www", nipap_config.get("tracing", "otlp_grpc_endpoint"))

if nipap_config.has_option("tracing", "otlp_grpc_endpoint"):
nipap.tracing.init_tracing("nipap-www", nipap_config.get("tracing", "otlp_grpc_endpoint"), True)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (112 > 79 characters)

if use_grpc:
processor = BatchSpanProcessor(OTLPSpanExporter(endpoint=endpoint))
else:
processor = BatchSpanProcessor(opentelemetry.exporter.otlp.proto.http.trace_exporter.OTLPSpanExporter(endpoint=endpoint))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (133 > 79 characters)

@@ -22,7 +22,7 @@
tracer = trace.get_tracer("pynipap")


def init_tracing(service_name, endpoint, use_grpc=True):
def init_tracing(service_name, endpoint, use_grpc=False):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

too many blank lines (2)

@erikoqvist erikoqvist force-pushed the add_fully_support_to_export_traces_with_http branch from c4a93f4 to 4f3a8f5 Compare January 22, 2024 12:02
if nipap_config.has_option("tracing", "otlp_grpc_endpoint"):
nipap.tracing.init_tracing("nipap-www", nipap_config.get("tracing", "otlp_grpc_endpoint"))
elif nipap_config.has_option("tracing", "otlp_http_endpoint"):
nipap.tracing.init_tracing("nipap-www", nipap_config.get("tracing", "otlp_http_endpoint"), False)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (113 > 79 characters)

nipap.tracing.init_tracing("nipap-www", nipap_config.get("tracing", "otlp_grpc_endpoint"))

if nipap_config.has_option("tracing", "otlp_grpc_endpoint"):
nipap.tracing.init_tracing("nipap-www", nipap_config.get("tracing", "otlp_grpc_endpoint"))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (106 > 79 characters)

@erikoqvist erikoqvist force-pushed the add_fully_support_to_export_traces_with_http branch from 4f3a8f5 to a5264ca Compare January 22, 2024 12:10
@garberg
Copy link
Member

garberg commented Jan 22, 2024

LGTM!

@garberg garberg merged commit aef20a5 into SpriteLink:master Jan 22, 2024
5 checks passed
@erikoqvist erikoqvist deleted the add_fully_support_to_export_traces_with_http branch May 14, 2024 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants