go-agent: github.com/newrelic/go-agent/_integrations/nrawssdk/internal Index | Files

package internal

import "github.com/newrelic/go-agent/_integrations/nrawssdk/internal"


Package Files


func EndSegment Uses

func EndSegment(ctx context.Context, hdr http.Header)

EndSegment will end any segment found in the given context.

func StartSegment Uses

func StartSegment(input StartSegmentInputs) *http.Request

StartSegment starts a segment of either type DatastoreSegment or ExternalSegment given the serviceName provided. The segment is then added to the request context.

type StartSegmentInputs Uses

type StartSegmentInputs struct {
    HTTPRequest *http.Request
    ServiceName string
    Operation   string
    Region      string
    Params      interface{}

StartSegmentInputs is used as the input to StartSegment.

Package internal imports 5 packages (graph) and is imported by 2 packages. Updated 2019-10-30. Refresh now. Tools for package owners.