-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add honeycomb, some error catching to figure out whats happening
- Loading branch information
1 parent
63bf70f
commit cea9dbb
Showing
8 changed files
with
2,385 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
YNAB_TOKEN=<token> | ||
BUDGET_ID=<id> | ||
LOG_LEVEL=debug | ||
HONEYCOMB_API_KEY=<api key> | ||
OTEL_SERVICE_NAME=my-ynab-exporter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
import log from 'loglevel'; | ||
import {Account, Category} from "ynab"; | ||
import * as metrics from './metrics'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Example filename: tracing.ts | ||
import {NodeSDK} from '@opentelemetry/sdk-node'; | ||
import {HoneycombSDK} from '@honeycombio/opentelemetry-node'; | ||
import {getNodeAutoInstrumentations} from '@opentelemetry/auto-instrumentations-node'; | ||
|
||
// Uses environment variables named HONEYCOMB_API_KEY and OTEL_SERVICE_NAME | ||
const sdk: NodeSDK = new HoneycombSDK({ | ||
instrumentations: [ | ||
getNodeAutoInstrumentations({ | ||
// We recommend disabling fs automatic instrumentation because | ||
// it can be noisy and expensive during startup | ||
'@opentelemetry/instrumentation-fs': { | ||
enabled: false, | ||
}, | ||
}), | ||
], | ||
}); | ||
|
||
sdk.start(); |