Skip to content

Commit

Permalink
Remove LogGroup Name as a Dimension
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredcnance committed Mar 31, 2021
1 parent 6065d2e commit 76a62a6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aws-embedded-metrics",
"version": "2.0.4",
"version": "3.0.0",
"description": "AWS Embedded Metrics Client Library",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
3 changes: 0 additions & 3 deletions src/logger/MetricsLogger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,6 @@ export class MetricsLogger {

private configureContextForEnvironment = (context: MetricsContext, environment: IEnvironment): void => {
const defaultDimensions = {
// LogGroup name will entirely depend on the environment since there
// are some cases where the LogGroup cannot be configured (e.g. Lambda)
LogGroup: environment.getLogGroupName(),
ServiceName: Configuration.serviceName || environment.getName(),
ServiceType: Configuration.serviceType || environment.getType(),
};
Expand Down
1 change: 0 additions & 1 deletion test/integ/agent/end-to-end.integ.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ const metricExists = async (metricName: string, expectedSampleCount: number): Pr
Dimensions: [
{ Name: 'ServiceName', Value: serviceName },
{ Name: 'ServiceType', Value: serviceType },
{ Name: 'LogGroup', Value: logGroupName },
{ Name: dimensionKey, Value: dimensionValue },
],
Period: 60,
Expand Down

0 comments on commit 76a62a6

Please sign in to comment.