Merge pull request #1025 from vector-im/dbkr/remove_console_exporter

Remove the console exporter
This commit is contained in:
David Baker 2023-04-25 10:37:26 +01:00 committed by GitHub
commit 4c33a29aef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,10 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
import { import { SimpleSpanProcessor } from "@opentelemetry/sdk-trace-base";
ConsoleSpanExporter,
SimpleSpanProcessor,
} from "@opentelemetry/sdk-trace-base";
import { OTLPTraceExporter } from "@opentelemetry/exporter-trace-otlp-http"; import { OTLPTraceExporter } from "@opentelemetry/exporter-trace-otlp-http";
import { WebTracerProvider } from "@opentelemetry/sdk-trace-web"; import { WebTracerProvider } from "@opentelemetry/sdk-trace-web";
import opentelemetry, { Tracer } from "@opentelemetry/api"; import opentelemetry, { Tracer } from "@opentelemetry/api";
@ -93,9 +90,6 @@ export class ElementCallOpenTelemetry {
this._provider.addSpanProcessor(this.rageshakeProcessor); this._provider.addSpanProcessor(this.rageshakeProcessor);
} }
this._provider.addSpanProcessor(
new SimpleSpanProcessor(new ConsoleSpanExporter())
);
this._provider.addSpanProcessor(new PosthogSpanProcessor()); this._provider.addSpanProcessor(new PosthogSpanProcessor());
opentelemetry.trace.setGlobalTracerProvider(this._provider); opentelemetry.trace.setGlobalTracerProvider(this._provider);