import { Location } from 'history' ; const bareTransaction = { '@metadata' : 'whatever' , observer : { version : '8.0.0' , version_major : 8 , } , agent : { name : 'java' , version : '7.0.0' , } , processor : { name : 'transaction' , event : 'transaction' , } , '@timestamp' : '2018-12-18T00:14:30.952Z' , service : { framework : { name : 'gin' , version : 'v1.4.0-dev' , } , name : 'opbeans-go' , runtime : { name : 'gc' , version : 'go1.10.6' , } , language : { name : 'go' , version : 'go1.10.6' , } , } , process : { pid : 1 , title : 'opbeans-go' , args : [ '/opbeans-go' , '-listen=:3000' , '-frontend=/opbeans-frontend' , '-db=postgres:' , '-cache=redis://redis:6379' , ] , ppid : 0 , } , trace : { id : '8b60bd32ecc6e1506735a8b6cfcf175c' , } , transaction : { result : 'HTTP 2xx' , duration : { us : 14586403 , } , name : 'GET /api/products/:id/customers' , span_count : { dropped : 0 , started : 1 , } , id : '8b60bd32ecc6e150' , type : 'request' , sampled : true , } , timestamp : { us : 1545092070952472 , } , } ; export const transactionWithMinimalData = bareTransaction ; export const transactionWithKubernetesData = { ... bareTransaction , kubernetes : { pod : { uid : 'pod123456abcdef' , } , } , } ; export const transactionWithContainerData = { ... bareTransaction , container : { id : 'container123456abcdef' , } , } ; export const transactionWithHostData = { ... bareTransaction , host : { hostname : '227453131a17' , } , } ; export const transactionWithUrlWithoutDomain = { ... bareTransaction , url : { full : 'http://opbeans-go' , } , } ; export const transactionWithUrlAndDomain = { ... bareTransaction , url : { full : 'http://example.com' , domain : 'example.com' , } , } ; export const transactionWithAllData = { ... bareTransaction , ... transactionWithKubernetesData , ... transactionWithHostData , ... transactionWithUrlWithoutDomain , ... transactionWithUrlAndDomain , } ; export const location = { state : '' , pathname : '/opbeans-go/transactions/request/GET~20~2Fapi~2Fproducts~2F~3Aid~2Fcustomers' , search : '?_g=()&flyoutDetailTab=undefined&waterfallItemId=8b60bd32ecc6e150' , hash : '' , } ;