Skip to content

Commit 323f92b

Browse files
committed
fix linter issues
1 parent c7a1d91 commit 323f92b

File tree

10 files changed

+20
-29
lines changed

10 files changed

+20
-29
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export enum AttributeNames {
22
COMPONENT = 'component',
33
HTTP_ERROR_NAME = 'http.error_name',
4-
HTTP_STATUS_TEXT = 'http.status_text'
4+
HTTP_STATUS_TEXT = 'http.status_text',
55
}

experimental/instrumentation-otel-axios/src/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import type {Span} from "@opentelemetry/api";
2-
import type {InstrumentationConfig} from "@opentelemetry/instrumentation";
3-
import type {AxiosResponse} from "axios";
1+
import type { Span } from '@opentelemetry/api';
2+
import type { InstrumentationConfig } from '@opentelemetry/instrumentation';
3+
import type { AxiosResponse } from 'axios';
44

55
export interface AxiosInstrumentationOptions extends InstrumentationConfig {
66
clearTimingResources?: boolean;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export enum AttributeNames {
22
COMPONENT = 'component',
33
HTTP_ERROR_NAME = 'http.error_name',
4-
HTTP_STATUS_TEXT = 'http.status_text'
4+
HTTP_STATUS_TEXT = 'http.status_text',
55
}

experimental/instrumentation-otel-redux-saga/src/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type {InstrumentationConfig} from "@opentelemetry/instrumentation";
2-
import type * as web from "@opentelemetry/sdk-trace-web";
1+
import type { InstrumentationConfig } from '@opentelemetry/instrumentation';
2+
import type * as web from '@opentelemetry/sdk-trace-web';
33

44
export interface AxiosInstrumentationOptions extends InstrumentationConfig {
55
clearTimingResources?: boolean;

packages/react-native-sdk/src/instrumentations/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,3 @@ export {
1313
export type { ErrorEvent, ExtendedPromiseRejectionEvent } from './errors';
1414

1515
export { ViewInstrumentation } from './view';
16-
17-

packages/react-native-sdk/src/instrumentations/session/sessionManager/VolatileSessionManager.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
import {faro} from '@grafana/faro-core';
2-
import type {Meta} from '@grafana/faro-core';
1+
import { faro } from '@grafana/faro-core';
2+
import type { Meta } from '@grafana/faro-core';
33

4-
import {throttle} from '../../../utils';
5-
import {stringifyExternalJson} from '../../../utils/json';
4+
import { throttle } from '../../../utils';
5+
import { stringifyExternalJson } from '../../../utils/json';
66

7-
import {isSampled} from './sampling';
8-
import {STORAGE_UPDATE_DELAY} from './sessionConstants';
9-
import {addSessionMetadataToNextSession, createUserSessionObject, getUserSessionUpdater} from './sessionManagerUtils';
10-
import type {FaroUserSession} from './types';
7+
import { isSampled } from './sampling';
8+
import { STORAGE_UPDATE_DELAY } from './sessionConstants';
9+
import { addSessionMetadataToNextSession, createUserSessionObject, getUserSessionUpdater } from './sessionManagerUtils';
10+
import type { FaroUserSession } from './types';
1111

1212
export class VolatileSessionsManager {
1313
private updateUserSession: ReturnType<typeof getUserSessionUpdater>;
14-
private static storedSession: string|null = null;
14+
private static storedSession: string | null = null;
1515
constructor() {
1616
this.updateUserSession = getUserSessionUpdater({
1717
fetchUserSession: VolatileSessionsManager.fetchUserSession,
@@ -26,7 +26,7 @@ export class VolatileSessionsManager {
2626
}
2727

2828
static async storeUserSession(session: FaroUserSession): Promise<void> {
29-
this.storedSession = stringifyExternalJson(session)
29+
this.storedSession = stringifyExternalJson(session);
3030
}
3131

3232
static async fetchUserSession(): Promise<FaroUserSession | null> {

packages/react-native-sdk/src/instrumentations/session/sessionManager/sessionManagerUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export function isUserSessionValid(session: FaroUserSession | null): boolean {
5151

5252
type GetUserSessionUpdaterParams = {
5353
storeUserSession: (session: FaroUserSession) => Promise<void>;
54-
fetchUserSession: () => Promise<FaroUserSession|null>;
54+
fetchUserSession: () => Promise<FaroUserSession | null>;
5555
};
5656

5757
type UpdateSessionParams = { forceSessionExtend: boolean };

packages/react-native-sdk/src/utils/asyncStorage.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import AsyncStorage from '@react-native-async-storage/async-storage';
22

3-
43
export async function getItem(key: string): Promise<string | null> {
54
return AsyncStorage.getItem(key);
65
}
@@ -12,5 +11,3 @@ export async function setItem(key: string, value: string): Promise<void> {
1211
export async function removeItem(key: string): Promise<void> {
1312
await AsyncStorage.removeItem(key);
1413
}
15-
16-

packages/react-native-sdk/src/utils/index.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
export {
2-
getItem,
3-
removeItem,
4-
setItem,
5-
} from './asyncStorage';
1+
export { getItem, removeItem, setItem } from './asyncStorage';
62

73
export { throttle } from './throttle';
84

packages/react-native-tracing/src/sessionSpanProcessor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class FaroSessionSpanProcessor implements SpanProcessor {
1717
const session = this.metas.value.session;
1818

1919
if (session?.id) {
20-
span.attributes["session.id"] = session.id;
20+
span.attributes['session.id'] = session.id;
2121
/**
2222
* @deprecated will be removed in the future and has been replaced by ATTR_SESSION_ID (session.id)
2323
*/

0 commit comments

Comments
 (0)