Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@datadog/browser-logs

Package Overview
Dependencies
Maintainers
1
Versions
259
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@datadog/browser-logs - npm Package Compare versions

Comparing version 1.14.1 to 1.15.0

bundle/datadog-logs.js

3

cjs/buildEnv.js

@@ -6,5 +6,4 @@ "use strict";

datacenter: 'us',
sdkEnv: 'production',
sdkVersion: '1.14.1',
sdkVersion: '1.15.0',
};
//# sourceMappingURL=buildEnv.js.map

@@ -37,2 +37,3 @@ import { Configuration, Context, ContextValue, ErrorObservable, InternalMonitoring } from '@datadog/browser-core';

addContext(key: string, value: ContextValue): void;
removeContext(key: string): void;
setHandler(handler: HandlerType): void;

@@ -63,4 +64,5 @@ setLevel(level: StatusType): void;

addContext(key: string, value: ContextValue): void;
removeContext(key: string): void;
setHandler(handler: HandlerType): void;
setLevel(level: StatusType): void;
}

@@ -139,2 +139,5 @@ "use strict";

};
Logger.prototype.removeContext = function (key) {
delete this.loggerContext[key];
};
Logger.prototype.setHandler = function (handler) {

@@ -141,0 +144,0 @@ this.handler = this.handlers[handler];

@@ -16,2 +16,3 @@ import { Context, ContextValue, UserConfiguration } from '@datadog/browser-core';

addContext(key: string, value: ContextValue): void;
removeContext(key: string): void;
setHandler(handler: HandlerType): void;

@@ -36,2 +37,3 @@ setLevel(level: StatusType): void;

addContext(key: string, value: ContextValue): void;
removeContext(key: string): void;
setHandler(handler: HandlerType): void;

@@ -55,2 +57,3 @@ setLevel(level: StatusType): void;

addContext(key: string, value: ContextValue): void;
removeContext(key: string): void;
setHandler(handler: HandlerType): void;

@@ -57,0 +60,0 @@ setLevel(level: StatusType): void;

@@ -30,2 +30,5 @@ "use strict";

},
removeContext: function (key) {
browser_core_1.makeStub('logs.logger.removeContext');
},
setHandler: function (handler) {

@@ -32,0 +35,0 @@ browser_core_1.makeStub('logs.logger.setHandler');

export var buildEnv = {
buildMode: 'release',
datacenter: 'us',
sdkEnv: 'production',
sdkVersion: '1.14.1',
sdkVersion: '1.15.0',
};
//# sourceMappingURL=buildEnv.js.map

@@ -37,2 +37,3 @@ import { Configuration, Context, ContextValue, ErrorObservable, InternalMonitoring } from '@datadog/browser-core';

addContext(key: string, value: ContextValue): void;
removeContext(key: string): void;
setHandler(handler: HandlerType): void;

@@ -63,4 +64,5 @@ setLevel(level: StatusType): void;

addContext(key: string, value: ContextValue): void;
removeContext(key: string): void;
setHandler(handler: HandlerType): void;
setLevel(level: StatusType): void;
}

@@ -136,2 +136,5 @@ var _a;

};
Logger.prototype.removeContext = function (key) {
delete this.loggerContext[key];
};
Logger.prototype.setHandler = function (handler) {

@@ -138,0 +141,0 @@ this.handler = this.handlers[handler];

@@ -16,2 +16,3 @@ import { Context, ContextValue, UserConfiguration } from '@datadog/browser-core';

addContext(key: string, value: ContextValue): void;
removeContext(key: string): void;
setHandler(handler: HandlerType): void;

@@ -36,2 +37,3 @@ setLevel(level: StatusType): void;

addContext(key: string, value: ContextValue): void;
removeContext(key: string): void;
setHandler(handler: HandlerType): void;

@@ -55,2 +57,3 @@ setLevel(level: StatusType): void;

addContext(key: string, value: ContextValue): void;
removeContext(key: string): void;
setHandler(handler: HandlerType): void;

@@ -57,0 +60,0 @@ setLevel(level: StatusType): void;

@@ -28,2 +28,5 @@ import { __assign } from "tslib";

},
removeContext: function (key) {
makeStub('logs.logger.removeContext');
},
setHandler: function (handler) {

@@ -30,0 +33,0 @@ makeStub('logs.logger.setHandler');

{
"name": "@datadog/browser-logs",
"version": "1.14.1",
"version": "1.15.0",
"license": "Apache-2.0",

@@ -16,3 +16,3 @@ "main": "cjs/index.js",

"dependencies": {
"@datadog/browser-core": "1.14.1",
"@datadog/browser-core": "1.15.0",
"tslib": "1.10.0"

@@ -29,3 +29,3 @@ },

},
"gitHead": "1298e13e8204d4ac9149b77bd533126ec70d5dd2"
"gitHead": "ec0779221049b205cd64bdb4ec838f39ea1ac0c9"
}

@@ -12,6 +12,6 @@ # `logs`

```
import { Datacenter, datadogLogs } from '@datadog/browser-logs'
import { datadogLogs } from '@datadog/browser-logs'
datadogLogs.init({
clientToken: 'XXX',
datacenter: Datacenter.US,
site: 'datadoghq.com',
forwardErrorsToLogs: true,

@@ -25,7 +25,7 @@ sampleRate: 100

```
<script src = 'https://www.datadoghq-browser-agent.com/datadog-logs-us.js'>
<script src = 'https://www.datadoghq-browser-agent.com/datadog-logs.js'>
<script>
window.DD_LOGS.init({
clientToken: 'XXX',
datacenter: 'us',
site: 'datadoghq.com',
forwardErrorsToLogs: true,

@@ -45,3 +45,3 @@ sampleRate: 100

- `sampleRate`: percentage of sessions to track. Only tracked sessions send logs.
- `datacenter`: defined to which datacenter we'll send collected data ('us' | 'eu')
- `site`: The site of the Datadog intake to send SDK data to (default: 'datadoghq.com', set to 'datadoghq.eu' to send data to the EU site)
- `silentMultipleInit`: prevent logging errors while having multiple Init

@@ -55,3 +55,3 @@ - `service`: name of the corresponding service

clientToken: string,
datacenter?: string,
site?: string,
isCollectingError?: boolean,

@@ -74,2 +74,3 @@ sampleRate?: number,

logger.addContext (key: string, value: any) # add one key-value to the logger context
logger.removeContext (key: string) # remove one key from the logger context
logger.setContext (context: Context) # entirely replace the logger context

@@ -103,7 +104,7 @@ ```

```
import '@datadog/browser-logs/bundle/datadog-logs-us';
import '@datadog/browser-logs/bundle/datadog-logs';
window.DD_LOGS.init({
clientToken: 'XXX',
datacenter: 'us',
site: 'datadoghq.com',
forwardErrorsToLogs: true,

@@ -110,0 +111,0 @@ sampleRate: 100

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc