Exporter - Print Exporter

Export the trace spans by printing them out.

class opencensus.trace.print_exporter.PrintExporter(transport=<class 'opencensus.common.transports.sync.SyncTransport'>)[source]

Bases: opencensus.trace.base_exporter.Exporter

Export the spans by printing them.

Parameters

transport (type) -- Class for creating new transport objects. It should extend from the base_exporter Transport type and implement Transport.export(). Defaults to SyncTransport. The other option is AsyncTransport.

emit(span_datas)[source]
Parameters

of opencensus.trace.span_data.SpanData span_datas (list) -- SpanData tuples to emit

export(span_datas)[source]
Parameters

of opencensus.trace.span_data.SpanData span_datas (list) -- SpanData tuples to export