You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from aws_embedded_metrics.config import get_config
170
170
Config = get_config()
171
-
Config.service_name ="MyApp";
171
+
Config.service_name ="MyApp"
172
172
173
173
# environment
174
-
AWS_EMF_SERVICE_NAME= MyApp;
174
+
AWS_EMF_SERVICE_NAME= MyApp
175
175
```
176
176
177
177
**ServiceType**: Overrides the type of the service. For services where the type cannot be inferred (e.g. Java process running on EC2), a default value of Unknown will be used if not explicitly set.
@@ -187,10 +187,10 @@ Example:
187
187
# in process
188
188
from aws_embedded_metrics.config import get_config
189
189
Config = get_config()
190
-
Config.service_type ="NodeJSWebApp";
190
+
Config.service_type ="NodeJSWebApp"
191
191
192
192
# environment
193
-
AWS_EMF_SERVICE_TYPE= NodeJSWebApp;
193
+
AWS_EMF_SERVICE_TYPE= NodeJSWebApp
194
194
```
195
195
196
196
**LogGroupName**: For agent-based platforms, you may optionally configure the destination log group that metrics should be delivered to. This value will be passed from the library to the agent in the Embedded Metric payload. If a LogGroup is not provided, the default value will be derived from the service name: <service-name>-metrics
@@ -206,10 +206,10 @@ Example:
206
206
# in process
207
207
from aws_embedded_metrics.config import get_config
208
208
Config = get_config()
209
-
Config.log_group_name ="LogGroupName";
209
+
Config.log_group_name ="LogGroupName"
210
210
211
211
# environment
212
-
AWS_EMF_LOG_GROUP_NAME= LogGroupName;
212
+
AWS_EMF_LOG_GROUP_NAME= LogGroupName
213
213
```
214
214
215
215
**LogStreamName**: For agent-based platforms, you may optionally configure the destination log stream that metrics should be delivered to. This value will be passed from the library to the agent in the Embedded Metric payload. If a LogGroup is not provided, the default value will be derived by the agent (this will likely be the hostname).
@@ -225,10 +225,10 @@ Example:
225
225
# in process
226
226
from aws_embedded_metrics.config import get_config
227
227
Config = get_config()
228
-
Config.log_stream_name ="LogStreamName";
228
+
Config.log_stream_name ="LogStreamName"
229
229
230
230
# environment
231
-
AWS_EMF_LOG_STREAM_NAME= LogStreamName;
231
+
AWS_EMF_LOG_STREAM_NAME= LogStreamName
232
232
```
233
233
234
234
**NameSpace**: Overrides the CloudWatch [namespace](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Namespace). If not set, a default value of aws-embedded-metrics will be used.
@@ -244,10 +244,10 @@ Example:
244
244
# in process
245
245
from aws_embedded_metrics.config import get_config
0 commit comments