-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Hook up datadog logger * Few fixes to get DatadogLogger working. Co-authored-by: Aaron Boodman <aaron@aaronboodman.com>
- Loading branch information
Showing
8 changed files
with
26 additions
and
12 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 |
---|---|---|
|
@@ -36,3 +36,5 @@ yarn-error.log* | |
$ CloudFlare worker | ||
.mf/ | ||
tsconfig.tsbuildinfo | ||
.env | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Binary file not shown.
Binary file not shown.
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,9 +1,18 @@ | ||
import { Server as BaseServer } from "reps-do"; | ||
import { DatadogLogger, Server as BaseServer } from "reps-do"; | ||
export { worker as default } from "reps-do"; | ||
import { mutators, type M } from "../src/datamodel/mutators.js"; | ||
|
||
export class Server extends BaseServer<M> { | ||
constructor(state: DurableObjectState) { | ||
super(mutators, state); | ||
constructor(state: DurableObjectState, env: Record<string, string>) { | ||
const logger = new DatadogLogger({ | ||
apiKey: env.DATADOG_API_KEY, | ||
service: "replidraw", | ||
}); | ||
|
||
super({ | ||
mutators, | ||
state, | ||
logger, | ||
}); | ||
} | ||
} |
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
8a64086
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: