-
Couldn't load subscription status.
- Fork 212
Open
Labels
staleThis issue didn't have recent activityThis issue didn't have recent activity
Description
Is your feature request related to a problem?
Not really a problem, but an observation.
Code discrepancies:
OpenTelemetry\SDK\Logs\Exporter\ConsoleExporterdepends on being created byConsoleExporterFactoryto create the appropriate stream transport, otherwise it's not actually exporting to the consolOpenTelemetry\SDK\Metrics\MetricExporter\ConsoleMetricExporterusesechofor output (the only time echo is used anywhere in the SDK)OpenTelemetry\SDK\Trace\SpanExporter\ConsoleSpanExporterdepends onSpanExporterFactoryInterfacein the same manner as the Log exporter
Documentation discrepancies:
Referencing this otel.io page:
- Under "Instrumentation setup>Initialize the SDK" the example
instrumentation.phpcreates each exporter by configuring the stream transport directly - Under "Traces>Span Processor" the
ConsoleSpanExporterFactoryis used - Under "Metrics>Setup" the
ConsoleMetricExporterFactoryis used - Under "Logs>Setup" the stream transport is configured directly
Describe the solution you'd like
- Update
ConsoleMetricExporterto use a transport instead ofecho - Update all three exporters to have a default stream transport targeting
php://stdoutso they are functionally "console" exporters even without the factory - Remove the (then redundant) default transport from the factories
- Update the documentation to use the console exporter factory in all instances
Describe alternatives you've considered
Checked for any related issues, did not see any.
Additional context
None.
krlove
Metadata
Metadata
Assignees
Labels
staleThis issue didn't have recent activityThis issue didn't have recent activity