Skip to content

Commit

Permalink
Merge pull request #11 from MetinSeylan/feature/counter-attack
Browse files Browse the repository at this point in the history
hello world v2
  • Loading branch information
MetinSeylan authored Oct 30, 2021
2 parents ebb5964 + 86e3fda commit e8a6be3
Show file tree
Hide file tree
Showing 249 changed files with 22,801 additions and 1,327 deletions.
7 changes: 0 additions & 7 deletions LICENSE

This file was deleted.

393 changes: 327 additions & 66 deletions README.md

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion dist/Constants.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
export declare enum Constants {
SDK = "OPEN_TELEMETRY_SDK",
METRIC_EXPORTER = "OPEN_TELEMETRY_SDK_METRIC_EXPORTER"
SDK_CONFIG = "OPEN_TELEMETRY_SDK_CONFIG",
SDK_INJECTORS = "SDK_INJECTORS",
TRACE_METADATA = "OPEN_TELEMETRY_TRACE_METADATA",
METRIC_METADATA = "OPEN_TELEMETRY_METRIC_METADATA",
TRACE_METADATA_ACTIVE = "OPEN_TELEMETRY_TRACE_METADATA_ACTIVE",
METRIC_METADATA_ACTIVE = "OPEN_TELEMETRY_METRIC_METADATA_ACTIVE"
}
7 changes: 6 additions & 1 deletion dist/Constants.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/Constants.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions dist/Metric/Decorators/Counter.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { Constants } from '../../Constants';
import { MetricOptions } from '@opentelemetry/api-metrics';
export declare const Counter: (name?: string, options?: MetricOptions) => import("@nestjs/common").CustomDecorator<Constants>;
13 changes: 13 additions & 0 deletions dist/Metric/Decorators/Counter.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/Metric/Decorators/Counter.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions dist/Metric/Decorators/DecoratorType.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export declare enum DecoratorType {
COUNTER = 0,
OBSERVER = 1
}
9 changes: 9 additions & 0 deletions dist/Metric/Decorators/DecoratorType.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/Metric/Decorators/DecoratorType.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions dist/Metric/Decorators/Observer.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { Constants } from '../../Constants';
import { MetricOptions } from '@opentelemetry/api-metrics';
export declare const Observer: (name?: string, options?: MetricOptions) => import("@nestjs/common").CustomDecorator<Constants>;
13 changes: 13 additions & 0 deletions dist/Metric/Decorators/Observer.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/Metric/Decorators/Observer.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions dist/Metric/Injectors/BaseMetricInjector.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { InstanceWrapper } from '@nestjs/core/injector/instance-wrapper';
import { MetadataScanner, ModulesContainer } from '@nestjs/core';
import { Controller, Injectable } from '@nestjs/common/interfaces';
export declare class BaseMetricInjector {
protected readonly modulesContainer: ModulesContainer;
protected readonly metadataScanner: MetadataScanner;
constructor(modulesContainer: ModulesContainer);
protected getControllers(): Generator<InstanceWrapper<Controller>>;
protected getProviders(): Generator<InstanceWrapper<Injectable>>;
protected isPath(prototype: any): boolean;
protected isAffected(prototype: any): boolean;
protected isDecorated(prototype: any): boolean;
protected getOptions(prototype: any): any;
protected reDecorate(source: any, destination: any): void;
protected wrap(prototype: Record<any, any>, metric: any): (...args: any[]) => any;
protected affect(prototype: any): void;
}
78 changes: 78 additions & 0 deletions dist/Metric/Injectors/BaseMetricInjector.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/Metric/Injectors/BaseMetricInjector.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions dist/Metric/Injectors/DecoratorCounterMetricInjector.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { ModulesContainer } from '@nestjs/core';
import { BaseMetricInjector } from './BaseMetricInjector';
import { MetricService } from '../MetricService';
export declare class DecoratorCounterMetricInjector extends BaseMetricInjector {
protected readonly metricService: MetricService;
protected readonly modulesContainer: ModulesContainer;
private readonly loggerService;
constructor(metricService: MetricService, modulesContainer: ModulesContainer);
inject(): Promise<void>;
private injectProviders;
private injectControllers;
private generateMetric;
private generateName;
}
90 changes: 90 additions & 0 deletions dist/Metric/Injectors/DecoratorCounterMetricInjector.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e8a6be3

Please sign in to comment.