-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Beta] Consume @azure/monitor-opentelemetry (#1167)
* WIP * WIP * Remove not needed files * Add @azure/monitor-opentelemetry dependency * Apply suggestions from code review Co-authored-by: Jackson Weber <47067795+JacksonWeber@users.noreply.github.com> * Lint * Update funcitonal test initialization * Update * Update --------- Co-authored-by: Jackson Weber <47067795+JacksonWeber@users.noreply.github.com>
- Loading branch information
1 parent
2700705
commit aa2c706
Showing
91 changed files
with
1,682 additions
and
12,260 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,14 +1,15 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
|
||
import { Util } from "../../../shim/util"; | ||
import { IAgentLogger } from "../../types"; | ||
|
||
export class ConsoleWriter implements IAgentLogger { | ||
log(message?: any, ...optional: any[]) { | ||
Check warning on line 8 in src/agent/diagnostics/writers/consoleWriter.ts GitHub Actions / build (ubuntu-latest, 14.x)
Check warning on line 8 in src/agent/diagnostics/writers/consoleWriter.ts GitHub Actions / build (ubuntu-latest, 16.x)
|
||
console.log(JSON.stringify(message)); | ||
console.log(Util.getInstance().stringify(message)); | ||
} | ||
|
||
error(message?: any, ...optional: any[]) { | ||
Check warning on line 12 in src/agent/diagnostics/writers/consoleWriter.ts GitHub Actions / build (ubuntu-latest, 14.x)
Check warning on line 12 in src/agent/diagnostics/writers/consoleWriter.ts GitHub Actions / build (ubuntu-latest, 16.x)
|
||
console.error(JSON.stringify(message)); | ||
console.error(Util.getInstance().stringify(message)); | ||
} | ||
} |
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
Oops, something went wrong.