Skip to content

Error when using TelemetryClient.trackSessionState #347

@tobiasdiez

Description

@tobiasdiez

The code

        telemetryClient = new TelemetryClient();
        telemetryClient.trackSessionState(SessionState.Start);
        telemetryClient.trackEvent("TestEvent");
        telemetryClient.trackSessionState(SessionState.End);

results in two identical errors

Failed to send, Bad request : {"itemsReceived":1,"itemsAccepted":0,"errors":[{"index":0,"statusCode":400,"message":"Unknown domain type 'Microsoft.ApplicationInsights.SessionStateData'"}]}

The session is not tracked in the online portal but the custom event "TestEvent" shows up (thus the connection works in principle). How can I track session start and end?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions