Nutmeg Pumpkin Macchiato

    @bbc/http-transport-xray

    1.1.0 • Public • Published

    HTTP Transport X-Ray

    Create X-Ray subsegments and add Tracing Header

    Installation

    npm install --save @bbc/http-transport-xray
    

    Usage

    Use per call. Pass in a segment to create a subsegment for that call, identified by the host name.

    const HttpTransport = require('@bbc/http-transport');
    const AWSXRay = require('aws-xray-sdk');
    const xray = require('@bbc/http-transport-xray').middleware;
    
    const segment = new AWSXRay.Segment('mySegment');
    
    const client = HttpTransport.createClient();
    
    client
      .use(xray(segment))
      .get(url)
      .asResponse();

    Test

    npm test
    

    Install

    npm i @bbc/http-transport-xray

    DownloadsWeekly Downloads

    35

    Version

    1.1.0

    License

    Apache-2.0

    Unpacked Size

    5.48 kB

    Total Files

    7

    Last publish

    Collaborators

    • mknish
    • j-e-boreham
    • bozzie
    • luke01455
    • michael_mulgrew
    • jrew-bbc
    • andyj-bbc
    • vkosenko
    • krishs03
    • tmoco
    • izzy-pickering
    • norrib01
    • dave_hodgson
    • naimmustafa-bbc
    • ajitsanto09
    • bad-horse-bbc
    • olivia-p-moore
    • jsheriffbbc
    • subhathirarengaraj
    • shez-bbc
    • ryanwaudby
    • amritbbc
    • river-bbc
    • alifensomebbc
    • kayleriegerpatton
    • m-al-maary
    • guptaa01
    • allybeeb
    • jpeutherer1
    • sframpton
    • suzanna_kwong
    • allbutterg
    • katie.frost
    • jackhoggbbc
    • vaughr03
    • dijisolanke
    • graham-armstrong-bbc
    • bbcashext
    • russellbroughton
    • cameron.watt.bbc
    • farrug01
    • tomchamberlainuk
    • mathkeehan
    • sameerapotdar
    • dio-p
    • anderb08
    • jharrowell
    • cattranfield
    • abd.el-aziz.ext
    • daniel.ochieng.ext
    • maxwec01
    • bbc_ivanalvarez
    • deepaakhil
    • simm90
    • award2022
    • iuketaylor
    • rjw57
    • matthewtaylorwork
    • jamiebower185
    • alexchestersbbc
    • shoba15
    • lazzaa01
    • richardo_bbc
    • benjwheeler
    • lexedwardsbbc
    • geoffbbc
    • yavor-atanasov
    • bucklm03
    • s-zaid-s
    • faithege
    • bradleyphipps
    • achin1tya
    • diedhc01
    • zaintahirbbc
    • manole01
    • roberp05
    • garydavies
    • carrejoe3
    • syke
    • dataforce-jenkins
    • richt1
    • remotecharms
    • cobair01
    • gavinwright292
    • andysteadbbc
    • ovsichti
    • simonpitt
    • lukebasil
    • christosv94
    • claydelas
    • do0g.bbc
    • mattbbc
    • feglese_bbc
    • andywebb2-bbc
    • cjewell47
    • chibbc
    • kavbis066
    • opnpm
    • fahad-75
    • edembbc
    • chalikov
    • samgjw
    • macgll01
    • eloisec
    • urbanm13
    • wormab01
    • jkent
    • nicholasgriffin_bbc
    • danielnyadu
    • woodp11
    • sevisariisik
    • daniel.helen
    • alecsiv
    • stevensams
    • alistair.gempf
    • bbc-delivery-engineering
    • sheilab6
    • jonpbbc
    • rosemary_garratt
    • bennuttall
    • kmurphy3377
    • johnnewman
    • chris-s-thompson
    • ryanmckennabbc
    • news-vj-bot
    • bbc-voice-pipeline
    • simon_taylor
    • drrobharper
    • spencc05
    • tochwill
    • jodiw_bbc
    • howelr03
    • petesloman
    • johnsn27
    • olivierhuinbbc
    • participation-jenkins
    • billt-bbc
    • ayu-idjaja
    • sgospodinov
    • davecarlsonbbc
    • charlier
    • tonymcbeth
    • theo.io
    • magdalena.glanc
    • richardfelton
    • andrewbaillie
    • jezbur-bbc
    • mgurgel-bbc
    • chalford
    • robfarr
    • silver-jenkins
    • liam.jenkinson
    • risheet_thanki_bbc
    • martmarma
    • timasplin
    • mdtbuild
    • cps-support
    • belloro_bbc
    • timperrybbc
    • bbcdj
    • willcott
    • atweedie
    • stephegn_bbc
    • bbc-web-core
    • kieran-crowley
    • ibl-jenkins
    • bbc-admin
    • iplayer-web-jenkins
    • matthewcard
    • tomhobbsbbc
    • smiths124
    • daniel-bailey
    • andycharris
    • samcauser
    • clarkb12
    • jack_mcpoland
    • willdahlgreen
    • thomsonp
    • bbcbsd
    • onlyonehas
    • bbc-cloudeng
    • mcmanj04
    • rthompson1991
    • neha0508
    • sbason
    • jezhodgesbbc
    • lewer
    • rushlet
    • steven-bbc
    • bbc-news-jenkins
    • benjaa14
    • craigj
    • tarqwyn
    • chrisn-bbc
    • njh-bbc
    • avengerpenguin
    • neerajbbc
    • simongregory
    • markturner
    • petra-at
    • iplayerradio-aws
    • monsai
    • subsidel
    • bbcrd
    • danm
    • rbryer
    • jamesreed
    • wyell
    • jim-johnson-rollings
    • ryanmccombe
    • stephenrobertsbbc
    • bbc-dmccaf
    • rosswilsonbbc
    • skillc01
    • dan.thomsonbbc
    • pcs-amp-jenkins
    • danjford
    • mark.ireland
    • media-playout-jenkins
    • shilpas
    • chrisowen
    • bbc-cd-jenkins
    • langtonm
    • partner-platform-jenkins
    • api-management-jenkins
    • weather-jenkins
    • travel-jenkins
    • bbc-isite
    • adamxa
    • matt-rhys-jones-bbc
    • scottjarvis
    • marcburrows
    • leonie-
    • chrismarsden
    • neilcraig
    • eagerterrier_bbc
    • awalsh90
    • anthonygreen
    • gel-jenkins
    • raghuram619
    • miket_bbc
    • darrenlucas.bbc
    • rozgonyiova
    • ibl
    • jana345
    • jlsorak
    • abigael
    • jen.cockerill
    • tom-wr
    • raulfuentes
    • daramaguire
    • mark.howitt
    • eamonnsullivan
    • samirichardson
    • henrywarne
    • shumphrey
    • hannahdadd
    • beckytrav
    • william_svt
    • rdunbar
    • kerrynscriven
    • sport-web-jenkins
    • kcoyle-bbc
    • adama03
    • daniel.ellis
    • bbcconnections
    • iain-bbc
    • wilsoh58
    • leocurrie
    • timhewitt
    • brittvarnom
    • karthikeyan.yegappan
    • ashcleave
    • lydiamoo
    • youdy
    • ben_newcombe
    • oliviadrury
    • bbc-gnl-ci
    • bbc-morph
    • seancarroll
    • davidbuckhurst
    • qambar
    • itv-ci-machine
    • audienceplatformdev
    • bbc-archivesearch-development-team
    • mortoe04
    • jonathanballs
    • sounds-web-jenkins
    • obriet04
    • mikeybyker
    • bbc-online
    • cisnky
    • dustin-bbc
    • rmsdev
    • alasdairstalker
    • lucia_m
    • jackrm
    • dwalees
    • tomfranciswinnington
    • thomam67
    • locator-deploy
    • getignited
    • rolandosorbelli
    • jordanholt
    • martysainty
    • massimura
    • rachael-waddington
    • garthco
    • andrewscfc
    • hjerling
    • chatbn
    • richlewis14
    • chriskay
    • mckayj07
    • nickshanks
    • hexten
    • evebulloch
    • amnpm
    • sfb123
    • laura94
    • dudar
    • coderkind
    • gw8
    • karen_c
    • leobs
    • nerosiva
    • lanacerise
    • andyw
    • llouisetaylorbbc
    • fmsupp03
    • fostuk
    • leihe
    • leedriscoll
    • jamescollertonbbc
    • azineh
    • jordandev7
    • abigailg
    • nicolabuckhurst
    • acarlson0000
    • education-jenkins
    • allishultes
    • keithcrooksbbc
    • lawrencep_bbcrd
    • leedoughty
    • eemmzz
    • andyrobinson01
    • blundj02
    • corey.bradford
    • sgrobison
    • lukedeighton
    • binhbui
    • insyn-jenkins
    • kite-jenkins
    • daniel_brown_bbc
    • waindc01
    • hanleg03
    • chrisbaumebbc
    • samfrybbc
    • bjorn_twachtmann
    • tasio
    • emupatrol
    • jonpollardbbc
    • jarmah02
    • hellap01
    • bbc-fatima
    • garsir01
    • angelinalblyth
    • cardl01
    • brice-bbc
    • joewhitwell
    • decyg
    • salmah95
    • kamara.bennett
    • kevin.mackay
    • pmaudsley
    • inti0
    • bbcrd-artifactory
    • parwiz_sharifi
    • garethjdavies
    • davidthorpebbc
    • norrid02
    • priyapolineni
    • thomaspreecebbc
    • jason.leeming
    • caporp01
    • nanbob
    • swatitabib
    • ianarundale
    • shazia
    • tom-scanlon
    • beethechange
    • steve_culverwell
    • mattowenuk
    • tamsingreen
    • aaronmoore
    • 56yards
    • simontanner
    • alexandra257b
    • milkywaynian
    • arshi
    • icottambbc91
    • alexjn15
    • assizpereira
    • iplayer-pc-downloads-pipeline-bot
    • chrispnicholson
    • catherine_hpr
    • bbc-search-and-navigation
    • carlmudbbc
    • usmanbuilds
    • stuart_jennings_bbc
    • jacobpryce
    • mattgreenham
    • cv-bbc
    • robcatt
    • newslabs-jenkins
    • ramkup01
    • joshcoventry
    • arunbhari11
    • dave.at.bbc
    • sarahrainbow
    • padmajshete
    • farahjabri
    • radiomiu
    • david.verbenyi
    • resist01