Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1928,7 +1928,8 @@ class TestSamplingPlugin implements ITelemetryPlugin {
public processTelemetry: (env: ITelemetryItem) => void;
public initialize: (config: IConfiguration) => void;
public identifier: string = "AzureSamplingPlugin";
public setNextPlugin: (next: ITelemetryPlugin) => void;
/** @deprecated - Use processNext() function of the passed IProcessTelemetryContext instead */
public setNextPlugin?: (next: ITelemetryPlugin) => void;
public priority: number = 5;
public version = "1.0.31-Beta";
public nexttPlugin: ITelemetryPlugin;
Expand Down Expand Up @@ -2013,7 +2014,8 @@ class ChannelPlugin implements IChannelControls {
this.isUnloadInvoked = true;
}

setNextPlugin(next: ITelemetryPlugin) {
/** @deprecated - Use processNext() function of the passed IProcessTelemetryContext instead */
setNextPlugin?(next: ITelemetryPlugin) {
this._nextPlugin = next;
}

Expand Down Expand Up @@ -2052,7 +2054,8 @@ class TrackPlugin implements IPlugin {

}

public setNextPlugin(next: ITelemetryPlugin) {
/** @deprecated - Use processNext() function of the passed IProcessTelemetryContext instead */
public setNextPlugin?(next: ITelemetryPlugin) {
this._nextPlugin = next;
}

Expand Down Expand Up @@ -2106,7 +2109,8 @@ class TestOfflineChannelPlugin implements IChannelControls {
this.isUnloadInvoked = true;
}

setNextPlugin(next: ITelemetryPlugin) {
/** @deprecated - Use processNext() function of the passed IProcessTelemetryContext instead */
setNextPlugin?(next: ITelemetryPlugin) {
this._nextPlugin = next;
}

Expand Down Expand Up @@ -2176,7 +2180,8 @@ class TestChannelPlugin implements IChannelControls {
this.isUnloadInvoked = true;
}

setNextPlugin(next: ITelemetryPlugin) {
/** @deprecated - Use processNext() function of the passed IProcessTelemetryContext instead */
setNextPlugin?(next: ITelemetryPlugin) {
this._nextPlugin = next;
}

Expand Down
3 changes: 2 additions & 1 deletion shared/AppInsightsCore/Tests/Unit/src/Dynamic.Tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,8 @@ class TestSamplingPlugin implements ITelemetryPlugin {
public processTelemetry: (env: ITelemetryItem) => void;
public initialize: (config: IConfiguration) => void;
public identifier: string = "AzureSamplingPlugin";
public setNextPlugin: (next: ITelemetryPlugin) => void;
/** @deprecated - Use processNext() function of the passed IProcessTelemetryContext instead */
public setNextPlugin?: (next: ITelemetryPlugin) => void;
public priority: number = 5;
public version = "1.0.31-Beta";
public nextPlugin: ITelemetryPlugin;
Expand Down
3 changes: 2 additions & 1 deletion shared/AppInsightsCore/Tests/Unit/src/TestPlugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ export class TestSamplingPlugin implements ITelemetryPlugin {
public processTelemetry: (env: ITelemetryItem) => void;
public initialize: (config: IConfiguration) => void;
public identifier: string = "AzureSamplingPlugin";
public setNextPlugin: (next: ITelemetryPlugin) => void;
/** @deprecated - Use processNext() function of the passed IProcessTelemetryContext instead */
public setNextPlugin?: (next: ITelemetryPlugin) => void;
public priority: number = 5;
public version = "1.0.31-Beta";
public nextPlugin: ITelemetryPlugin;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ export interface ITelemetryProcessor {
*/
export interface ITelemetryPlugin extends ITelemetryProcessor, IPlugin {
/**
* Set next extension for telemetry processing, this is not optional as plugins should use the
* Set next extension for telemetry processing, this is now optional as plugins should use the
* processNext() function of the passed IProcessTelemetryContext instead. It is being kept for
* now for backward compatibility only.
* @deprecated - Use processNext() function of the passed IProcessTelemetryContext instead
*/
setNextPlugin?: (next: ITelemetryPlugin | ITelemetryPluginChain) => void;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,12 @@ export abstract class BaseTelemetryPlugin implements ITelemetryPlugin {
public processNext: (env: ITelemetryItem, itemCtx: IProcessTelemetryContext) => void;

/**
* Set next extension for telemetry processing
* Set next extension for telemetry processing, this is now optional as plugins should use the
* processNext() function of the passed IProcessTelemetryContext instead. It is being kept for
* now for backward compatibility only.
* @deprecated - Use processNext() function of the passed IProcessTelemetryContext instead
*/
public setNextPlugin: (next: ITelemetryPlugin | ITelemetryPluginChain) => void;
public setNextPlugin?: (next: ITelemetryPlugin | ITelemetryPluginChain) => void;

/**
* Returns the current diagnostic logger that can be used to log issues, if no logger is currently
Expand Down