Skip to content

Commit

Permalink
Add FsInstrumentation to content node (#3898)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaylor89 committed Sep 20, 2022
1 parent b201438 commit 4bc1e73
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
39 changes: 39 additions & 0 deletions creator-node/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions creator-node/package.json
Expand Up @@ -31,6 +31,7 @@
"@opentelemetry/instrumentation": "^0.31.0",
"@opentelemetry/instrumentation-bunyan": "^0.29.0",
"@opentelemetry/instrumentation-express": "^0.30.0",
"@opentelemetry/instrumentation-fs": "^0.5.0",
"@opentelemetry/instrumentation-http": "^0.31.0",
"@opentelemetry/instrumentation-pg": "^0.30.0",
"@opentelemetry/instrumentation-redis": "^0.32.0",
Expand Down
4 changes: 4 additions & 0 deletions creator-node/src/tracer.ts
Expand Up @@ -15,6 +15,7 @@ import {
SemanticAttributes,
SemanticResourceAttributes as ResourceAttributesSC
} from '@opentelemetry/semantic-conventions'
import { FsInstrumentation } from '@opentelemetry/instrumentation-fs'
import { RedisInstrumentation } from '@opentelemetry/instrumentation-redis'
import { ExpressInstrumentation } from '@opentelemetry/instrumentation-express'
import { HttpInstrumentation } from '@opentelemetry/instrumentation-http'
Expand Down Expand Up @@ -84,6 +85,9 @@ export const setupTracing = () => {
// Adds spans to redis operations
new RedisInstrumentation(),

// Adds spans to filesystem operatioons
new FsInstrumentation(),

// Injects traceid, spanid, and SpanContext into bunyan logs
new BunyanInstrumentation({
// Adds a hook to logs that injects more span info
Expand Down

0 comments on commit 4bc1e73

Please sign in to comment.