Skip to content

Commit

Permalink
chore: export API singleton types (open-telemetry#1864)
Browse files Browse the repository at this point in the history
Co-authored-by: Gerhard Stöbich <deb2001-github@yahoo.de>
  • Loading branch information
dyladan and Flarna committed Feb 18, 2021
1 parent 0d3cf27 commit 62f8648
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,17 @@ export {
} from '@opentelemetry/context-base';

import { ContextAPI } from './api/context';
export type { ContextAPI } from './api/context';
/** Entrypoint for context API */
export const context = ContextAPI.getInstance();

import { TraceAPI } from './api/trace';
export type { TraceAPI } from './api/trace';
/** Entrypoint for trace API */
export const trace = TraceAPI.getInstance();

import { PropagationAPI } from './api/propagation';
export type { PropagationAPI } from './api/propagation';
/** Entrypoint for propagation API */
export const propagation = PropagationAPI.getInstance();

Expand Down

0 comments on commit 62f8648

Please sign in to comment.