Remove the console exporter

I'm not sure how this got left in, presumably it was not intended.
This commit is contained in:
David Baker 2023-04-24 19:52:56 +01:00
parent 4ddf9ce29c
commit 7153ead8cb
2 changed files with 2 additions and 7 deletions

View file

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

View file

@ -133,6 +133,7 @@ function getParticipants(
: ConnectionState.WaitMedia
: ConnectionState.EstablishingCall;
}
console.log(`${member.userId} conn state is ${connectionState}`);
participantInfoMap.set(deviceId, {
connectionState,
presenter: participant.screensharing,