message: Add telemetry in odsp driver for server_disconnect and nack
diff: @@ -440,6 +440,7 @@ export class OdspDocumentDeltaConnection extends DocumentDeltaConnection {
  }
  protected serverDisconnectHandler = (error: IFluidErrorBase & OdspError) => {
  + this.logger.sendTelemetryEvent({ eventName: "ServerDisconnect" }, error);
  this.disposeCore(true, error);
  };
  @@ -551,11 +552,22 @@ export class OdspDocumentDeltaConnection extends DocumentDeltaConnection {
  case "nack":
  // per client / document nack handling
  - super.addTrackedListener(event, (clientIdOrDocumentId: string, message: INack[]) => {
  + super.addTrackedListener(event, (clientIdOrDocumentId: string, nacks: INack[]) => {
  if (clientIdOrDocumentId.length === 0 ||
  clientIdOrDocumentId === this.documentId ||
  (this.hasDetails && clientIdOrDocumentId === this.clientId)) {
  - this.emit("nack", clientIdOrDocumentId, message);
  + const nackContent = nacks[0]?.content;
  + if (nackContent !== undefined) {
  + const { code, type, message, retryAfter } = nackContent;
  + this.logger.sendTelemetryEvent({
  + eventName: "ServerNack",
  + code,
  + type,
  + message,
  + retryAfterSeconds: retryAfter,
  + });
  + }
  + this.emit("nack", clientIdOrDocumentId, nacks);
  }
  });
  break;
  