@microsoft/teams.api
Version:
<p> <a href="https://www.npmjs.com/package/@microsoft/teams.api" target="_blank"> <img src="https://img.shields.io/npm/v/@microsoft/teams.api/latest" /> </a> <a href="https://www.npmjs.com/package/@microsoft/teams.api?activeTab=code" t
30 lines (27 loc) • 922 B
TypeScript
import { Meter, Tracer, Span } from '@opentelemetry/api';
/**
* @internal
* Gets the OpenTelemetry tracer used by future Teams API package instrumentation.
*/
declare function getTeamsApiTracer(): Tracer;
/**
* @internal
* Gets the OpenTelemetry meter used by future Teams API package instrumentation.
*/
declare function getTeamsApiMeter(): Meter;
/**
* @internal
* Records an outbound API call attempt.
*/
declare function recordTeamsApiOutboundCall(operation: string): void;
/**
* @internal
* Records an outbound API call failure.
*/
declare function recordTeamsApiOutboundError(operation: string): void;
/**
* @internal
* Records an exception on a span and marks the span status as an error.
*/
declare function recordTeamsApiException(span: Span, error: unknown): void;
export { getTeamsApiMeter, getTeamsApiTracer, recordTeamsApiException, recordTeamsApiOutboundCall, recordTeamsApiOutboundError };