avioconsulting / mule-opentelemetry-module

Mule Extension to generate OpenTelemetry traces and metrics
https://avioconsulting.github.io/mule-opentelemetry-module/
BSD 2-Clause "Simplified" License
26 stars 8 forks source link

Logs/Metrics Export #38

Closed khpeet closed 1 year ago

khpeet commented 2 years ago

Hello, does this support the export of logs/metrics as well? I tried the below config in hopes of exporting logs/metrics alongside traces:

    <opentelemetry:config name="OpenTelemetry_Config" doc:name="OpenTelemetry Config" doc:id="91477cb5-36f7-48ad-90b7-c339af87b408" serviceName="api-app-1">
        <opentelemetry:exporter >
            <opentelemetry:otlp-exporter collectorEndpoint="https://my.otlp-endpoint.net:4318" protocol="HTTP_PROTOBUF" >
                <opentelemetry:headers >
                    <opentelemetry:header key="api-key" value="123" />
                </opentelemetry:headers>
                 <opentelemetry:config-properties >
                                 <opentelemetry:config-property key="otel.logs.exporter" value="otlp" />
                                 <opentelemetry:config-property key="otel.metrics.exporter" value="otlp" />
                        </opentelemetry:config-properties>
            </opentelemetry:otlp-exporter>
        </opentelemetry:exporter>
        <opentelemetry:resource-attributes >
            <opentelemetry:attribute key="mule.env" value="Dev" />
        </opentelemetry:resource-attributes>
    </opentelemetry:config>
manikmagar commented 2 years ago

Hi @khpeet, Logs and Metrics are not supported, yet. As of current release, only traces are supported.