Skip to content

Commit

Permalink
re-add conn telemetry span
Browse files Browse the repository at this point in the history
  • Loading branch information
jackyzha0 committed Oct 18, 2024
1 parent 7065b8b commit 9c6a536
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion transport/sessionStateMachine/transitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
IdentifiedSessionWithGracePeriodProps,
SessionOptions,
} from './common';
import { PropagationContext, createSessionTelemetryInfo } from '../../tracing';
import { PropagationContext, createConnectionTelemetryInfo, createSessionTelemetryInfo } from '../../tracing';
import {
SessionWaitingForHandshake,
SessionWaitingForHandshakeListeners,
Expand Down Expand Up @@ -187,6 +187,7 @@ export const SessionStateGraph = {
...carriedState,
});

conn.telemetry = createConnectionTelemetryInfo(conn, session.telemetry);
session.log?.info(
`session ${session.id} transition from Connecting to Handshaking`,
{
Expand Down Expand Up @@ -262,6 +263,8 @@ export const SessionStateGraph = {
listeners,
...carriedState,
});

conn.telemetry = createConnectionTelemetryInfo(conn, session.telemetry);
session.log?.info(
`session ${session.id} transition from WaitingForHandshake to Connected`,
{
Expand Down

0 comments on commit 9c6a536

Please sign in to comment.