Skip to content

Commit b12f8cb

Browse files
authored
Merge pull request #342 from aws/srprash-patch-1
Add Note to not use the BeginFacadeSegment API
2 parents db337fc + ba97331 commit b12f8cb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

xray/segment.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ func noOpSegmentID() string {
5454
}
5555

5656
// BeginFacadeSegment creates a Segment for a given name and context.
57+
// NOTE: This is an internal API only to be used in Lambda context within the SDK. Consider using BeginSegment instead.
5758
func BeginFacadeSegment(ctx context.Context, name string, h *header.Header) (context.Context, *Segment) {
5859
seg := basicSegment(name, h)
5960

0 commit comments

Comments
 (0)