Skip to content

Commit 89b7650

Browse files
committed
fixup! feat: apply rule @typescript-eslint/explicit-member-accessibility
1 parent 476ab74 commit 89b7650

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

packages/plugin-react-load/src/BaseOpenTelemetryComponent.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ import {
3636
* This class is the base component for a React component with lifecycle instrumentation
3737
*/
3838
export class BaseOpenTelemetryComponent extends React.Component {
39-
private readonly component: string = 'react-load';
40-
private moduleName = this.component;
39+
public readonly component: string = 'react-load';
40+
public moduleName = this.component;
4141
private _parentSpanMap: WeakMap<React.Component, api.Span>;
4242
private static _tracer: api.Tracer;
4343
private static _logger: api.DiagLogger = api.diag;

packages/resource-detector-aws/src/detectors/AwsBeanstalkDetector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const WIN_OS_BEANSTALK_CONF_PATH =
5252
'C:\\Program Files\\Amazon\\XRay\\environment.conf';
5353

5454
export class AwsBeanstalkDetector implements ResourceDetector {
55-
private BEANSTALK_CONF_PATH: string;
55+
public BEANSTALK_CONF_PATH: string;
5656
private static readFileAsync = util.promisify(fs.readFile);
5757
private static fileAccessAsync = util.promisify(fs.access);
5858

packages/resource-detector-aws/src/detectors/AwsEcsDetector.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ interface AwsLogOptions {
6262
* plugins of AWS X-Ray. Returns an empty Resource if detection fails.
6363
*/
6464
export class AwsEcsDetector implements ResourceDetector {
65-
private static readonly CONTAINER_ID_LENGTH = 64;
66-
private static readonly CONTAINER_ID_LENGTH_MIN = 32;
67-
private static readonly DEFAULT_CGROUP_PATH = '/proc/self/cgroup';
65+
public static readonly CONTAINER_ID_LENGTH = 64;
66+
public static readonly CONTAINER_ID_LENGTH_MIN = 32;
67+
public static readonly DEFAULT_CGROUP_PATH = '/proc/self/cgroup';
6868

6969
private static readFileAsync = util.promisify(fs.readFile);
7070

packages/resource-detector-azure/src/detectors/AzureVmDetector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class AzureVmResourceDetector implements ResourceDetector {
7575
return { attributes };
7676
}
7777

78-
private async getAzureVmMetadata(): Promise<DetectedResourceAttributes> {
78+
public async getAzureVmMetadata(): Promise<DetectedResourceAttributes> {
7979
try {
8080
const options = {
8181
host: AZURE_VM_METADATA_HOST,

packages/resource-detector-container/src/detectors/ContainerDetector.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ import { extractContainerIdFromLine } from './utils';
2424
import { ATTR_CONTAINER_ID } from '../semconv';
2525

2626
export class ContainerDetector implements ResourceDetector {
27-
private readonly CONTAINER_ID_LENGTH = 64;
28-
private readonly DEFAULT_CGROUP_V1_PATH = '/proc/self/cgroup';
29-
private readonly DEFAULT_CGROUP_V2_PATH = '/proc/self/mountinfo';
30-
private readonly UTF8_UNICODE = 'utf8';
31-
private readonly HOSTNAME = 'hostname';
32-
private readonly MARKING_PREFIX = ['containers', 'overlay-containers'];
27+
public readonly CONTAINER_ID_LENGTH = 64;
28+
public readonly DEFAULT_CGROUP_V1_PATH = '/proc/self/cgroup';
29+
public readonly DEFAULT_CGROUP_V2_PATH = '/proc/self/mountinfo';
30+
public readonly UTF8_UNICODE = 'utf8';
31+
public readonly HOSTNAME = 'hostname';
32+
public readonly MARKING_PREFIX = ['containers', 'overlay-containers'];
3333

3434
private static readFileAsync = util.promisify(fs.readFile);
3535

packages/resource-detector-instana/src/detectors/InstanaAgentDetector.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ import { ATTR_PROCESS_PID, ATTR_SERVICE_INSTANCE_ID } from '../semconv';
2525
import * as http from 'http';
2626

2727
class InstanaAgentDetector implements ResourceDetector {
28-
private readonly INSTANA_AGENT_DEFAULT_HOST = 'localhost';
29-
private readonly INSTANA_AGENT_DEFAULT_PORT = 42699;
28+
public readonly INSTANA_AGENT_DEFAULT_HOST = 'localhost';
29+
public readonly INSTANA_AGENT_DEFAULT_PORT = 42699;
3030

3131
public detect(): DetectedResource {
3232
const dataPromise = context.with(suppressTracing(context.active()), () =>

0 commit comments

Comments
 (0)