appinsights-logger
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -34,3 +34,3 @@ import * as appInsights from 'applicationinsights'; | ||
*/ | ||
export declare function functionWrapper(fn: any, eventName?: string, customDimensions?: {}): Promise<(context: any) => Promise<() => Promise<void>>>; | ||
export declare function functionWrapper(fn: any, eventName?: string, customDimensions?: {}): (context: any) => Promise<() => Promise<void>>; | ||
export {}; |
@@ -96,3 +96,3 @@ "use strict"; | ||
*/ | ||
async function functionWrapper(fn, eventName = "FUNCTION_EXECUTION", customDimensions = {}) { | ||
function functionWrapper(fn, eventName = "FUNCTION_EXECUTION", customDimensions = {}) { | ||
return async function contextPropagationTrigger(context) { | ||
@@ -99,0 +99,0 @@ const correlationContext = exports.ai.startOperation(context, context.executionContext.functionName); |
{ | ||
"name": "appinsights-logger", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "thin, yet opinionated wrapper for applcation insights", | ||
@@ -5,0 +5,0 @@ "repository": "gopuff/appinsights-logger", |
Sorry, the diff of this file is not supported yet
17363