aws / aws-xray-java-agent

The official AWS X-Ray Auto Instrumentation Agent for Java.
Apache License 2.0
42 stars 18 forks source link

Lambda Installer should not require a service name #20

Closed chanchiem closed 4 years ago

chanchiem commented 4 years ago

The agent installer used in lambda is invoked similar to the following way: XRayAgentInstaller.installInLambda("servicename=MyLambdaFunction")

In Lambda, the segment is generated on behalf of the function code by the container. The function code retrieves this segment through a concept called a Facade Segment, an immutable segment. Because the service name is never even used, the lambda installer should by default not need a service name parameter.

willarmiros commented 4 years ago

Removed the required parameter in #32. Resolving.