github.com/newrelic/go-agent@v3.26.0+incompatible/context_stub.go (about)

     1  // Copyright 2020 New Relic Corporation. All rights reserved.
     2  // SPDX-License-Identifier: Apache-2.0
     3  
     4  // +build !go1.7
     5  
     6  package newrelic
     7  
     8  import "net/http"
     9  
    10  // RequestWithTransactionContext adds the transaction to the request's context.
    11  func RequestWithTransactionContext(req *http.Request, txn Transaction) *http.Request {
    12  	return req
    13  }
    14  
    15  func transactionFromRequestContext(req *http.Request) Transaction {
    16  	return nil
    17  }