Skip to content

Commit

Permalink
Fix example code (open-telemetry#135)
Browse files Browse the repository at this point in the history
Co-authored-by: Valentin Marchaud <[email protected]>
  • Loading branch information
ctrlsam and vmarchaud authored Nov 18, 2021
1 parent ec42259 commit d390645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/docs/context.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import * as api from "@opentelemetry/api";
import { AsyncHooksContextManager } from "@opentelemetry/context-async-hooks";

const contextManager = new AsyncHooksContextManager();
context.Manager.enable();
contextManager.enable();
api.context.setGlobalContextManager(contextManager);
```

Expand Down

0 comments on commit d390645

Please sign in to comment.