Skip to content

[feature request] Insecure GRPC export option #6697

@Leonardo-Ferreira

Description

@Leonardo-Ferreira

Package

OpenTelemetry.Exporter.OpenTelemetryProtocol

Is your feature request related to a problem?

API to perform export via GRPC protocol over non-TLS connection

What is the expected behavior?

builder.AddOtlpExporter(options =>
{
    options.Endpoint = new Uri(myEndpoint + "v1/traces");
    options.Protocol = OTEL_Exporter.OtlpExportProtocol.Grpc;                
    options.Insecure = true;
});

Which alternative solutions or features have you considered?

N/A

Additional context

The protocol has this option mapped:

Insecure: Whether to enable client transport security for the exporter’s gRPC connection. This option only applies to OTLP/gRPC when an endpoint is provided without the http or https scheme - OTLP/HTTP always uses the scheme provided for the endpoint. Implementations MAY choose to not implement the insecure option if it is not required or supported by the underlying gRPC client implementation.

Default: false
Env vars: OTEL_EXPORTER_OTLP_INSECURE OTEL_EXPORTER_OTLP_TRACES_INSECURE OTEL_EXPORTER_OTLP_METRICS_INSECURE OTEL_EXPORTER_OTLP_LOGS_INSECURE [2]
Type: Boolean

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestneeds-triageNew issues which have not been classified or triaged by a community memberpkg:OpenTelemetry.Exporter.OpenTelemetryProtocolIssues related to OpenTelemetry.Exporter.OpenTelemetryProtocol NuGet package

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions