Skip to content

Commit

Permalink
rename: TelemetryRawEventProperties -> RawTelemetryEventProperties
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko committed Oct 8, 2021
1 parent c3ea7fc commit 92d1291
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/telemetryReporter.d.ts
Expand Up @@ -6,7 +6,7 @@ export interface TelemetryEventProperties {
readonly [key: string]: string;
}

export interface TelemetryRawEventProperties {
export interface RawTelemetryEventProperties {
readonly [key: string]: any;
}

Expand Down Expand Up @@ -37,7 +37,7 @@ export default class TelemetryReporter {
* @param properties The set of properties to add to the event in the form of a string key value pair
* @param measurements The set of measurements to add to the event in the form of a string key number value pair
*/
sendRawTelemetryEvent(eventName: string, properties?: TelemetryRawEventProperties, measurements?: TelemetryEventMeasurements): void;
sendRawTelemetryEvent(eventName: string, properties?: RawTelemetryEventProperties, measurements?: TelemetryEventMeasurements): void;

/**
* Sends a telemetry error event with the given properties, measurements, and errorProps
Expand Down
6 changes: 3 additions & 3 deletions src/common/baseTelemetryReporter.ts
Expand Up @@ -3,11 +3,11 @@
*--------------------------------------------------------*/

import * as vscode from "vscode";
import type { TelemetryEventMeasurements, TelemetryEventProperties, TelemetryRawEventProperties } from "../../lib/telemetryReporter";
import type { TelemetryEventMeasurements, TelemetryEventProperties, RawTelemetryEventProperties } from "../../lib/telemetryReporter";
import { getTelemetryLevel, TelemetryLevel } from "./util";

export interface AppenderData {
properties?: TelemetryRawEventProperties,
properties?: RawTelemetryEventProperties,
measurements?: TelemetryEventMeasurements
}
export interface ITelemetryAppender {
Expand Down Expand Up @@ -281,7 +281,7 @@ export class BaseTelemetryReporter {
* @param properties The properties to send with the event
* @param measurements The measurements (numeric values) to send with the event
*/
public sendRawTelemetryEvent(eventName: string, properties?: TelemetryRawEventProperties, measurements?: TelemetryEventMeasurements): void {
public sendRawTelemetryEvent(eventName: string, properties?: RawTelemetryEventProperties, measurements?: TelemetryEventMeasurements): void {
if (this.userOptIn && eventName !== "") {
properties = { ...properties, ...this.getCommonProperties() };
this.telemetryAppender.logEvent(`${this.extensionId}/${eventName}`, { properties, measurements });
Expand Down

0 comments on commit 92d1291

Please sign in to comment.