attribute_group.go 530 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851
  1. // Copyright The OpenTelemetry Authors
  2. // SPDX-License-Identifier: Apache-2.0
  3. // Code generated from semantic convention specification. DO NOT EDIT.
  4. package semconv // import "go.opentelemetry.io/otel/semconv/v1.34.0"
  5. import "go.opentelemetry.io/otel/attribute"
  6. // Namespace: android
  7. const (
  8. // AndroidAppStateKey is the attribute Key conforming to the "android.app.state"
  9. // semantic conventions. It represents the this attribute represents the state
  10. // of the application.
  11. //
  12. // Type: Enum
  13. // RequirementLevel: Recommended
  14. // Stability: Development
  15. //
  16. // Examples: "created"
  17. // Note: The Android lifecycle states are defined in
  18. // [Activity lifecycle callbacks], and from which the `OS identifiers` are
  19. // derived.
  20. //
  21. // [Activity lifecycle callbacks]: https://developer.android.com/guide/components/activities/activity-lifecycle#lc
  22. AndroidAppStateKey = attribute.Key("android.app.state")
  23. // AndroidOSAPILevelKey is the attribute Key conforming to the
  24. // "android.os.api_level" semantic conventions. It represents the uniquely
  25. // identifies the framework API revision offered by a version (`os.version`) of
  26. // the android operating system. More information can be found [here].
  27. //
  28. // Type: string
  29. // RequirementLevel: Recommended
  30. // Stability: Development
  31. //
  32. // Examples: "33", "32"
  33. //
  34. // [here]: https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels
  35. AndroidOSAPILevelKey = attribute.Key("android.os.api_level")
  36. )
  37. // AndroidOSAPILevel returns an attribute KeyValue conforming to the
  38. // "android.os.api_level" semantic conventions. It represents the uniquely
  39. // identifies the framework API revision offered by a version (`os.version`) of
  40. // the android operating system. More information can be found [here].
  41. //
  42. // [here]: https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels
  43. func AndroidOSAPILevel(val string) attribute.KeyValue {
  44. return AndroidOSAPILevelKey.String(val)
  45. }
  46. // Enum values for android.app.state
  47. var (
  48. // Any time before Activity.onResume() or, if the app has no Activity,
  49. // Context.startService() has been called in the app for the first time.
  50. //
  51. // Stability: development
  52. AndroidAppStateCreated = AndroidAppStateKey.String("created")
  53. // Any time after Activity.onPause() or, if the app has no Activity,
  54. // Context.stopService() has been called when the app was in the foreground
  55. // state.
  56. //
  57. // Stability: development
  58. AndroidAppStateBackground = AndroidAppStateKey.String("background")
  59. // Any time after Activity.onResume() or, if the app has no Activity,
  60. // Context.startService() has been called when the app was in either the created
  61. // or background states.
  62. //
  63. // Stability: development
  64. AndroidAppStateForeground = AndroidAppStateKey.String("foreground")
  65. )
  66. // Namespace: app
  67. const (
  68. // AppInstallationIDKey is the attribute Key conforming to the
  69. // "app.installation.id" semantic conventions. It represents a unique identifier
  70. // representing the installation of an application on a specific device.
  71. //
  72. // Type: string
  73. // RequirementLevel: Recommended
  74. // Stability: Development
  75. //
  76. // Examples: "2ab2916d-a51f-4ac8-80ee-45ac31a28092"
  77. // Note: Its value SHOULD persist across launches of the same application
  78. // installation, including through application upgrades.
  79. // It SHOULD change if the application is uninstalled or if all applications of
  80. // the vendor are uninstalled.
  81. // Additionally, users might be able to reset this value (e.g. by clearing
  82. // application data).
  83. // If an app is installed multiple times on the same device (e.g. in different
  84. // accounts on Android), each `app.installation.id` SHOULD have a different
  85. // value.
  86. // If multiple OpenTelemetry SDKs are used within the same application, they
  87. // SHOULD use the same value for `app.installation.id`.
  88. // Hardware IDs (e.g. serial number, IMEI, MAC address) MUST NOT be used as the
  89. // `app.installation.id`.
  90. //
  91. // For iOS, this value SHOULD be equal to the [vendor identifier].
  92. //
  93. // For Android, examples of `app.installation.id` implementations include:
  94. //
  95. // - [Firebase Installation ID].
  96. // - A globally unique UUID which is persisted across sessions in your
  97. // application.
  98. // - [App set ID].
  99. // - [`Settings.getString(Settings.Secure.ANDROID_ID)`].
  100. //
  101. // More information about Android identifier best practices can be found [here]
  102. // .
  103. //
  104. // [vendor identifier]: https://developer.apple.com/documentation/uikit/uidevice/identifierforvendor
  105. // [Firebase Installation ID]: https://firebase.google.com/docs/projects/manage-installations
  106. // [App set ID]: https://developer.android.com/identity/app-set-id
  107. // [`Settings.getString(Settings.Secure.ANDROID_ID)`]: https://developer.android.com/reference/android/provider/Settings.Secure#ANDROID_ID
  108. // [here]: https://developer.android.com/training/articles/user-data-ids
  109. AppInstallationIDKey = attribute.Key("app.installation.id")
  110. // AppScreenCoordinateXKey is the attribute Key conforming to the
  111. // "app.screen.coordinate.x" semantic conventions. It represents the x
  112. // (horizontal) coordinate of a screen coordinate, in screen pixels.
  113. //
  114. // Type: int
  115. // RequirementLevel: Recommended
  116. // Stability: Development
  117. //
  118. // Examples: 0, 131
  119. AppScreenCoordinateXKey = attribute.Key("app.screen.coordinate.x")
  120. // AppScreenCoordinateYKey is the attribute Key conforming to the
  121. // "app.screen.coordinate.y" semantic conventions. It represents the y
  122. // (vertical) component of a screen coordinate, in screen pixels.
  123. //
  124. // Type: int
  125. // RequirementLevel: Recommended
  126. // Stability: Development
  127. //
  128. // Examples: 12, 99
  129. AppScreenCoordinateYKey = attribute.Key("app.screen.coordinate.y")
  130. // AppWidgetIDKey is the attribute Key conforming to the "app.widget.id"
  131. // semantic conventions. It represents an identifier that uniquely
  132. // differentiates this widget from other widgets in the same application.
  133. //
  134. // Type: string
  135. // RequirementLevel: Recommended
  136. // Stability: Development
  137. //
  138. // Examples: "f9bc787d-ff05-48ad-90e1-fca1d46130b3", "submit_order_1829"
  139. // Note: A widget is an application component, typically an on-screen visual GUI
  140. // element.
  141. AppWidgetIDKey = attribute.Key("app.widget.id")
  142. // AppWidgetNameKey is the attribute Key conforming to the "app.widget.name"
  143. // semantic conventions. It represents the name of an application widget.
  144. //
  145. // Type: string
  146. // RequirementLevel: Recommended
  147. // Stability: Development
  148. //
  149. // Examples: "submit", "attack", "Clear Cart"
  150. // Note: A widget is an application component, typically an on-screen visual GUI
  151. // element.
  152. AppWidgetNameKey = attribute.Key("app.widget.name")
  153. )
  154. // AppInstallationID returns an attribute KeyValue conforming to the
  155. // "app.installation.id" semantic conventions. It represents a unique identifier
  156. // representing the installation of an application on a specific device.
  157. func AppInstallationID(val string) attribute.KeyValue {
  158. return AppInstallationIDKey.String(val)
  159. }
  160. // AppScreenCoordinateX returns an attribute KeyValue conforming to the
  161. // "app.screen.coordinate.x" semantic conventions. It represents the x
  162. // (horizontal) coordinate of a screen coordinate, in screen pixels.
  163. func AppScreenCoordinateX(val int) attribute.KeyValue {
  164. return AppScreenCoordinateXKey.Int(val)
  165. }
  166. // AppScreenCoordinateY returns an attribute KeyValue conforming to the
  167. // "app.screen.coordinate.y" semantic conventions. It represents the y (vertical)
  168. // component of a screen coordinate, in screen pixels.
  169. func AppScreenCoordinateY(val int) attribute.KeyValue {
  170. return AppScreenCoordinateYKey.Int(val)
  171. }
  172. // AppWidgetID returns an attribute KeyValue conforming to the "app.widget.id"
  173. // semantic conventions. It represents an identifier that uniquely differentiates
  174. // this widget from other widgets in the same application.
  175. func AppWidgetID(val string) attribute.KeyValue {
  176. return AppWidgetIDKey.String(val)
  177. }
  178. // AppWidgetName returns an attribute KeyValue conforming to the
  179. // "app.widget.name" semantic conventions. It represents the name of an
  180. // application widget.
  181. func AppWidgetName(val string) attribute.KeyValue {
  182. return AppWidgetNameKey.String(val)
  183. }
  184. // Namespace: artifact
  185. const (
  186. // ArtifactAttestationFilenameKey is the attribute Key conforming to the
  187. // "artifact.attestation.filename" semantic conventions. It represents the
  188. // provenance filename of the built attestation which directly relates to the
  189. // build artifact filename. This filename SHOULD accompany the artifact at
  190. // publish time. See the [SLSA Relationship] specification for more information.
  191. //
  192. // Type: string
  193. // RequirementLevel: Recommended
  194. // Stability: Development
  195. //
  196. // Examples: "golang-binary-amd64-v0.1.0.attestation",
  197. // "docker-image-amd64-v0.1.0.intoto.json1", "release-1.tar.gz.attestation",
  198. // "file-name-package.tar.gz.intoto.json1"
  199. //
  200. // [SLSA Relationship]: https://slsa.dev/spec/v1.0/distributing-provenance#relationship-between-artifacts-and-attestations
  201. ArtifactAttestationFilenameKey = attribute.Key("artifact.attestation.filename")
  202. // ArtifactAttestationHashKey is the attribute Key conforming to the
  203. // "artifact.attestation.hash" semantic conventions. It represents the full
  204. // [hash value (see glossary)], of the built attestation. Some envelopes in the
  205. // [software attestation space] also refer to this as the **digest**.
  206. //
  207. // Type: string
  208. // RequirementLevel: Recommended
  209. // Stability: Development
  210. //
  211. // Examples: "1b31dfcd5b7f9267bf2ff47651df1cfb9147b9e4df1f335accf65b4cda498408"
  212. //
  213. // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
  214. // [software attestation space]: https://github.com/in-toto/attestation/tree/main/spec
  215. ArtifactAttestationHashKey = attribute.Key("artifact.attestation.hash")
  216. // ArtifactAttestationIDKey is the attribute Key conforming to the
  217. // "artifact.attestation.id" semantic conventions. It represents the id of the
  218. // build [software attestation].
  219. //
  220. // Type: string
  221. // RequirementLevel: Recommended
  222. // Stability: Development
  223. //
  224. // Examples: "123"
  225. //
  226. // [software attestation]: https://slsa.dev/attestation-model
  227. ArtifactAttestationIDKey = attribute.Key("artifact.attestation.id")
  228. // ArtifactFilenameKey is the attribute Key conforming to the
  229. // "artifact.filename" semantic conventions. It represents the human readable
  230. // file name of the artifact, typically generated during build and release
  231. // processes. Often includes the package name and version in the file name.
  232. //
  233. // Type: string
  234. // RequirementLevel: Recommended
  235. // Stability: Development
  236. //
  237. // Examples: "golang-binary-amd64-v0.1.0", "docker-image-amd64-v0.1.0",
  238. // "release-1.tar.gz", "file-name-package.tar.gz"
  239. // Note: This file name can also act as the [Package Name]
  240. // in cases where the package ecosystem maps accordingly.
  241. // Additionally, the artifact [can be published]
  242. // for others, but that is not a guarantee.
  243. //
  244. // [Package Name]: https://slsa.dev/spec/v1.0/terminology#package-model
  245. // [can be published]: https://slsa.dev/spec/v1.0/terminology#software-supply-chain
  246. ArtifactFilenameKey = attribute.Key("artifact.filename")
  247. // ArtifactHashKey is the attribute Key conforming to the "artifact.hash"
  248. // semantic conventions. It represents the full [hash value (see glossary)],
  249. // often found in checksum.txt on a release of the artifact and used to verify
  250. // package integrity.
  251. //
  252. // Type: string
  253. // RequirementLevel: Recommended
  254. // Stability: Development
  255. //
  256. // Examples: "9ff4c52759e2c4ac70b7d517bc7fcdc1cda631ca0045271ddd1b192544f8a3e9"
  257. // Note: The specific algorithm used to create the cryptographic hash value is
  258. // not defined. In situations where an artifact has multiple
  259. // cryptographic hashes, it is up to the implementer to choose which
  260. // hash value to set here; this should be the most secure hash algorithm
  261. // that is suitable for the situation and consistent with the
  262. // corresponding attestation. The implementer can then provide the other
  263. // hash values through an additional set of attribute extensions as they
  264. // deem necessary.
  265. //
  266. // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
  267. ArtifactHashKey = attribute.Key("artifact.hash")
  268. // ArtifactPurlKey is the attribute Key conforming to the "artifact.purl"
  269. // semantic conventions. It represents the [Package URL] of the
  270. // [package artifact] provides a standard way to identify and locate the
  271. // packaged artifact.
  272. //
  273. // Type: string
  274. // RequirementLevel: Recommended
  275. // Stability: Development
  276. //
  277. // Examples: "pkg:github/package-url/purl-spec@1209109710924",
  278. // "pkg:npm/foo@12.12.3"
  279. //
  280. // [Package URL]: https://github.com/package-url/purl-spec
  281. // [package artifact]: https://slsa.dev/spec/v1.0/terminology#package-model
  282. ArtifactPurlKey = attribute.Key("artifact.purl")
  283. // ArtifactVersionKey is the attribute Key conforming to the "artifact.version"
  284. // semantic conventions. It represents the version of the artifact.
  285. //
  286. // Type: string
  287. // RequirementLevel: Recommended
  288. // Stability: Development
  289. //
  290. // Examples: "v0.1.0", "1.2.1", "122691-build"
  291. ArtifactVersionKey = attribute.Key("artifact.version")
  292. )
  293. // ArtifactAttestationFilename returns an attribute KeyValue conforming to the
  294. // "artifact.attestation.filename" semantic conventions. It represents the
  295. // provenance filename of the built attestation which directly relates to the
  296. // build artifact filename. This filename SHOULD accompany the artifact at
  297. // publish time. See the [SLSA Relationship] specification for more information.
  298. //
  299. // [SLSA Relationship]: https://slsa.dev/spec/v1.0/distributing-provenance#relationship-between-artifacts-and-attestations
  300. func ArtifactAttestationFilename(val string) attribute.KeyValue {
  301. return ArtifactAttestationFilenameKey.String(val)
  302. }
  303. // ArtifactAttestationHash returns an attribute KeyValue conforming to the
  304. // "artifact.attestation.hash" semantic conventions. It represents the full
  305. // [hash value (see glossary)], of the built attestation. Some envelopes in the
  306. // [software attestation space] also refer to this as the **digest**.
  307. //
  308. // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
  309. // [software attestation space]: https://github.com/in-toto/attestation/tree/main/spec
  310. func ArtifactAttestationHash(val string) attribute.KeyValue {
  311. return ArtifactAttestationHashKey.String(val)
  312. }
  313. // ArtifactAttestationID returns an attribute KeyValue conforming to the
  314. // "artifact.attestation.id" semantic conventions. It represents the id of the
  315. // build [software attestation].
  316. //
  317. // [software attestation]: https://slsa.dev/attestation-model
  318. func ArtifactAttestationID(val string) attribute.KeyValue {
  319. return ArtifactAttestationIDKey.String(val)
  320. }
  321. // ArtifactFilename returns an attribute KeyValue conforming to the
  322. // "artifact.filename" semantic conventions. It represents the human readable
  323. // file name of the artifact, typically generated during build and release
  324. // processes. Often includes the package name and version in the file name.
  325. func ArtifactFilename(val string) attribute.KeyValue {
  326. return ArtifactFilenameKey.String(val)
  327. }
  328. // ArtifactHash returns an attribute KeyValue conforming to the "artifact.hash"
  329. // semantic conventions. It represents the full [hash value (see glossary)],
  330. // often found in checksum.txt on a release of the artifact and used to verify
  331. // package integrity.
  332. //
  333. // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
  334. func ArtifactHash(val string) attribute.KeyValue {
  335. return ArtifactHashKey.String(val)
  336. }
  337. // ArtifactPurl returns an attribute KeyValue conforming to the "artifact.purl"
  338. // semantic conventions. It represents the [Package URL] of the
  339. // [package artifact] provides a standard way to identify and locate the packaged
  340. // artifact.
  341. //
  342. // [Package URL]: https://github.com/package-url/purl-spec
  343. // [package artifact]: https://slsa.dev/spec/v1.0/terminology#package-model
  344. func ArtifactPurl(val string) attribute.KeyValue {
  345. return ArtifactPurlKey.String(val)
  346. }
  347. // ArtifactVersion returns an attribute KeyValue conforming to the
  348. // "artifact.version" semantic conventions. It represents the version of the
  349. // artifact.
  350. func ArtifactVersion(val string) attribute.KeyValue {
  351. return ArtifactVersionKey.String(val)
  352. }
  353. // Namespace: aws
  354. const (
  355. // AWSBedrockGuardrailIDKey is the attribute Key conforming to the
  356. // "aws.bedrock.guardrail.id" semantic conventions. It represents the unique
  357. // identifier of the AWS Bedrock Guardrail. A [guardrail] helps safeguard and
  358. // prevent unwanted behavior from model responses or user messages.
  359. //
  360. // Type: string
  361. // RequirementLevel: Recommended
  362. // Stability: Development
  363. //
  364. // Examples: "sgi5gkybzqak"
  365. //
  366. // [guardrail]: https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html
  367. AWSBedrockGuardrailIDKey = attribute.Key("aws.bedrock.guardrail.id")
  368. // AWSBedrockKnowledgeBaseIDKey is the attribute Key conforming to the
  369. // "aws.bedrock.knowledge_base.id" semantic conventions. It represents the
  370. // unique identifier of the AWS Bedrock Knowledge base. A [knowledge base] is a
  371. // bank of information that can be queried by models to generate more relevant
  372. // responses and augment prompts.
  373. //
  374. // Type: string
  375. // RequirementLevel: Recommended
  376. // Stability: Development
  377. //
  378. // Examples: "XFWUPB9PAW"
  379. //
  380. // [knowledge base]: https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base.html
  381. AWSBedrockKnowledgeBaseIDKey = attribute.Key("aws.bedrock.knowledge_base.id")
  382. // AWSDynamoDBAttributeDefinitionsKey is the attribute Key conforming to the
  383. // "aws.dynamodb.attribute_definitions" semantic conventions. It represents the
  384. // JSON-serialized value of each item in the `AttributeDefinitions` request
  385. // field.
  386. //
  387. // Type: string[]
  388. // RequirementLevel: Recommended
  389. // Stability: Development
  390. //
  391. // Examples: "{ "AttributeName": "string", "AttributeType": "string" }"
  392. AWSDynamoDBAttributeDefinitionsKey = attribute.Key("aws.dynamodb.attribute_definitions")
  393. // AWSDynamoDBAttributesToGetKey is the attribute Key conforming to the
  394. // "aws.dynamodb.attributes_to_get" semantic conventions. It represents the
  395. // value of the `AttributesToGet` request parameter.
  396. //
  397. // Type: string[]
  398. // RequirementLevel: Recommended
  399. // Stability: Development
  400. //
  401. // Examples: "lives", "id"
  402. AWSDynamoDBAttributesToGetKey = attribute.Key("aws.dynamodb.attributes_to_get")
  403. // AWSDynamoDBConsistentReadKey is the attribute Key conforming to the
  404. // "aws.dynamodb.consistent_read" semantic conventions. It represents the value
  405. // of the `ConsistentRead` request parameter.
  406. //
  407. // Type: boolean
  408. // RequirementLevel: Recommended
  409. // Stability: Development
  410. //
  411. // Examples:
  412. AWSDynamoDBConsistentReadKey = attribute.Key("aws.dynamodb.consistent_read")
  413. // AWSDynamoDBConsumedCapacityKey is the attribute Key conforming to the
  414. // "aws.dynamodb.consumed_capacity" semantic conventions. It represents the
  415. // JSON-serialized value of each item in the `ConsumedCapacity` response field.
  416. //
  417. // Type: string[]
  418. // RequirementLevel: Recommended
  419. // Stability: Development
  420. //
  421. // Examples: "{ "CapacityUnits": number, "GlobalSecondaryIndexes": { "string" :
  422. // { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits":
  423. // number } }, "LocalSecondaryIndexes": { "string" : { "CapacityUnits": number,
  424. // "ReadCapacityUnits": number, "WriteCapacityUnits": number } },
  425. // "ReadCapacityUnits": number, "Table": { "CapacityUnits": number,
  426. // "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName":
  427. // "string", "WriteCapacityUnits": number }"
  428. AWSDynamoDBConsumedCapacityKey = attribute.Key("aws.dynamodb.consumed_capacity")
  429. // AWSDynamoDBCountKey is the attribute Key conforming to the
  430. // "aws.dynamodb.count" semantic conventions. It represents the value of the
  431. // `Count` response parameter.
  432. //
  433. // Type: int
  434. // RequirementLevel: Recommended
  435. // Stability: Development
  436. //
  437. // Examples: 10
  438. AWSDynamoDBCountKey = attribute.Key("aws.dynamodb.count")
  439. // AWSDynamoDBExclusiveStartTableKey is the attribute Key conforming to the
  440. // "aws.dynamodb.exclusive_start_table" semantic conventions. It represents the
  441. // value of the `ExclusiveStartTableName` request parameter.
  442. //
  443. // Type: string
  444. // RequirementLevel: Recommended
  445. // Stability: Development
  446. //
  447. // Examples: "Users", "CatsTable"
  448. AWSDynamoDBExclusiveStartTableKey = attribute.Key("aws.dynamodb.exclusive_start_table")
  449. // AWSDynamoDBGlobalSecondaryIndexUpdatesKey is the attribute Key conforming to
  450. // the "aws.dynamodb.global_secondary_index_updates" semantic conventions. It
  451. // represents the JSON-serialized value of each item in the
  452. // `GlobalSecondaryIndexUpdates` request field.
  453. //
  454. // Type: string[]
  455. // RequirementLevel: Recommended
  456. // Stability: Development
  457. //
  458. // Examples: "{ "Create": { "IndexName": "string", "KeySchema": [ {
  459. // "AttributeName": "string", "KeyType": "string" } ], "Projection": {
  460. // "NonKeyAttributes": [ "string" ], "ProjectionType": "string" },
  461. // "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits":
  462. // number } }"
  463. AWSDynamoDBGlobalSecondaryIndexUpdatesKey = attribute.Key("aws.dynamodb.global_secondary_index_updates")
  464. // AWSDynamoDBGlobalSecondaryIndexesKey is the attribute Key conforming to the
  465. // "aws.dynamodb.global_secondary_indexes" semantic conventions. It represents
  466. // the JSON-serialized value of each item of the `GlobalSecondaryIndexes`
  467. // request field.
  468. //
  469. // Type: string[]
  470. // RequirementLevel: Recommended
  471. // Stability: Development
  472. //
  473. // Examples: "{ "IndexName": "string", "KeySchema": [ { "AttributeName":
  474. // "string", "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [
  475. // "string" ], "ProjectionType": "string" }, "ProvisionedThroughput": {
  476. // "ReadCapacityUnits": number, "WriteCapacityUnits": number } }"
  477. AWSDynamoDBGlobalSecondaryIndexesKey = attribute.Key("aws.dynamodb.global_secondary_indexes")
  478. // AWSDynamoDBIndexNameKey is the attribute Key conforming to the
  479. // "aws.dynamodb.index_name" semantic conventions. It represents the value of
  480. // the `IndexName` request parameter.
  481. //
  482. // Type: string
  483. // RequirementLevel: Recommended
  484. // Stability: Development
  485. //
  486. // Examples: "name_to_group"
  487. AWSDynamoDBIndexNameKey = attribute.Key("aws.dynamodb.index_name")
  488. // AWSDynamoDBItemCollectionMetricsKey is the attribute Key conforming to the
  489. // "aws.dynamodb.item_collection_metrics" semantic conventions. It represents
  490. // the JSON-serialized value of the `ItemCollectionMetrics` response field.
  491. //
  492. // Type: string
  493. // RequirementLevel: Recommended
  494. // Stability: Development
  495. //
  496. // Examples: "{ "string" : [ { "ItemCollectionKey": { "string" : { "B": blob,
  497. // "BOOL": boolean, "BS": [ blob ], "L": [ "AttributeValue" ], "M": { "string" :
  498. // "AttributeValue" }, "N": "string", "NS": [ "string" ], "NULL": boolean, "S":
  499. // "string", "SS": [ "string" ] } }, "SizeEstimateRangeGB": [ number ] } ] }"
  500. AWSDynamoDBItemCollectionMetricsKey = attribute.Key("aws.dynamodb.item_collection_metrics")
  501. // AWSDynamoDBLimitKey is the attribute Key conforming to the
  502. // "aws.dynamodb.limit" semantic conventions. It represents the value of the
  503. // `Limit` request parameter.
  504. //
  505. // Type: int
  506. // RequirementLevel: Recommended
  507. // Stability: Development
  508. //
  509. // Examples: 10
  510. AWSDynamoDBLimitKey = attribute.Key("aws.dynamodb.limit")
  511. // AWSDynamoDBLocalSecondaryIndexesKey is the attribute Key conforming to the
  512. // "aws.dynamodb.local_secondary_indexes" semantic conventions. It represents
  513. // the JSON-serialized value of each item of the `LocalSecondaryIndexes` request
  514. // field.
  515. //
  516. // Type: string[]
  517. // RequirementLevel: Recommended
  518. // Stability: Development
  519. //
  520. // Examples: "{ "IndexArn": "string", "IndexName": "string", "IndexSizeBytes":
  521. // number, "ItemCount": number, "KeySchema": [ { "AttributeName": "string",
  522. // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ],
  523. // "ProjectionType": "string" } }"
  524. AWSDynamoDBLocalSecondaryIndexesKey = attribute.Key("aws.dynamodb.local_secondary_indexes")
  525. // AWSDynamoDBProjectionKey is the attribute Key conforming to the
  526. // "aws.dynamodb.projection" semantic conventions. It represents the value of
  527. // the `ProjectionExpression` request parameter.
  528. //
  529. // Type: string
  530. // RequirementLevel: Recommended
  531. // Stability: Development
  532. //
  533. // Examples: "Title", "Title, Price, Color", "Title, Description, RelatedItems,
  534. // ProductReviews"
  535. AWSDynamoDBProjectionKey = attribute.Key("aws.dynamodb.projection")
  536. // AWSDynamoDBProvisionedReadCapacityKey is the attribute Key conforming to the
  537. // "aws.dynamodb.provisioned_read_capacity" semantic conventions. It represents
  538. // the value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter.
  539. //
  540. // Type: double
  541. // RequirementLevel: Recommended
  542. // Stability: Development
  543. //
  544. // Examples: 1.0, 2.0
  545. AWSDynamoDBProvisionedReadCapacityKey = attribute.Key("aws.dynamodb.provisioned_read_capacity")
  546. // AWSDynamoDBProvisionedWriteCapacityKey is the attribute Key conforming to the
  547. // "aws.dynamodb.provisioned_write_capacity" semantic conventions. It represents
  548. // the value of the `ProvisionedThroughput.WriteCapacityUnits` request
  549. // parameter.
  550. //
  551. // Type: double
  552. // RequirementLevel: Recommended
  553. // Stability: Development
  554. //
  555. // Examples: 1.0, 2.0
  556. AWSDynamoDBProvisionedWriteCapacityKey = attribute.Key("aws.dynamodb.provisioned_write_capacity")
  557. // AWSDynamoDBScanForwardKey is the attribute Key conforming to the
  558. // "aws.dynamodb.scan_forward" semantic conventions. It represents the value of
  559. // the `ScanIndexForward` request parameter.
  560. //
  561. // Type: boolean
  562. // RequirementLevel: Recommended
  563. // Stability: Development
  564. //
  565. // Examples:
  566. AWSDynamoDBScanForwardKey = attribute.Key("aws.dynamodb.scan_forward")
  567. // AWSDynamoDBScannedCountKey is the attribute Key conforming to the
  568. // "aws.dynamodb.scanned_count" semantic conventions. It represents the value of
  569. // the `ScannedCount` response parameter.
  570. //
  571. // Type: int
  572. // RequirementLevel: Recommended
  573. // Stability: Development
  574. //
  575. // Examples: 50
  576. AWSDynamoDBScannedCountKey = attribute.Key("aws.dynamodb.scanned_count")
  577. // AWSDynamoDBSegmentKey is the attribute Key conforming to the
  578. // "aws.dynamodb.segment" semantic conventions. It represents the value of the
  579. // `Segment` request parameter.
  580. //
  581. // Type: int
  582. // RequirementLevel: Recommended
  583. // Stability: Development
  584. //
  585. // Examples: 10
  586. AWSDynamoDBSegmentKey = attribute.Key("aws.dynamodb.segment")
  587. // AWSDynamoDBSelectKey is the attribute Key conforming to the
  588. // "aws.dynamodb.select" semantic conventions. It represents the value of the
  589. // `Select` request parameter.
  590. //
  591. // Type: string
  592. // RequirementLevel: Recommended
  593. // Stability: Development
  594. //
  595. // Examples: "ALL_ATTRIBUTES", "COUNT"
  596. AWSDynamoDBSelectKey = attribute.Key("aws.dynamodb.select")
  597. // AWSDynamoDBTableCountKey is the attribute Key conforming to the
  598. // "aws.dynamodb.table_count" semantic conventions. It represents the number of
  599. // items in the `TableNames` response parameter.
  600. //
  601. // Type: int
  602. // RequirementLevel: Recommended
  603. // Stability: Development
  604. //
  605. // Examples: 20
  606. AWSDynamoDBTableCountKey = attribute.Key("aws.dynamodb.table_count")
  607. // AWSDynamoDBTableNamesKey is the attribute Key conforming to the
  608. // "aws.dynamodb.table_names" semantic conventions. It represents the keys in
  609. // the `RequestItems` object field.
  610. //
  611. // Type: string[]
  612. // RequirementLevel: Recommended
  613. // Stability: Development
  614. //
  615. // Examples: "Users", "Cats"
  616. AWSDynamoDBTableNamesKey = attribute.Key("aws.dynamodb.table_names")
  617. // AWSDynamoDBTotalSegmentsKey is the attribute Key conforming to the
  618. // "aws.dynamodb.total_segments" semantic conventions. It represents the value
  619. // of the `TotalSegments` request parameter.
  620. //
  621. // Type: int
  622. // RequirementLevel: Recommended
  623. // Stability: Development
  624. //
  625. // Examples: 100
  626. AWSDynamoDBTotalSegmentsKey = attribute.Key("aws.dynamodb.total_segments")
  627. // AWSECSClusterARNKey is the attribute Key conforming to the
  628. // "aws.ecs.cluster.arn" semantic conventions. It represents the ARN of an
  629. // [ECS cluster].
  630. //
  631. // Type: string
  632. // RequirementLevel: Recommended
  633. // Stability: Development
  634. //
  635. // Examples: "arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster"
  636. //
  637. // [ECS cluster]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html
  638. AWSECSClusterARNKey = attribute.Key("aws.ecs.cluster.arn")
  639. // AWSECSContainerARNKey is the attribute Key conforming to the
  640. // "aws.ecs.container.arn" semantic conventions. It represents the Amazon
  641. // Resource Name (ARN) of an [ECS container instance].
  642. //
  643. // Type: string
  644. // RequirementLevel: Recommended
  645. // Stability: Development
  646. //
  647. // Examples:
  648. // "arn:aws:ecs:us-west-1:123456789123:container/32624152-9086-4f0e-acae-1a75b14fe4d9"
  649. //
  650. // [ECS container instance]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html
  651. AWSECSContainerARNKey = attribute.Key("aws.ecs.container.arn")
  652. // AWSECSLaunchtypeKey is the attribute Key conforming to the
  653. // "aws.ecs.launchtype" semantic conventions. It represents the [launch type]
  654. // for an ECS task.
  655. //
  656. // Type: Enum
  657. // RequirementLevel: Recommended
  658. // Stability: Development
  659. //
  660. // Examples:
  661. //
  662. // [launch type]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html
  663. AWSECSLaunchtypeKey = attribute.Key("aws.ecs.launchtype")
  664. // AWSECSTaskARNKey is the attribute Key conforming to the "aws.ecs.task.arn"
  665. // semantic conventions. It represents the ARN of a running [ECS task].
  666. //
  667. // Type: string
  668. // RequirementLevel: Recommended
  669. // Stability: Development
  670. //
  671. // Examples:
  672. // "arn:aws:ecs:us-west-1:123456789123:task/10838bed-421f-43ef-870a-f43feacbbb5b",
  673. // "arn:aws:ecs:us-west-1:123456789123:task/my-cluster/task-id/23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd"
  674. //
  675. // [ECS task]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids
  676. AWSECSTaskARNKey = attribute.Key("aws.ecs.task.arn")
  677. // AWSECSTaskFamilyKey is the attribute Key conforming to the
  678. // "aws.ecs.task.family" semantic conventions. It represents the family name of
  679. // the [ECS task definition] used to create the ECS task.
  680. //
  681. // Type: string
  682. // RequirementLevel: Recommended
  683. // Stability: Development
  684. //
  685. // Examples: "opentelemetry-family"
  686. //
  687. // [ECS task definition]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html
  688. AWSECSTaskFamilyKey = attribute.Key("aws.ecs.task.family")
  689. // AWSECSTaskIDKey is the attribute Key conforming to the "aws.ecs.task.id"
  690. // semantic conventions. It represents the ID of a running ECS task. The ID MUST
  691. // be extracted from `task.arn`.
  692. //
  693. // Type: string
  694. // RequirementLevel: Recommended
  695. // Stability: Development
  696. //
  697. // Examples: "10838bed-421f-43ef-870a-f43feacbbb5b",
  698. // "23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd"
  699. AWSECSTaskIDKey = attribute.Key("aws.ecs.task.id")
  700. // AWSECSTaskRevisionKey is the attribute Key conforming to the
  701. // "aws.ecs.task.revision" semantic conventions. It represents the revision for
  702. // the task definition used to create the ECS task.
  703. //
  704. // Type: string
  705. // RequirementLevel: Recommended
  706. // Stability: Development
  707. //
  708. // Examples: "8", "26"
  709. AWSECSTaskRevisionKey = attribute.Key("aws.ecs.task.revision")
  710. // AWSEKSClusterARNKey is the attribute Key conforming to the
  711. // "aws.eks.cluster.arn" semantic conventions. It represents the ARN of an EKS
  712. // cluster.
  713. //
  714. // Type: string
  715. // RequirementLevel: Recommended
  716. // Stability: Development
  717. //
  718. // Examples: "arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster"
  719. AWSEKSClusterARNKey = attribute.Key("aws.eks.cluster.arn")
  720. // AWSExtendedRequestIDKey is the attribute Key conforming to the
  721. // "aws.extended_request_id" semantic conventions. It represents the AWS
  722. // extended request ID as returned in the response header `x-amz-id-2`.
  723. //
  724. // Type: string
  725. // RequirementLevel: Recommended
  726. // Stability: Development
  727. //
  728. // Examples:
  729. // "wzHcyEWfmOGDIE5QOhTAqFDoDWP3y8IUvpNINCwL9N4TEHbUw0/gZJ+VZTmCNCWR7fezEN3eCiQ="
  730. AWSExtendedRequestIDKey = attribute.Key("aws.extended_request_id")
  731. // AWSKinesisStreamNameKey is the attribute Key conforming to the
  732. // "aws.kinesis.stream_name" semantic conventions. It represents the name of the
  733. // AWS Kinesis [stream] the request refers to. Corresponds to the
  734. // `--stream-name` parameter of the Kinesis [describe-stream] operation.
  735. //
  736. // Type: string
  737. // RequirementLevel: Recommended
  738. // Stability: Development
  739. //
  740. // Examples: "some-stream-name"
  741. //
  742. // [stream]: https://docs.aws.amazon.com/streams/latest/dev/introduction.html
  743. // [describe-stream]: https://docs.aws.amazon.com/cli/latest/reference/kinesis/describe-stream.html
  744. AWSKinesisStreamNameKey = attribute.Key("aws.kinesis.stream_name")
  745. // AWSLambdaInvokedARNKey is the attribute Key conforming to the
  746. // "aws.lambda.invoked_arn" semantic conventions. It represents the full invoked
  747. // ARN as provided on the `Context` passed to the function (
  748. // `Lambda-Runtime-Invoked-Function-Arn` header on the
  749. // `/runtime/invocation/next` applicable).
  750. //
  751. // Type: string
  752. // RequirementLevel: Recommended
  753. // Stability: Development
  754. //
  755. // Examples: "arn:aws:lambda:us-east-1:123456:function:myfunction:myalias"
  756. // Note: This may be different from `cloud.resource_id` if an alias is involved.
  757. AWSLambdaInvokedARNKey = attribute.Key("aws.lambda.invoked_arn")
  758. // AWSLambdaResourceMappingIDKey is the attribute Key conforming to the
  759. // "aws.lambda.resource_mapping.id" semantic conventions. It represents the UUID
  760. // of the [AWS Lambda EvenSource Mapping]. An event source is mapped to a lambda
  761. // function. It's contents are read by Lambda and used to trigger a function.
  762. // This isn't available in the lambda execution context or the lambda runtime
  763. // environtment. This is going to be populated by the AWS SDK for each language
  764. // when that UUID is present. Some of these operations are
  765. // Create/Delete/Get/List/Update EventSourceMapping.
  766. //
  767. // Type: string
  768. // RequirementLevel: Recommended
  769. // Stability: Development
  770. //
  771. // Examples: "587ad24b-03b9-4413-8202-bbd56b36e5b7"
  772. //
  773. // [AWS Lambda EvenSource Mapping]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html
  774. AWSLambdaResourceMappingIDKey = attribute.Key("aws.lambda.resource_mapping.id")
  775. // AWSLogGroupARNsKey is the attribute Key conforming to the
  776. // "aws.log.group.arns" semantic conventions. It represents the Amazon Resource
  777. // Name(s) (ARN) of the AWS log group(s).
  778. //
  779. // Type: string[]
  780. // RequirementLevel: Recommended
  781. // Stability: Development
  782. //
  783. // Examples: "arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:*"
  784. // Note: See the [log group ARN format documentation].
  785. //
  786. // [log group ARN format documentation]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format
  787. AWSLogGroupARNsKey = attribute.Key("aws.log.group.arns")
  788. // AWSLogGroupNamesKey is the attribute Key conforming to the
  789. // "aws.log.group.names" semantic conventions. It represents the name(s) of the
  790. // AWS log group(s) an application is writing to.
  791. //
  792. // Type: string[]
  793. // RequirementLevel: Recommended
  794. // Stability: Development
  795. //
  796. // Examples: "/aws/lambda/my-function", "opentelemetry-service"
  797. // Note: Multiple log groups must be supported for cases like multi-container
  798. // applications, where a single application has sidecar containers, and each
  799. // write to their own log group.
  800. AWSLogGroupNamesKey = attribute.Key("aws.log.group.names")
  801. // AWSLogStreamARNsKey is the attribute Key conforming to the
  802. // "aws.log.stream.arns" semantic conventions. It represents the ARN(s) of the
  803. // AWS log stream(s).
  804. //
  805. // Type: string[]
  806. // RequirementLevel: Recommended
  807. // Stability: Development
  808. //
  809. // Examples:
  810. // "arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:log-stream:logs/main/10838bed-421f-43ef-870a-f43feacbbb5b"
  811. // Note: See the [log stream ARN format documentation]. One log group can
  812. // contain several log streams, so these ARNs necessarily identify both a log
  813. // group and a log stream.
  814. //
  815. // [log stream ARN format documentation]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format
  816. AWSLogStreamARNsKey = attribute.Key("aws.log.stream.arns")
  817. // AWSLogStreamNamesKey is the attribute Key conforming to the
  818. // "aws.log.stream.names" semantic conventions. It represents the name(s) of the
  819. // AWS log stream(s) an application is writing to.
  820. //
  821. // Type: string[]
  822. // RequirementLevel: Recommended
  823. // Stability: Development
  824. //
  825. // Examples: "logs/main/10838bed-421f-43ef-870a-f43feacbbb5b"
  826. AWSLogStreamNamesKey = attribute.Key("aws.log.stream.names")
  827. // AWSRequestIDKey is the attribute Key conforming to the "aws.request_id"
  828. // semantic conventions. It represents the AWS request ID as returned in the
  829. // response headers `x-amzn-requestid`, `x-amzn-request-id` or
  830. // `x-amz-request-id`.
  831. //
  832. // Type: string
  833. // RequirementLevel: Recommended
  834. // Stability: Development
  835. //
  836. // Examples: "79b9da39-b7ae-508a-a6bc-864b2829c622", "C9ER4AJX75574TDJ"
  837. AWSRequestIDKey = attribute.Key("aws.request_id")
  838. // AWSS3BucketKey is the attribute Key conforming to the "aws.s3.bucket"
  839. // semantic conventions. It represents the S3 bucket name the request refers to.
  840. // Corresponds to the `--bucket` parameter of the [S3 API] operations.
  841. //
  842. // Type: string
  843. // RequirementLevel: Recommended
  844. // Stability: Development
  845. //
  846. // Examples: "some-bucket-name"
  847. // Note: The `bucket` attribute is applicable to all S3 operations that
  848. // reference a bucket, i.e. that require the bucket name as a mandatory
  849. // parameter.
  850. // This applies to almost all S3 operations except `list-buckets`.
  851. //
  852. // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
  853. AWSS3BucketKey = attribute.Key("aws.s3.bucket")
  854. // AWSS3CopySourceKey is the attribute Key conforming to the
  855. // "aws.s3.copy_source" semantic conventions. It represents the source object
  856. // (in the form `bucket`/`key`) for the copy operation.
  857. //
  858. // Type: string
  859. // RequirementLevel: Recommended
  860. // Stability: Development
  861. //
  862. // Examples: "someFile.yml"
  863. // Note: The `copy_source` attribute applies to S3 copy operations and
  864. // corresponds to the `--copy-source` parameter
  865. // of the [copy-object operation within the S3 API].
  866. // This applies in particular to the following operations:
  867. //
  868. // - [copy-object]
  869. // - [upload-part-copy]
  870. //
  871. //
  872. // [copy-object operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html
  873. // [copy-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html
  874. // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
  875. AWSS3CopySourceKey = attribute.Key("aws.s3.copy_source")
  876. // AWSS3DeleteKey is the attribute Key conforming to the "aws.s3.delete"
  877. // semantic conventions. It represents the delete request container that
  878. // specifies the objects to be deleted.
  879. //
  880. // Type: string
  881. // RequirementLevel: Recommended
  882. // Stability: Development
  883. //
  884. // Examples:
  885. // "Objects=[{Key=string,VersionId=string},{Key=string,VersionId=string}],Quiet=boolean"
  886. // Note: The `delete` attribute is only applicable to the [delete-object]
  887. // operation.
  888. // The `delete` attribute corresponds to the `--delete` parameter of the
  889. // [delete-objects operation within the S3 API].
  890. //
  891. // [delete-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html
  892. // [delete-objects operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-objects.html
  893. AWSS3DeleteKey = attribute.Key("aws.s3.delete")
  894. // AWSS3KeyKey is the attribute Key conforming to the "aws.s3.key" semantic
  895. // conventions. It represents the S3 object key the request refers to.
  896. // Corresponds to the `--key` parameter of the [S3 API] operations.
  897. //
  898. // Type: string
  899. // RequirementLevel: Recommended
  900. // Stability: Development
  901. //
  902. // Examples: "someFile.yml"
  903. // Note: The `key` attribute is applicable to all object-related S3 operations,
  904. // i.e. that require the object key as a mandatory parameter.
  905. // This applies in particular to the following operations:
  906. //
  907. // - [copy-object]
  908. // - [delete-object]
  909. // - [get-object]
  910. // - [head-object]
  911. // - [put-object]
  912. // - [restore-object]
  913. // - [select-object-content]
  914. // - [abort-multipart-upload]
  915. // - [complete-multipart-upload]
  916. // - [create-multipart-upload]
  917. // - [list-parts]
  918. // - [upload-part]
  919. // - [upload-part-copy]
  920. //
  921. //
  922. // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
  923. // [copy-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html
  924. // [delete-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html
  925. // [get-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/get-object.html
  926. // [head-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/head-object.html
  927. // [put-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/put-object.html
  928. // [restore-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/restore-object.html
  929. // [select-object-content]: https://docs.aws.amazon.com/cli/latest/reference/s3api/select-object-content.html
  930. // [abort-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html
  931. // [complete-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.html
  932. // [create-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/create-multipart-upload.html
  933. // [list-parts]: https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html
  934. // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
  935. // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
  936. AWSS3KeyKey = attribute.Key("aws.s3.key")
  937. // AWSS3PartNumberKey is the attribute Key conforming to the
  938. // "aws.s3.part_number" semantic conventions. It represents the part number of
  939. // the part being uploaded in a multipart-upload operation. This is a positive
  940. // integer between 1 and 10,000.
  941. //
  942. // Type: int
  943. // RequirementLevel: Recommended
  944. // Stability: Development
  945. //
  946. // Examples: 3456
  947. // Note: The `part_number` attribute is only applicable to the [upload-part]
  948. // and [upload-part-copy] operations.
  949. // The `part_number` attribute corresponds to the `--part-number` parameter of
  950. // the
  951. // [upload-part operation within the S3 API].
  952. //
  953. // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
  954. // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
  955. // [upload-part operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
  956. AWSS3PartNumberKey = attribute.Key("aws.s3.part_number")
  957. // AWSS3UploadIDKey is the attribute Key conforming to the "aws.s3.upload_id"
  958. // semantic conventions. It represents the upload ID that identifies the
  959. // multipart upload.
  960. //
  961. // Type: string
  962. // RequirementLevel: Recommended
  963. // Stability: Development
  964. //
  965. // Examples: "dfRtDYWFbkRONycy.Yxwh66Yjlx.cph0gtNBtJ"
  966. // Note: The `upload_id` attribute applies to S3 multipart-upload operations and
  967. // corresponds to the `--upload-id` parameter
  968. // of the [S3 API] multipart operations.
  969. // This applies in particular to the following operations:
  970. //
  971. // - [abort-multipart-upload]
  972. // - [complete-multipart-upload]
  973. // - [list-parts]
  974. // - [upload-part]
  975. // - [upload-part-copy]
  976. //
  977. //
  978. // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
  979. // [abort-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html
  980. // [complete-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.html
  981. // [list-parts]: https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html
  982. // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
  983. // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
  984. AWSS3UploadIDKey = attribute.Key("aws.s3.upload_id")
  985. // AWSSecretsmanagerSecretARNKey is the attribute Key conforming to the
  986. // "aws.secretsmanager.secret.arn" semantic conventions. It represents the ARN
  987. // of the Secret stored in the Secrets Mangger.
  988. //
  989. // Type: string
  990. // RequirementLevel: Recommended
  991. // Stability: Development
  992. //
  993. // Examples:
  994. // "arn:aws:secretsmanager:us-east-1:123456789012:secret:SecretName-6RandomCharacters"
  995. AWSSecretsmanagerSecretARNKey = attribute.Key("aws.secretsmanager.secret.arn")
  996. // AWSSNSTopicARNKey is the attribute Key conforming to the "aws.sns.topic.arn"
  997. // semantic conventions. It represents the ARN of the AWS SNS Topic. An Amazon
  998. // SNS [topic] is a logical access point that acts as a communication channel.
  999. //
  1000. // Type: string
  1001. // RequirementLevel: Recommended
  1002. // Stability: Development
  1003. //
  1004. // Examples: "arn:aws:sns:us-east-1:123456789012:mystack-mytopic-NZJ5JSMVGFIE"
  1005. //
  1006. // [topic]: https://docs.aws.amazon.com/sns/latest/dg/sns-create-topic.html
  1007. AWSSNSTopicARNKey = attribute.Key("aws.sns.topic.arn")
  1008. // AWSSQSQueueURLKey is the attribute Key conforming to the "aws.sqs.queue.url"
  1009. // semantic conventions. It represents the URL of the AWS SQS Queue. It's a
  1010. // unique identifier for a queue in Amazon Simple Queue Service (SQS) and is
  1011. // used to access the queue and perform actions on it.
  1012. //
  1013. // Type: string
  1014. // RequirementLevel: Recommended
  1015. // Stability: Development
  1016. //
  1017. // Examples: "https://sqs.us-east-1.amazonaws.com/123456789012/MyQueue"
  1018. AWSSQSQueueURLKey = attribute.Key("aws.sqs.queue.url")
  1019. // AWSStepFunctionsActivityARNKey is the attribute Key conforming to the
  1020. // "aws.step_functions.activity.arn" semantic conventions. It represents the ARN
  1021. // of the AWS Step Functions Activity.
  1022. //
  1023. // Type: string
  1024. // RequirementLevel: Recommended
  1025. // Stability: Development
  1026. //
  1027. // Examples: "arn:aws:states:us-east-1:123456789012:activity:get-greeting"
  1028. AWSStepFunctionsActivityARNKey = attribute.Key("aws.step_functions.activity.arn")
  1029. // AWSStepFunctionsStateMachineARNKey is the attribute Key conforming to the
  1030. // "aws.step_functions.state_machine.arn" semantic conventions. It represents
  1031. // the ARN of the AWS Step Functions State Machine.
  1032. //
  1033. // Type: string
  1034. // RequirementLevel: Recommended
  1035. // Stability: Development
  1036. //
  1037. // Examples:
  1038. // "arn:aws:states:us-east-1:123456789012:stateMachine:myStateMachine:1"
  1039. AWSStepFunctionsStateMachineARNKey = attribute.Key("aws.step_functions.state_machine.arn")
  1040. )
  1041. // AWSBedrockGuardrailID returns an attribute KeyValue conforming to the
  1042. // "aws.bedrock.guardrail.id" semantic conventions. It represents the unique
  1043. // identifier of the AWS Bedrock Guardrail. A [guardrail] helps safeguard and
  1044. // prevent unwanted behavior from model responses or user messages.
  1045. //
  1046. // [guardrail]: https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html
  1047. func AWSBedrockGuardrailID(val string) attribute.KeyValue {
  1048. return AWSBedrockGuardrailIDKey.String(val)
  1049. }
  1050. // AWSBedrockKnowledgeBaseID returns an attribute KeyValue conforming to the
  1051. // "aws.bedrock.knowledge_base.id" semantic conventions. It represents the unique
  1052. // identifier of the AWS Bedrock Knowledge base. A [knowledge base] is a bank of
  1053. // information that can be queried by models to generate more relevant responses
  1054. // and augment prompts.
  1055. //
  1056. // [knowledge base]: https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base.html
  1057. func AWSBedrockKnowledgeBaseID(val string) attribute.KeyValue {
  1058. return AWSBedrockKnowledgeBaseIDKey.String(val)
  1059. }
  1060. // AWSDynamoDBAttributeDefinitions returns an attribute KeyValue conforming to
  1061. // the "aws.dynamodb.attribute_definitions" semantic conventions. It represents
  1062. // the JSON-serialized value of each item in the `AttributeDefinitions` request
  1063. // field.
  1064. func AWSDynamoDBAttributeDefinitions(val ...string) attribute.KeyValue {
  1065. return AWSDynamoDBAttributeDefinitionsKey.StringSlice(val)
  1066. }
  1067. // AWSDynamoDBAttributesToGet returns an attribute KeyValue conforming to the
  1068. // "aws.dynamodb.attributes_to_get" semantic conventions. It represents the value
  1069. // of the `AttributesToGet` request parameter.
  1070. func AWSDynamoDBAttributesToGet(val ...string) attribute.KeyValue {
  1071. return AWSDynamoDBAttributesToGetKey.StringSlice(val)
  1072. }
  1073. // AWSDynamoDBConsistentRead returns an attribute KeyValue conforming to the
  1074. // "aws.dynamodb.consistent_read" semantic conventions. It represents the value
  1075. // of the `ConsistentRead` request parameter.
  1076. func AWSDynamoDBConsistentRead(val bool) attribute.KeyValue {
  1077. return AWSDynamoDBConsistentReadKey.Bool(val)
  1078. }
  1079. // AWSDynamoDBConsumedCapacity returns an attribute KeyValue conforming to the
  1080. // "aws.dynamodb.consumed_capacity" semantic conventions. It represents the
  1081. // JSON-serialized value of each item in the `ConsumedCapacity` response field.
  1082. func AWSDynamoDBConsumedCapacity(val ...string) attribute.KeyValue {
  1083. return AWSDynamoDBConsumedCapacityKey.StringSlice(val)
  1084. }
  1085. // AWSDynamoDBCount returns an attribute KeyValue conforming to the
  1086. // "aws.dynamodb.count" semantic conventions. It represents the value of the
  1087. // `Count` response parameter.
  1088. func AWSDynamoDBCount(val int) attribute.KeyValue {
  1089. return AWSDynamoDBCountKey.Int(val)
  1090. }
  1091. // AWSDynamoDBExclusiveStartTable returns an attribute KeyValue conforming to the
  1092. // "aws.dynamodb.exclusive_start_table" semantic conventions. It represents the
  1093. // value of the `ExclusiveStartTableName` request parameter.
  1094. func AWSDynamoDBExclusiveStartTable(val string) attribute.KeyValue {
  1095. return AWSDynamoDBExclusiveStartTableKey.String(val)
  1096. }
  1097. // AWSDynamoDBGlobalSecondaryIndexUpdates returns an attribute KeyValue
  1098. // conforming to the "aws.dynamodb.global_secondary_index_updates" semantic
  1099. // conventions. It represents the JSON-serialized value of each item in the
  1100. // `GlobalSecondaryIndexUpdates` request field.
  1101. func AWSDynamoDBGlobalSecondaryIndexUpdates(val ...string) attribute.KeyValue {
  1102. return AWSDynamoDBGlobalSecondaryIndexUpdatesKey.StringSlice(val)
  1103. }
  1104. // AWSDynamoDBGlobalSecondaryIndexes returns an attribute KeyValue conforming to
  1105. // the "aws.dynamodb.global_secondary_indexes" semantic conventions. It
  1106. // represents the JSON-serialized value of each item of the
  1107. // `GlobalSecondaryIndexes` request field.
  1108. func AWSDynamoDBGlobalSecondaryIndexes(val ...string) attribute.KeyValue {
  1109. return AWSDynamoDBGlobalSecondaryIndexesKey.StringSlice(val)
  1110. }
  1111. // AWSDynamoDBIndexName returns an attribute KeyValue conforming to the
  1112. // "aws.dynamodb.index_name" semantic conventions. It represents the value of the
  1113. // `IndexName` request parameter.
  1114. func AWSDynamoDBIndexName(val string) attribute.KeyValue {
  1115. return AWSDynamoDBIndexNameKey.String(val)
  1116. }
  1117. // AWSDynamoDBItemCollectionMetrics returns an attribute KeyValue conforming to
  1118. // the "aws.dynamodb.item_collection_metrics" semantic conventions. It represents
  1119. // the JSON-serialized value of the `ItemCollectionMetrics` response field.
  1120. func AWSDynamoDBItemCollectionMetrics(val string) attribute.KeyValue {
  1121. return AWSDynamoDBItemCollectionMetricsKey.String(val)
  1122. }
  1123. // AWSDynamoDBLimit returns an attribute KeyValue conforming to the
  1124. // "aws.dynamodb.limit" semantic conventions. It represents the value of the
  1125. // `Limit` request parameter.
  1126. func AWSDynamoDBLimit(val int) attribute.KeyValue {
  1127. return AWSDynamoDBLimitKey.Int(val)
  1128. }
  1129. // AWSDynamoDBLocalSecondaryIndexes returns an attribute KeyValue conforming to
  1130. // the "aws.dynamodb.local_secondary_indexes" semantic conventions. It represents
  1131. // the JSON-serialized value of each item of the `LocalSecondaryIndexes` request
  1132. // field.
  1133. func AWSDynamoDBLocalSecondaryIndexes(val ...string) attribute.KeyValue {
  1134. return AWSDynamoDBLocalSecondaryIndexesKey.StringSlice(val)
  1135. }
  1136. // AWSDynamoDBProjection returns an attribute KeyValue conforming to the
  1137. // "aws.dynamodb.projection" semantic conventions. It represents the value of the
  1138. // `ProjectionExpression` request parameter.
  1139. func AWSDynamoDBProjection(val string) attribute.KeyValue {
  1140. return AWSDynamoDBProjectionKey.String(val)
  1141. }
  1142. // AWSDynamoDBProvisionedReadCapacity returns an attribute KeyValue conforming to
  1143. // the "aws.dynamodb.provisioned_read_capacity" semantic conventions. It
  1144. // represents the value of the `ProvisionedThroughput.ReadCapacityUnits` request
  1145. // parameter.
  1146. func AWSDynamoDBProvisionedReadCapacity(val float64) attribute.KeyValue {
  1147. return AWSDynamoDBProvisionedReadCapacityKey.Float64(val)
  1148. }
  1149. // AWSDynamoDBProvisionedWriteCapacity returns an attribute KeyValue conforming
  1150. // to the "aws.dynamodb.provisioned_write_capacity" semantic conventions. It
  1151. // represents the value of the `ProvisionedThroughput.WriteCapacityUnits` request
  1152. // parameter.
  1153. func AWSDynamoDBProvisionedWriteCapacity(val float64) attribute.KeyValue {
  1154. return AWSDynamoDBProvisionedWriteCapacityKey.Float64(val)
  1155. }
  1156. // AWSDynamoDBScanForward returns an attribute KeyValue conforming to the
  1157. // "aws.dynamodb.scan_forward" semantic conventions. It represents the value of
  1158. // the `ScanIndexForward` request parameter.
  1159. func AWSDynamoDBScanForward(val bool) attribute.KeyValue {
  1160. return AWSDynamoDBScanForwardKey.Bool(val)
  1161. }
  1162. // AWSDynamoDBScannedCount returns an attribute KeyValue conforming to the
  1163. // "aws.dynamodb.scanned_count" semantic conventions. It represents the value of
  1164. // the `ScannedCount` response parameter.
  1165. func AWSDynamoDBScannedCount(val int) attribute.KeyValue {
  1166. return AWSDynamoDBScannedCountKey.Int(val)
  1167. }
  1168. // AWSDynamoDBSegment returns an attribute KeyValue conforming to the
  1169. // "aws.dynamodb.segment" semantic conventions. It represents the value of the
  1170. // `Segment` request parameter.
  1171. func AWSDynamoDBSegment(val int) attribute.KeyValue {
  1172. return AWSDynamoDBSegmentKey.Int(val)
  1173. }
  1174. // AWSDynamoDBSelect returns an attribute KeyValue conforming to the
  1175. // "aws.dynamodb.select" semantic conventions. It represents the value of the
  1176. // `Select` request parameter.
  1177. func AWSDynamoDBSelect(val string) attribute.KeyValue {
  1178. return AWSDynamoDBSelectKey.String(val)
  1179. }
  1180. // AWSDynamoDBTableCount returns an attribute KeyValue conforming to the
  1181. // "aws.dynamodb.table_count" semantic conventions. It represents the number of
  1182. // items in the `TableNames` response parameter.
  1183. func AWSDynamoDBTableCount(val int) attribute.KeyValue {
  1184. return AWSDynamoDBTableCountKey.Int(val)
  1185. }
  1186. // AWSDynamoDBTableNames returns an attribute KeyValue conforming to the
  1187. // "aws.dynamodb.table_names" semantic conventions. It represents the keys in the
  1188. // `RequestItems` object field.
  1189. func AWSDynamoDBTableNames(val ...string) attribute.KeyValue {
  1190. return AWSDynamoDBTableNamesKey.StringSlice(val)
  1191. }
  1192. // AWSDynamoDBTotalSegments returns an attribute KeyValue conforming to the
  1193. // "aws.dynamodb.total_segments" semantic conventions. It represents the value of
  1194. // the `TotalSegments` request parameter.
  1195. func AWSDynamoDBTotalSegments(val int) attribute.KeyValue {
  1196. return AWSDynamoDBTotalSegmentsKey.Int(val)
  1197. }
  1198. // AWSECSClusterARN returns an attribute KeyValue conforming to the
  1199. // "aws.ecs.cluster.arn" semantic conventions. It represents the ARN of an
  1200. // [ECS cluster].
  1201. //
  1202. // [ECS cluster]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html
  1203. func AWSECSClusterARN(val string) attribute.KeyValue {
  1204. return AWSECSClusterARNKey.String(val)
  1205. }
  1206. // AWSECSContainerARN returns an attribute KeyValue conforming to the
  1207. // "aws.ecs.container.arn" semantic conventions. It represents the Amazon
  1208. // Resource Name (ARN) of an [ECS container instance].
  1209. //
  1210. // [ECS container instance]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html
  1211. func AWSECSContainerARN(val string) attribute.KeyValue {
  1212. return AWSECSContainerARNKey.String(val)
  1213. }
  1214. // AWSECSTaskARN returns an attribute KeyValue conforming to the
  1215. // "aws.ecs.task.arn" semantic conventions. It represents the ARN of a running
  1216. // [ECS task].
  1217. //
  1218. // [ECS task]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids
  1219. func AWSECSTaskARN(val string) attribute.KeyValue {
  1220. return AWSECSTaskARNKey.String(val)
  1221. }
  1222. // AWSECSTaskFamily returns an attribute KeyValue conforming to the
  1223. // "aws.ecs.task.family" semantic conventions. It represents the family name of
  1224. // the [ECS task definition] used to create the ECS task.
  1225. //
  1226. // [ECS task definition]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html
  1227. func AWSECSTaskFamily(val string) attribute.KeyValue {
  1228. return AWSECSTaskFamilyKey.String(val)
  1229. }
  1230. // AWSECSTaskID returns an attribute KeyValue conforming to the "aws.ecs.task.id"
  1231. // semantic conventions. It represents the ID of a running ECS task. The ID MUST
  1232. // be extracted from `task.arn`.
  1233. func AWSECSTaskID(val string) attribute.KeyValue {
  1234. return AWSECSTaskIDKey.String(val)
  1235. }
  1236. // AWSECSTaskRevision returns an attribute KeyValue conforming to the
  1237. // "aws.ecs.task.revision" semantic conventions. It represents the revision for
  1238. // the task definition used to create the ECS task.
  1239. func AWSECSTaskRevision(val string) attribute.KeyValue {
  1240. return AWSECSTaskRevisionKey.String(val)
  1241. }
  1242. // AWSEKSClusterARN returns an attribute KeyValue conforming to the
  1243. // "aws.eks.cluster.arn" semantic conventions. It represents the ARN of an EKS
  1244. // cluster.
  1245. func AWSEKSClusterARN(val string) attribute.KeyValue {
  1246. return AWSEKSClusterARNKey.String(val)
  1247. }
  1248. // AWSExtendedRequestID returns an attribute KeyValue conforming to the
  1249. // "aws.extended_request_id" semantic conventions. It represents the AWS extended
  1250. // request ID as returned in the response header `x-amz-id-2`.
  1251. func AWSExtendedRequestID(val string) attribute.KeyValue {
  1252. return AWSExtendedRequestIDKey.String(val)
  1253. }
  1254. // AWSKinesisStreamName returns an attribute KeyValue conforming to the
  1255. // "aws.kinesis.stream_name" semantic conventions. It represents the name of the
  1256. // AWS Kinesis [stream] the request refers to. Corresponds to the `--stream-name`
  1257. // parameter of the Kinesis [describe-stream] operation.
  1258. //
  1259. // [stream]: https://docs.aws.amazon.com/streams/latest/dev/introduction.html
  1260. // [describe-stream]: https://docs.aws.amazon.com/cli/latest/reference/kinesis/describe-stream.html
  1261. func AWSKinesisStreamName(val string) attribute.KeyValue {
  1262. return AWSKinesisStreamNameKey.String(val)
  1263. }
  1264. // AWSLambdaInvokedARN returns an attribute KeyValue conforming to the
  1265. // "aws.lambda.invoked_arn" semantic conventions. It represents the full invoked
  1266. // ARN as provided on the `Context` passed to the function (
  1267. // `Lambda-Runtime-Invoked-Function-Arn` header on the `/runtime/invocation/next`
  1268. // applicable).
  1269. func AWSLambdaInvokedARN(val string) attribute.KeyValue {
  1270. return AWSLambdaInvokedARNKey.String(val)
  1271. }
  1272. // AWSLambdaResourceMappingID returns an attribute KeyValue conforming to the
  1273. // "aws.lambda.resource_mapping.id" semantic conventions. It represents the UUID
  1274. // of the [AWS Lambda EvenSource Mapping]. An event source is mapped to a lambda
  1275. // function. It's contents are read by Lambda and used to trigger a function.
  1276. // This isn't available in the lambda execution context or the lambda runtime
  1277. // environtment. This is going to be populated by the AWS SDK for each language
  1278. // when that UUID is present. Some of these operations are
  1279. // Create/Delete/Get/List/Update EventSourceMapping.
  1280. //
  1281. // [AWS Lambda EvenSource Mapping]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html
  1282. func AWSLambdaResourceMappingID(val string) attribute.KeyValue {
  1283. return AWSLambdaResourceMappingIDKey.String(val)
  1284. }
  1285. // AWSLogGroupARNs returns an attribute KeyValue conforming to the
  1286. // "aws.log.group.arns" semantic conventions. It represents the Amazon Resource
  1287. // Name(s) (ARN) of the AWS log group(s).
  1288. func AWSLogGroupARNs(val ...string) attribute.KeyValue {
  1289. return AWSLogGroupARNsKey.StringSlice(val)
  1290. }
  1291. // AWSLogGroupNames returns an attribute KeyValue conforming to the
  1292. // "aws.log.group.names" semantic conventions. It represents the name(s) of the
  1293. // AWS log group(s) an application is writing to.
  1294. func AWSLogGroupNames(val ...string) attribute.KeyValue {
  1295. return AWSLogGroupNamesKey.StringSlice(val)
  1296. }
  1297. // AWSLogStreamARNs returns an attribute KeyValue conforming to the
  1298. // "aws.log.stream.arns" semantic conventions. It represents the ARN(s) of the
  1299. // AWS log stream(s).
  1300. func AWSLogStreamARNs(val ...string) attribute.KeyValue {
  1301. return AWSLogStreamARNsKey.StringSlice(val)
  1302. }
  1303. // AWSLogStreamNames returns an attribute KeyValue conforming to the
  1304. // "aws.log.stream.names" semantic conventions. It represents the name(s) of the
  1305. // AWS log stream(s) an application is writing to.
  1306. func AWSLogStreamNames(val ...string) attribute.KeyValue {
  1307. return AWSLogStreamNamesKey.StringSlice(val)
  1308. }
  1309. // AWSRequestID returns an attribute KeyValue conforming to the "aws.request_id"
  1310. // semantic conventions. It represents the AWS request ID as returned in the
  1311. // response headers `x-amzn-requestid`, `x-amzn-request-id` or `x-amz-request-id`
  1312. // .
  1313. func AWSRequestID(val string) attribute.KeyValue {
  1314. return AWSRequestIDKey.String(val)
  1315. }
  1316. // AWSS3Bucket returns an attribute KeyValue conforming to the "aws.s3.bucket"
  1317. // semantic conventions. It represents the S3 bucket name the request refers to.
  1318. // Corresponds to the `--bucket` parameter of the [S3 API] operations.
  1319. //
  1320. // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
  1321. func AWSS3Bucket(val string) attribute.KeyValue {
  1322. return AWSS3BucketKey.String(val)
  1323. }
  1324. // AWSS3CopySource returns an attribute KeyValue conforming to the
  1325. // "aws.s3.copy_source" semantic conventions. It represents the source object (in
  1326. // the form `bucket`/`key`) for the copy operation.
  1327. func AWSS3CopySource(val string) attribute.KeyValue {
  1328. return AWSS3CopySourceKey.String(val)
  1329. }
  1330. // AWSS3Delete returns an attribute KeyValue conforming to the "aws.s3.delete"
  1331. // semantic conventions. It represents the delete request container that
  1332. // specifies the objects to be deleted.
  1333. func AWSS3Delete(val string) attribute.KeyValue {
  1334. return AWSS3DeleteKey.String(val)
  1335. }
  1336. // AWSS3Key returns an attribute KeyValue conforming to the "aws.s3.key" semantic
  1337. // conventions. It represents the S3 object key the request refers to.
  1338. // Corresponds to the `--key` parameter of the [S3 API] operations.
  1339. //
  1340. // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
  1341. func AWSS3Key(val string) attribute.KeyValue {
  1342. return AWSS3KeyKey.String(val)
  1343. }
  1344. // AWSS3PartNumber returns an attribute KeyValue conforming to the
  1345. // "aws.s3.part_number" semantic conventions. It represents the part number of
  1346. // the part being uploaded in a multipart-upload operation. This is a positive
  1347. // integer between 1 and 10,000.
  1348. func AWSS3PartNumber(val int) attribute.KeyValue {
  1349. return AWSS3PartNumberKey.Int(val)
  1350. }
  1351. // AWSS3UploadID returns an attribute KeyValue conforming to the
  1352. // "aws.s3.upload_id" semantic conventions. It represents the upload ID that
  1353. // identifies the multipart upload.
  1354. func AWSS3UploadID(val string) attribute.KeyValue {
  1355. return AWSS3UploadIDKey.String(val)
  1356. }
  1357. // AWSSecretsmanagerSecretARN returns an attribute KeyValue conforming to the
  1358. // "aws.secretsmanager.secret.arn" semantic conventions. It represents the ARN of
  1359. // the Secret stored in the Secrets Mangger.
  1360. func AWSSecretsmanagerSecretARN(val string) attribute.KeyValue {
  1361. return AWSSecretsmanagerSecretARNKey.String(val)
  1362. }
  1363. // AWSSNSTopicARN returns an attribute KeyValue conforming to the
  1364. // "aws.sns.topic.arn" semantic conventions. It represents the ARN of the AWS SNS
  1365. // Topic. An Amazon SNS [topic] is a logical access point that acts as a
  1366. // communication channel.
  1367. //
  1368. // [topic]: https://docs.aws.amazon.com/sns/latest/dg/sns-create-topic.html
  1369. func AWSSNSTopicARN(val string) attribute.KeyValue {
  1370. return AWSSNSTopicARNKey.String(val)
  1371. }
  1372. // AWSSQSQueueURL returns an attribute KeyValue conforming to the
  1373. // "aws.sqs.queue.url" semantic conventions. It represents the URL of the AWS SQS
  1374. // Queue. It's a unique identifier for a queue in Amazon Simple Queue Service
  1375. // (SQS) and is used to access the queue and perform actions on it.
  1376. func AWSSQSQueueURL(val string) attribute.KeyValue {
  1377. return AWSSQSQueueURLKey.String(val)
  1378. }
  1379. // AWSStepFunctionsActivityARN returns an attribute KeyValue conforming to the
  1380. // "aws.step_functions.activity.arn" semantic conventions. It represents the ARN
  1381. // of the AWS Step Functions Activity.
  1382. func AWSStepFunctionsActivityARN(val string) attribute.KeyValue {
  1383. return AWSStepFunctionsActivityARNKey.String(val)
  1384. }
  1385. // AWSStepFunctionsStateMachineARN returns an attribute KeyValue conforming to
  1386. // the "aws.step_functions.state_machine.arn" semantic conventions. It represents
  1387. // the ARN of the AWS Step Functions State Machine.
  1388. func AWSStepFunctionsStateMachineARN(val string) attribute.KeyValue {
  1389. return AWSStepFunctionsStateMachineARNKey.String(val)
  1390. }
  1391. // Enum values for aws.ecs.launchtype
  1392. var (
  1393. // ec2
  1394. // Stability: development
  1395. AWSECSLaunchtypeEC2 = AWSECSLaunchtypeKey.String("ec2")
  1396. // fargate
  1397. // Stability: development
  1398. AWSECSLaunchtypeFargate = AWSECSLaunchtypeKey.String("fargate")
  1399. )
  1400. // Namespace: az
  1401. const (
  1402. // AzNamespaceKey is the attribute Key conforming to the "az.namespace" semantic
  1403. // conventions. It represents the [Azure Resource Provider Namespace] as
  1404. // recognized by the client.
  1405. //
  1406. // Type: string
  1407. // RequirementLevel: Recommended
  1408. // Stability: Development
  1409. //
  1410. // Examples: "Microsoft.Storage", "Microsoft.KeyVault", "Microsoft.ServiceBus"
  1411. //
  1412. // [Azure Resource Provider Namespace]: https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers
  1413. AzNamespaceKey = attribute.Key("az.namespace")
  1414. // AzServiceRequestIDKey is the attribute Key conforming to the
  1415. // "az.service_request_id" semantic conventions. It represents the unique
  1416. // identifier of the service request. It's generated by the Azure service and
  1417. // returned with the response.
  1418. //
  1419. // Type: string
  1420. // RequirementLevel: Recommended
  1421. // Stability: Development
  1422. //
  1423. // Examples: "00000000-0000-0000-0000-000000000000"
  1424. AzServiceRequestIDKey = attribute.Key("az.service_request_id")
  1425. )
  1426. // AzNamespace returns an attribute KeyValue conforming to the "az.namespace"
  1427. // semantic conventions. It represents the [Azure Resource Provider Namespace] as
  1428. // recognized by the client.
  1429. //
  1430. // [Azure Resource Provider Namespace]: https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers
  1431. func AzNamespace(val string) attribute.KeyValue {
  1432. return AzNamespaceKey.String(val)
  1433. }
  1434. // AzServiceRequestID returns an attribute KeyValue conforming to the
  1435. // "az.service_request_id" semantic conventions. It represents the unique
  1436. // identifier of the service request. It's generated by the Azure service and
  1437. // returned with the response.
  1438. func AzServiceRequestID(val string) attribute.KeyValue {
  1439. return AzServiceRequestIDKey.String(val)
  1440. }
  1441. // Namespace: azure
  1442. const (
  1443. // AzureClientIDKey is the attribute Key conforming to the "azure.client.id"
  1444. // semantic conventions. It represents the unique identifier of the client
  1445. // instance.
  1446. //
  1447. // Type: string
  1448. // RequirementLevel: Recommended
  1449. // Stability: Development
  1450. //
  1451. // Examples: "3ba4827d-4422-483f-b59f-85b74211c11d", "storage-client-1"
  1452. AzureClientIDKey = attribute.Key("azure.client.id")
  1453. // AzureCosmosDBConnectionModeKey is the attribute Key conforming to the
  1454. // "azure.cosmosdb.connection.mode" semantic conventions. It represents the
  1455. // cosmos client connection mode.
  1456. //
  1457. // Type: Enum
  1458. // RequirementLevel: Recommended
  1459. // Stability: Development
  1460. //
  1461. // Examples:
  1462. AzureCosmosDBConnectionModeKey = attribute.Key("azure.cosmosdb.connection.mode")
  1463. // AzureCosmosDBConsistencyLevelKey is the attribute Key conforming to the
  1464. // "azure.cosmosdb.consistency.level" semantic conventions. It represents the
  1465. // account or request [consistency level].
  1466. //
  1467. // Type: Enum
  1468. // RequirementLevel: Recommended
  1469. // Stability: Development
  1470. //
  1471. // Examples: "Eventual", "ConsistentPrefix", "BoundedStaleness", "Strong",
  1472. // "Session"
  1473. //
  1474. // [consistency level]: https://learn.microsoft.com/azure/cosmos-db/consistency-levels
  1475. AzureCosmosDBConsistencyLevelKey = attribute.Key("azure.cosmosdb.consistency.level")
  1476. // AzureCosmosDBOperationContactedRegionsKey is the attribute Key conforming to
  1477. // the "azure.cosmosdb.operation.contacted_regions" semantic conventions. It
  1478. // represents the list of regions contacted during operation in the order that
  1479. // they were contacted. If there is more than one region listed, it indicates
  1480. // that the operation was performed on multiple regions i.e. cross-regional
  1481. // call.
  1482. //
  1483. // Type: string[]
  1484. // RequirementLevel: Recommended
  1485. // Stability: Development
  1486. //
  1487. // Examples: "North Central US", "Australia East", "Australia Southeast"
  1488. // Note: Region name matches the format of `displayName` in [Azure Location API]
  1489. //
  1490. // [Azure Location API]: https://learn.microsoft.com/rest/api/subscription/subscriptions/list-locations?view=rest-subscription-2021-10-01&tabs=HTTP#location
  1491. AzureCosmosDBOperationContactedRegionsKey = attribute.Key("azure.cosmosdb.operation.contacted_regions")
  1492. // AzureCosmosDBOperationRequestChargeKey is the attribute Key conforming to the
  1493. // "azure.cosmosdb.operation.request_charge" semantic conventions. It represents
  1494. // the number of request units consumed by the operation.
  1495. //
  1496. // Type: double
  1497. // RequirementLevel: Recommended
  1498. // Stability: Development
  1499. //
  1500. // Examples: 46.18, 1.0
  1501. AzureCosmosDBOperationRequestChargeKey = attribute.Key("azure.cosmosdb.operation.request_charge")
  1502. // AzureCosmosDBRequestBodySizeKey is the attribute Key conforming to the
  1503. // "azure.cosmosdb.request.body.size" semantic conventions. It represents the
  1504. // request payload size in bytes.
  1505. //
  1506. // Type: int
  1507. // RequirementLevel: Recommended
  1508. // Stability: Development
  1509. //
  1510. // Examples:
  1511. AzureCosmosDBRequestBodySizeKey = attribute.Key("azure.cosmosdb.request.body.size")
  1512. // AzureCosmosDBResponseSubStatusCodeKey is the attribute Key conforming to the
  1513. // "azure.cosmosdb.response.sub_status_code" semantic conventions. It represents
  1514. // the cosmos DB sub status code.
  1515. //
  1516. // Type: int
  1517. // RequirementLevel: Recommended
  1518. // Stability: Development
  1519. //
  1520. // Examples: 1000, 1002
  1521. AzureCosmosDBResponseSubStatusCodeKey = attribute.Key("azure.cosmosdb.response.sub_status_code")
  1522. )
  1523. // AzureClientID returns an attribute KeyValue conforming to the
  1524. // "azure.client.id" semantic conventions. It represents the unique identifier of
  1525. // the client instance.
  1526. func AzureClientID(val string) attribute.KeyValue {
  1527. return AzureClientIDKey.String(val)
  1528. }
  1529. // AzureCosmosDBOperationContactedRegions returns an attribute KeyValue
  1530. // conforming to the "azure.cosmosdb.operation.contacted_regions" semantic
  1531. // conventions. It represents the list of regions contacted during operation in
  1532. // the order that they were contacted. If there is more than one region listed,
  1533. // it indicates that the operation was performed on multiple regions i.e.
  1534. // cross-regional call.
  1535. func AzureCosmosDBOperationContactedRegions(val ...string) attribute.KeyValue {
  1536. return AzureCosmosDBOperationContactedRegionsKey.StringSlice(val)
  1537. }
  1538. // AzureCosmosDBOperationRequestCharge returns an attribute KeyValue conforming
  1539. // to the "azure.cosmosdb.operation.request_charge" semantic conventions. It
  1540. // represents the number of request units consumed by the operation.
  1541. func AzureCosmosDBOperationRequestCharge(val float64) attribute.KeyValue {
  1542. return AzureCosmosDBOperationRequestChargeKey.Float64(val)
  1543. }
  1544. // AzureCosmosDBRequestBodySize returns an attribute KeyValue conforming to the
  1545. // "azure.cosmosdb.request.body.size" semantic conventions. It represents the
  1546. // request payload size in bytes.
  1547. func AzureCosmosDBRequestBodySize(val int) attribute.KeyValue {
  1548. return AzureCosmosDBRequestBodySizeKey.Int(val)
  1549. }
  1550. // AzureCosmosDBResponseSubStatusCode returns an attribute KeyValue conforming to
  1551. // the "azure.cosmosdb.response.sub_status_code" semantic conventions. It
  1552. // represents the cosmos DB sub status code.
  1553. func AzureCosmosDBResponseSubStatusCode(val int) attribute.KeyValue {
  1554. return AzureCosmosDBResponseSubStatusCodeKey.Int(val)
  1555. }
  1556. // Enum values for azure.cosmosdb.connection.mode
  1557. var (
  1558. // Gateway (HTTP) connection.
  1559. // Stability: development
  1560. AzureCosmosDBConnectionModeGateway = AzureCosmosDBConnectionModeKey.String("gateway")
  1561. // Direct connection.
  1562. // Stability: development
  1563. AzureCosmosDBConnectionModeDirect = AzureCosmosDBConnectionModeKey.String("direct")
  1564. )
  1565. // Enum values for azure.cosmosdb.consistency.level
  1566. var (
  1567. // strong
  1568. // Stability: development
  1569. AzureCosmosDBConsistencyLevelStrong = AzureCosmosDBConsistencyLevelKey.String("Strong")
  1570. // bounded_staleness
  1571. // Stability: development
  1572. AzureCosmosDBConsistencyLevelBoundedStaleness = AzureCosmosDBConsistencyLevelKey.String("BoundedStaleness")
  1573. // session
  1574. // Stability: development
  1575. AzureCosmosDBConsistencyLevelSession = AzureCosmosDBConsistencyLevelKey.String("Session")
  1576. // eventual
  1577. // Stability: development
  1578. AzureCosmosDBConsistencyLevelEventual = AzureCosmosDBConsistencyLevelKey.String("Eventual")
  1579. // consistent_prefix
  1580. // Stability: development
  1581. AzureCosmosDBConsistencyLevelConsistentPrefix = AzureCosmosDBConsistencyLevelKey.String("ConsistentPrefix")
  1582. )
  1583. // Namespace: browser
  1584. const (
  1585. // BrowserBrandsKey is the attribute Key conforming to the "browser.brands"
  1586. // semantic conventions. It represents the array of brand name and version
  1587. // separated by a space.
  1588. //
  1589. // Type: string[]
  1590. // RequirementLevel: Recommended
  1591. // Stability: Development
  1592. //
  1593. // Examples: " Not A;Brand 99", "Chromium 99", "Chrome 99"
  1594. // Note: This value is intended to be taken from the [UA client hints API] (
  1595. // `navigator.userAgentData.brands`).
  1596. //
  1597. // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface
  1598. BrowserBrandsKey = attribute.Key("browser.brands")
  1599. // BrowserLanguageKey is the attribute Key conforming to the "browser.language"
  1600. // semantic conventions. It represents the preferred language of the user using
  1601. // the browser.
  1602. //
  1603. // Type: string
  1604. // RequirementLevel: Recommended
  1605. // Stability: Development
  1606. //
  1607. // Examples: "en", "en-US", "fr", "fr-FR"
  1608. // Note: This value is intended to be taken from the Navigator API
  1609. // `navigator.language`.
  1610. BrowserLanguageKey = attribute.Key("browser.language")
  1611. // BrowserMobileKey is the attribute Key conforming to the "browser.mobile"
  1612. // semantic conventions. It represents a boolean that is true if the browser is
  1613. // running on a mobile device.
  1614. //
  1615. // Type: boolean
  1616. // RequirementLevel: Recommended
  1617. // Stability: Development
  1618. //
  1619. // Examples:
  1620. // Note: This value is intended to be taken from the [UA client hints API] (
  1621. // `navigator.userAgentData.mobile`). If unavailable, this attribute SHOULD be
  1622. // left unset.
  1623. //
  1624. // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface
  1625. BrowserMobileKey = attribute.Key("browser.mobile")
  1626. // BrowserPlatformKey is the attribute Key conforming to the "browser.platform"
  1627. // semantic conventions. It represents the platform on which the browser is
  1628. // running.
  1629. //
  1630. // Type: string
  1631. // RequirementLevel: Recommended
  1632. // Stability: Development
  1633. //
  1634. // Examples: "Windows", "macOS", "Android"
  1635. // Note: This value is intended to be taken from the [UA client hints API] (
  1636. // `navigator.userAgentData.platform`). If unavailable, the legacy
  1637. // `navigator.platform` API SHOULD NOT be used instead and this attribute SHOULD
  1638. // be left unset in order for the values to be consistent.
  1639. // The list of possible values is defined in the
  1640. // [W3C User-Agent Client Hints specification]. Note that some (but not all) of
  1641. // these values can overlap with values in the
  1642. // [`os.type` and `os.name` attributes]. However, for consistency, the values in
  1643. // the `browser.platform` attribute should capture the exact value that the user
  1644. // agent provides.
  1645. //
  1646. // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface
  1647. // [W3C User-Agent Client Hints specification]: https://wicg.github.io/ua-client-hints/#sec-ch-ua-platform
  1648. // [`os.type` and `os.name` attributes]: ./os.md
  1649. BrowserPlatformKey = attribute.Key("browser.platform")
  1650. )
  1651. // BrowserBrands returns an attribute KeyValue conforming to the "browser.brands"
  1652. // semantic conventions. It represents the array of brand name and version
  1653. // separated by a space.
  1654. func BrowserBrands(val ...string) attribute.KeyValue {
  1655. return BrowserBrandsKey.StringSlice(val)
  1656. }
  1657. // BrowserLanguage returns an attribute KeyValue conforming to the
  1658. // "browser.language" semantic conventions. It represents the preferred language
  1659. // of the user using the browser.
  1660. func BrowserLanguage(val string) attribute.KeyValue {
  1661. return BrowserLanguageKey.String(val)
  1662. }
  1663. // BrowserMobile returns an attribute KeyValue conforming to the "browser.mobile"
  1664. // semantic conventions. It represents a boolean that is true if the browser is
  1665. // running on a mobile device.
  1666. func BrowserMobile(val bool) attribute.KeyValue {
  1667. return BrowserMobileKey.Bool(val)
  1668. }
  1669. // BrowserPlatform returns an attribute KeyValue conforming to the
  1670. // "browser.platform" semantic conventions. It represents the platform on which
  1671. // the browser is running.
  1672. func BrowserPlatform(val string) attribute.KeyValue {
  1673. return BrowserPlatformKey.String(val)
  1674. }
  1675. // Namespace: cassandra
  1676. const (
  1677. // CassandraConsistencyLevelKey is the attribute Key conforming to the
  1678. // "cassandra.consistency.level" semantic conventions. It represents the
  1679. // consistency level of the query. Based on consistency values from [CQL].
  1680. //
  1681. // Type: Enum
  1682. // RequirementLevel: Recommended
  1683. // Stability: Development
  1684. //
  1685. // Examples:
  1686. //
  1687. // [CQL]: https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html
  1688. CassandraConsistencyLevelKey = attribute.Key("cassandra.consistency.level")
  1689. // CassandraCoordinatorDCKey is the attribute Key conforming to the
  1690. // "cassandra.coordinator.dc" semantic conventions. It represents the data
  1691. // center of the coordinating node for a query.
  1692. //
  1693. // Type: string
  1694. // RequirementLevel: Recommended
  1695. // Stability: Development
  1696. //
  1697. // Examples: us-west-2
  1698. CassandraCoordinatorDCKey = attribute.Key("cassandra.coordinator.dc")
  1699. // CassandraCoordinatorIDKey is the attribute Key conforming to the
  1700. // "cassandra.coordinator.id" semantic conventions. It represents the ID of the
  1701. // coordinating node for a query.
  1702. //
  1703. // Type: string
  1704. // RequirementLevel: Recommended
  1705. // Stability: Development
  1706. //
  1707. // Examples: be13faa2-8574-4d71-926d-27f16cf8a7af
  1708. CassandraCoordinatorIDKey = attribute.Key("cassandra.coordinator.id")
  1709. // CassandraPageSizeKey is the attribute Key conforming to the
  1710. // "cassandra.page.size" semantic conventions. It represents the fetch size used
  1711. // for paging, i.e. how many rows will be returned at once.
  1712. //
  1713. // Type: int
  1714. // RequirementLevel: Recommended
  1715. // Stability: Development
  1716. //
  1717. // Examples: 5000
  1718. CassandraPageSizeKey = attribute.Key("cassandra.page.size")
  1719. // CassandraQueryIdempotentKey is the attribute Key conforming to the
  1720. // "cassandra.query.idempotent" semantic conventions. It represents the whether
  1721. // or not the query is idempotent.
  1722. //
  1723. // Type: boolean
  1724. // RequirementLevel: Recommended
  1725. // Stability: Development
  1726. //
  1727. // Examples:
  1728. CassandraQueryIdempotentKey = attribute.Key("cassandra.query.idempotent")
  1729. // CassandraSpeculativeExecutionCountKey is the attribute Key conforming to the
  1730. // "cassandra.speculative_execution.count" semantic conventions. It represents
  1731. // the number of times a query was speculatively executed. Not set or `0` if the
  1732. // query was not executed speculatively.
  1733. //
  1734. // Type: int
  1735. // RequirementLevel: Recommended
  1736. // Stability: Development
  1737. //
  1738. // Examples: 0, 2
  1739. CassandraSpeculativeExecutionCountKey = attribute.Key("cassandra.speculative_execution.count")
  1740. )
  1741. // CassandraCoordinatorDC returns an attribute KeyValue conforming to the
  1742. // "cassandra.coordinator.dc" semantic conventions. It represents the data center
  1743. // of the coordinating node for a query.
  1744. func CassandraCoordinatorDC(val string) attribute.KeyValue {
  1745. return CassandraCoordinatorDCKey.String(val)
  1746. }
  1747. // CassandraCoordinatorID returns an attribute KeyValue conforming to the
  1748. // "cassandra.coordinator.id" semantic conventions. It represents the ID of the
  1749. // coordinating node for a query.
  1750. func CassandraCoordinatorID(val string) attribute.KeyValue {
  1751. return CassandraCoordinatorIDKey.String(val)
  1752. }
  1753. // CassandraPageSize returns an attribute KeyValue conforming to the
  1754. // "cassandra.page.size" semantic conventions. It represents the fetch size used
  1755. // for paging, i.e. how many rows will be returned at once.
  1756. func CassandraPageSize(val int) attribute.KeyValue {
  1757. return CassandraPageSizeKey.Int(val)
  1758. }
  1759. // CassandraQueryIdempotent returns an attribute KeyValue conforming to the
  1760. // "cassandra.query.idempotent" semantic conventions. It represents the whether
  1761. // or not the query is idempotent.
  1762. func CassandraQueryIdempotent(val bool) attribute.KeyValue {
  1763. return CassandraQueryIdempotentKey.Bool(val)
  1764. }
  1765. // CassandraSpeculativeExecutionCount returns an attribute KeyValue conforming to
  1766. // the "cassandra.speculative_execution.count" semantic conventions. It
  1767. // represents the number of times a query was speculatively executed. Not set or
  1768. // `0` if the query was not executed speculatively.
  1769. func CassandraSpeculativeExecutionCount(val int) attribute.KeyValue {
  1770. return CassandraSpeculativeExecutionCountKey.Int(val)
  1771. }
  1772. // Enum values for cassandra.consistency.level
  1773. var (
  1774. // all
  1775. // Stability: development
  1776. CassandraConsistencyLevelAll = CassandraConsistencyLevelKey.String("all")
  1777. // each_quorum
  1778. // Stability: development
  1779. CassandraConsistencyLevelEachQuorum = CassandraConsistencyLevelKey.String("each_quorum")
  1780. // quorum
  1781. // Stability: development
  1782. CassandraConsistencyLevelQuorum = CassandraConsistencyLevelKey.String("quorum")
  1783. // local_quorum
  1784. // Stability: development
  1785. CassandraConsistencyLevelLocalQuorum = CassandraConsistencyLevelKey.String("local_quorum")
  1786. // one
  1787. // Stability: development
  1788. CassandraConsistencyLevelOne = CassandraConsistencyLevelKey.String("one")
  1789. // two
  1790. // Stability: development
  1791. CassandraConsistencyLevelTwo = CassandraConsistencyLevelKey.String("two")
  1792. // three
  1793. // Stability: development
  1794. CassandraConsistencyLevelThree = CassandraConsistencyLevelKey.String("three")
  1795. // local_one
  1796. // Stability: development
  1797. CassandraConsistencyLevelLocalOne = CassandraConsistencyLevelKey.String("local_one")
  1798. // any
  1799. // Stability: development
  1800. CassandraConsistencyLevelAny = CassandraConsistencyLevelKey.String("any")
  1801. // serial
  1802. // Stability: development
  1803. CassandraConsistencyLevelSerial = CassandraConsistencyLevelKey.String("serial")
  1804. // local_serial
  1805. // Stability: development
  1806. CassandraConsistencyLevelLocalSerial = CassandraConsistencyLevelKey.String("local_serial")
  1807. )
  1808. // Namespace: cicd
  1809. const (
  1810. // CICDPipelineActionNameKey is the attribute Key conforming to the
  1811. // "cicd.pipeline.action.name" semantic conventions. It represents the kind of
  1812. // action a pipeline run is performing.
  1813. //
  1814. // Type: Enum
  1815. // RequirementLevel: Recommended
  1816. // Stability: Development
  1817. //
  1818. // Examples: "BUILD", "RUN", "SYNC"
  1819. CICDPipelineActionNameKey = attribute.Key("cicd.pipeline.action.name")
  1820. // CICDPipelineNameKey is the attribute Key conforming to the
  1821. // "cicd.pipeline.name" semantic conventions. It represents the human readable
  1822. // name of the pipeline within a CI/CD system.
  1823. //
  1824. // Type: string
  1825. // RequirementLevel: Recommended
  1826. // Stability: Development
  1827. //
  1828. // Examples: "Build and Test", "Lint", "Deploy Go Project",
  1829. // "deploy_to_environment"
  1830. CICDPipelineNameKey = attribute.Key("cicd.pipeline.name")
  1831. // CICDPipelineResultKey is the attribute Key conforming to the
  1832. // "cicd.pipeline.result" semantic conventions. It represents the result of a
  1833. // pipeline run.
  1834. //
  1835. // Type: Enum
  1836. // RequirementLevel: Recommended
  1837. // Stability: Development
  1838. //
  1839. // Examples: "success", "failure", "timeout", "skipped"
  1840. CICDPipelineResultKey = attribute.Key("cicd.pipeline.result")
  1841. // CICDPipelineRunIDKey is the attribute Key conforming to the
  1842. // "cicd.pipeline.run.id" semantic conventions. It represents the unique
  1843. // identifier of a pipeline run within a CI/CD system.
  1844. //
  1845. // Type: string
  1846. // RequirementLevel: Recommended
  1847. // Stability: Development
  1848. //
  1849. // Examples: "120912"
  1850. CICDPipelineRunIDKey = attribute.Key("cicd.pipeline.run.id")
  1851. // CICDPipelineRunStateKey is the attribute Key conforming to the
  1852. // "cicd.pipeline.run.state" semantic conventions. It represents the pipeline
  1853. // run goes through these states during its lifecycle.
  1854. //
  1855. // Type: Enum
  1856. // RequirementLevel: Recommended
  1857. // Stability: Development
  1858. //
  1859. // Examples: "pending", "executing", "finalizing"
  1860. CICDPipelineRunStateKey = attribute.Key("cicd.pipeline.run.state")
  1861. // CICDPipelineRunURLFullKey is the attribute Key conforming to the
  1862. // "cicd.pipeline.run.url.full" semantic conventions. It represents the [URL] of
  1863. // the pipeline run, providing the complete address in order to locate and
  1864. // identify the pipeline run.
  1865. //
  1866. // Type: string
  1867. // RequirementLevel: Recommended
  1868. // Stability: Development
  1869. //
  1870. // Examples:
  1871. // "https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763?pr=1075"
  1872. //
  1873. // [URL]: https://wikipedia.org/wiki/URL
  1874. CICDPipelineRunURLFullKey = attribute.Key("cicd.pipeline.run.url.full")
  1875. // CICDPipelineTaskNameKey is the attribute Key conforming to the
  1876. // "cicd.pipeline.task.name" semantic conventions. It represents the human
  1877. // readable name of a task within a pipeline. Task here most closely aligns with
  1878. // a [computing process] in a pipeline. Other terms for tasks include commands,
  1879. // steps, and procedures.
  1880. //
  1881. // Type: string
  1882. // RequirementLevel: Recommended
  1883. // Stability: Development
  1884. //
  1885. // Examples: "Run GoLang Linter", "Go Build", "go-test", "deploy_binary"
  1886. //
  1887. // [computing process]: https://wikipedia.org/wiki/Pipeline_(computing)
  1888. CICDPipelineTaskNameKey = attribute.Key("cicd.pipeline.task.name")
  1889. // CICDPipelineTaskRunIDKey is the attribute Key conforming to the
  1890. // "cicd.pipeline.task.run.id" semantic conventions. It represents the unique
  1891. // identifier of a task run within a pipeline.
  1892. //
  1893. // Type: string
  1894. // RequirementLevel: Recommended
  1895. // Stability: Development
  1896. //
  1897. // Examples: "12097"
  1898. CICDPipelineTaskRunIDKey = attribute.Key("cicd.pipeline.task.run.id")
  1899. // CICDPipelineTaskRunResultKey is the attribute Key conforming to the
  1900. // "cicd.pipeline.task.run.result" semantic conventions. It represents the
  1901. // result of a task run.
  1902. //
  1903. // Type: Enum
  1904. // RequirementLevel: Recommended
  1905. // Stability: Development
  1906. //
  1907. // Examples: "success", "failure", "timeout", "skipped"
  1908. CICDPipelineTaskRunResultKey = attribute.Key("cicd.pipeline.task.run.result")
  1909. // CICDPipelineTaskRunURLFullKey is the attribute Key conforming to the
  1910. // "cicd.pipeline.task.run.url.full" semantic conventions. It represents the
  1911. // [URL] of the pipeline task run, providing the complete address in order to
  1912. // locate and identify the pipeline task run.
  1913. //
  1914. // Type: string
  1915. // RequirementLevel: Recommended
  1916. // Stability: Development
  1917. //
  1918. // Examples:
  1919. // "https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763/job/26920038674?pr=1075"
  1920. //
  1921. // [URL]: https://wikipedia.org/wiki/URL
  1922. CICDPipelineTaskRunURLFullKey = attribute.Key("cicd.pipeline.task.run.url.full")
  1923. // CICDPipelineTaskTypeKey is the attribute Key conforming to the
  1924. // "cicd.pipeline.task.type" semantic conventions. It represents the type of the
  1925. // task within a pipeline.
  1926. //
  1927. // Type: Enum
  1928. // RequirementLevel: Recommended
  1929. // Stability: Development
  1930. //
  1931. // Examples: "build", "test", "deploy"
  1932. CICDPipelineTaskTypeKey = attribute.Key("cicd.pipeline.task.type")
  1933. // CICDSystemComponentKey is the attribute Key conforming to the
  1934. // "cicd.system.component" semantic conventions. It represents the name of a
  1935. // component of the CICD system.
  1936. //
  1937. // Type: string
  1938. // RequirementLevel: Recommended
  1939. // Stability: Development
  1940. //
  1941. // Examples: "controller", "scheduler", "agent"
  1942. CICDSystemComponentKey = attribute.Key("cicd.system.component")
  1943. // CICDWorkerIDKey is the attribute Key conforming to the "cicd.worker.id"
  1944. // semantic conventions. It represents the unique identifier of a worker within
  1945. // a CICD system.
  1946. //
  1947. // Type: string
  1948. // RequirementLevel: Recommended
  1949. // Stability: Development
  1950. //
  1951. // Examples: "abc123", "10.0.1.2", "controller"
  1952. CICDWorkerIDKey = attribute.Key("cicd.worker.id")
  1953. // CICDWorkerNameKey is the attribute Key conforming to the "cicd.worker.name"
  1954. // semantic conventions. It represents the name of a worker within a CICD
  1955. // system.
  1956. //
  1957. // Type: string
  1958. // RequirementLevel: Recommended
  1959. // Stability: Development
  1960. //
  1961. // Examples: "agent-abc", "controller", "Ubuntu LTS"
  1962. CICDWorkerNameKey = attribute.Key("cicd.worker.name")
  1963. // CICDWorkerStateKey is the attribute Key conforming to the "cicd.worker.state"
  1964. // semantic conventions. It represents the state of a CICD worker / agent.
  1965. //
  1966. // Type: Enum
  1967. // RequirementLevel: Recommended
  1968. // Stability: Development
  1969. //
  1970. // Examples: "idle", "busy", "down"
  1971. CICDWorkerStateKey = attribute.Key("cicd.worker.state")
  1972. // CICDWorkerURLFullKey is the attribute Key conforming to the
  1973. // "cicd.worker.url.full" semantic conventions. It represents the [URL] of the
  1974. // worker, providing the complete address in order to locate and identify the
  1975. // worker.
  1976. //
  1977. // Type: string
  1978. // RequirementLevel: Recommended
  1979. // Stability: Development
  1980. //
  1981. // Examples: "https://cicd.example.org/worker/abc123"
  1982. //
  1983. // [URL]: https://wikipedia.org/wiki/URL
  1984. CICDWorkerURLFullKey = attribute.Key("cicd.worker.url.full")
  1985. )
  1986. // CICDPipelineName returns an attribute KeyValue conforming to the
  1987. // "cicd.pipeline.name" semantic conventions. It represents the human readable
  1988. // name of the pipeline within a CI/CD system.
  1989. func CICDPipelineName(val string) attribute.KeyValue {
  1990. return CICDPipelineNameKey.String(val)
  1991. }
  1992. // CICDPipelineRunID returns an attribute KeyValue conforming to the
  1993. // "cicd.pipeline.run.id" semantic conventions. It represents the unique
  1994. // identifier of a pipeline run within a CI/CD system.
  1995. func CICDPipelineRunID(val string) attribute.KeyValue {
  1996. return CICDPipelineRunIDKey.String(val)
  1997. }
  1998. // CICDPipelineRunURLFull returns an attribute KeyValue conforming to the
  1999. // "cicd.pipeline.run.url.full" semantic conventions. It represents the [URL] of
  2000. // the pipeline run, providing the complete address in order to locate and
  2001. // identify the pipeline run.
  2002. //
  2003. // [URL]: https://wikipedia.org/wiki/URL
  2004. func CICDPipelineRunURLFull(val string) attribute.KeyValue {
  2005. return CICDPipelineRunURLFullKey.String(val)
  2006. }
  2007. // CICDPipelineTaskName returns an attribute KeyValue conforming to the
  2008. // "cicd.pipeline.task.name" semantic conventions. It represents the human
  2009. // readable name of a task within a pipeline. Task here most closely aligns with
  2010. // a [computing process] in a pipeline. Other terms for tasks include commands,
  2011. // steps, and procedures.
  2012. //
  2013. // [computing process]: https://wikipedia.org/wiki/Pipeline_(computing)
  2014. func CICDPipelineTaskName(val string) attribute.KeyValue {
  2015. return CICDPipelineTaskNameKey.String(val)
  2016. }
  2017. // CICDPipelineTaskRunID returns an attribute KeyValue conforming to the
  2018. // "cicd.pipeline.task.run.id" semantic conventions. It represents the unique
  2019. // identifier of a task run within a pipeline.
  2020. func CICDPipelineTaskRunID(val string) attribute.KeyValue {
  2021. return CICDPipelineTaskRunIDKey.String(val)
  2022. }
  2023. // CICDPipelineTaskRunURLFull returns an attribute KeyValue conforming to the
  2024. // "cicd.pipeline.task.run.url.full" semantic conventions. It represents the
  2025. // [URL] of the pipeline task run, providing the complete address in order to
  2026. // locate and identify the pipeline task run.
  2027. //
  2028. // [URL]: https://wikipedia.org/wiki/URL
  2029. func CICDPipelineTaskRunURLFull(val string) attribute.KeyValue {
  2030. return CICDPipelineTaskRunURLFullKey.String(val)
  2031. }
  2032. // CICDSystemComponent returns an attribute KeyValue conforming to the
  2033. // "cicd.system.component" semantic conventions. It represents the name of a
  2034. // component of the CICD system.
  2035. func CICDSystemComponent(val string) attribute.KeyValue {
  2036. return CICDSystemComponentKey.String(val)
  2037. }
  2038. // CICDWorkerID returns an attribute KeyValue conforming to the "cicd.worker.id"
  2039. // semantic conventions. It represents the unique identifier of a worker within a
  2040. // CICD system.
  2041. func CICDWorkerID(val string) attribute.KeyValue {
  2042. return CICDWorkerIDKey.String(val)
  2043. }
  2044. // CICDWorkerName returns an attribute KeyValue conforming to the
  2045. // "cicd.worker.name" semantic conventions. It represents the name of a worker
  2046. // within a CICD system.
  2047. func CICDWorkerName(val string) attribute.KeyValue {
  2048. return CICDWorkerNameKey.String(val)
  2049. }
  2050. // CICDWorkerURLFull returns an attribute KeyValue conforming to the
  2051. // "cicd.worker.url.full" semantic conventions. It represents the [URL] of the
  2052. // worker, providing the complete address in order to locate and identify the
  2053. // worker.
  2054. //
  2055. // [URL]: https://wikipedia.org/wiki/URL
  2056. func CICDWorkerURLFull(val string) attribute.KeyValue {
  2057. return CICDWorkerURLFullKey.String(val)
  2058. }
  2059. // Enum values for cicd.pipeline.action.name
  2060. var (
  2061. // The pipeline run is executing a build.
  2062. // Stability: development
  2063. CICDPipelineActionNameBuild = CICDPipelineActionNameKey.String("BUILD")
  2064. // The pipeline run is executing.
  2065. // Stability: development
  2066. CICDPipelineActionNameRun = CICDPipelineActionNameKey.String("RUN")
  2067. // The pipeline run is executing a sync.
  2068. // Stability: development
  2069. CICDPipelineActionNameSync = CICDPipelineActionNameKey.String("SYNC")
  2070. )
  2071. // Enum values for cicd.pipeline.result
  2072. var (
  2073. // The pipeline run finished successfully.
  2074. // Stability: development
  2075. CICDPipelineResultSuccess = CICDPipelineResultKey.String("success")
  2076. // The pipeline run did not finish successfully, eg. due to a compile error or a
  2077. // failing test. Such failures are usually detected by non-zero exit codes of
  2078. // the tools executed in the pipeline run.
  2079. // Stability: development
  2080. CICDPipelineResultFailure = CICDPipelineResultKey.String("failure")
  2081. // The pipeline run failed due to an error in the CICD system, eg. due to the
  2082. // worker being killed.
  2083. // Stability: development
  2084. CICDPipelineResultError = CICDPipelineResultKey.String("error")
  2085. // A timeout caused the pipeline run to be interrupted.
  2086. // Stability: development
  2087. CICDPipelineResultTimeout = CICDPipelineResultKey.String("timeout")
  2088. // The pipeline run was cancelled, eg. by a user manually cancelling the
  2089. // pipeline run.
  2090. // Stability: development
  2091. CICDPipelineResultCancellation = CICDPipelineResultKey.String("cancellation")
  2092. // The pipeline run was skipped, eg. due to a precondition not being met.
  2093. // Stability: development
  2094. CICDPipelineResultSkip = CICDPipelineResultKey.String("skip")
  2095. )
  2096. // Enum values for cicd.pipeline.run.state
  2097. var (
  2098. // The run pending state spans from the event triggering the pipeline run until
  2099. // the execution of the run starts (eg. time spent in a queue, provisioning
  2100. // agents, creating run resources).
  2101. //
  2102. // Stability: development
  2103. CICDPipelineRunStatePending = CICDPipelineRunStateKey.String("pending")
  2104. // The executing state spans the execution of any run tasks (eg. build, test).
  2105. // Stability: development
  2106. CICDPipelineRunStateExecuting = CICDPipelineRunStateKey.String("executing")
  2107. // The finalizing state spans from when the run has finished executing (eg.
  2108. // cleanup of run resources).
  2109. // Stability: development
  2110. CICDPipelineRunStateFinalizing = CICDPipelineRunStateKey.String("finalizing")
  2111. )
  2112. // Enum values for cicd.pipeline.task.run.result
  2113. var (
  2114. // The task run finished successfully.
  2115. // Stability: development
  2116. CICDPipelineTaskRunResultSuccess = CICDPipelineTaskRunResultKey.String("success")
  2117. // The task run did not finish successfully, eg. due to a compile error or a
  2118. // failing test. Such failures are usually detected by non-zero exit codes of
  2119. // the tools executed in the task run.
  2120. // Stability: development
  2121. CICDPipelineTaskRunResultFailure = CICDPipelineTaskRunResultKey.String("failure")
  2122. // The task run failed due to an error in the CICD system, eg. due to the worker
  2123. // being killed.
  2124. // Stability: development
  2125. CICDPipelineTaskRunResultError = CICDPipelineTaskRunResultKey.String("error")
  2126. // A timeout caused the task run to be interrupted.
  2127. // Stability: development
  2128. CICDPipelineTaskRunResultTimeout = CICDPipelineTaskRunResultKey.String("timeout")
  2129. // The task run was cancelled, eg. by a user manually cancelling the task run.
  2130. // Stability: development
  2131. CICDPipelineTaskRunResultCancellation = CICDPipelineTaskRunResultKey.String("cancellation")
  2132. // The task run was skipped, eg. due to a precondition not being met.
  2133. // Stability: development
  2134. CICDPipelineTaskRunResultSkip = CICDPipelineTaskRunResultKey.String("skip")
  2135. )
  2136. // Enum values for cicd.pipeline.task.type
  2137. var (
  2138. // build
  2139. // Stability: development
  2140. CICDPipelineTaskTypeBuild = CICDPipelineTaskTypeKey.String("build")
  2141. // test
  2142. // Stability: development
  2143. CICDPipelineTaskTypeTest = CICDPipelineTaskTypeKey.String("test")
  2144. // deploy
  2145. // Stability: development
  2146. CICDPipelineTaskTypeDeploy = CICDPipelineTaskTypeKey.String("deploy")
  2147. )
  2148. // Enum values for cicd.worker.state
  2149. var (
  2150. // The worker is not performing work for the CICD system. It is available to the
  2151. // CICD system to perform work on (online / idle).
  2152. // Stability: development
  2153. CICDWorkerStateAvailable = CICDWorkerStateKey.String("available")
  2154. // The worker is performing work for the CICD system.
  2155. // Stability: development
  2156. CICDWorkerStateBusy = CICDWorkerStateKey.String("busy")
  2157. // The worker is not available to the CICD system (disconnected / down).
  2158. // Stability: development
  2159. CICDWorkerStateOffline = CICDWorkerStateKey.String("offline")
  2160. )
  2161. // Namespace: client
  2162. const (
  2163. // ClientAddressKey is the attribute Key conforming to the "client.address"
  2164. // semantic conventions. It represents the client address - domain name if
  2165. // available without reverse DNS lookup; otherwise, IP address or Unix domain
  2166. // socket name.
  2167. //
  2168. // Type: string
  2169. // RequirementLevel: Recommended
  2170. // Stability: Stable
  2171. //
  2172. // Examples: "client.example.com", "10.1.2.80", "/tmp/my.sock"
  2173. // Note: When observed from the server side, and when communicating through an
  2174. // intermediary, `client.address` SHOULD represent the client address behind any
  2175. // intermediaries, for example proxies, if it's available.
  2176. ClientAddressKey = attribute.Key("client.address")
  2177. // ClientPortKey is the attribute Key conforming to the "client.port" semantic
  2178. // conventions. It represents the client port number.
  2179. //
  2180. // Type: int
  2181. // RequirementLevel: Recommended
  2182. // Stability: Stable
  2183. //
  2184. // Examples: 65123
  2185. // Note: When observed from the server side, and when communicating through an
  2186. // intermediary, `client.port` SHOULD represent the client port behind any
  2187. // intermediaries, for example proxies, if it's available.
  2188. ClientPortKey = attribute.Key("client.port")
  2189. )
  2190. // ClientAddress returns an attribute KeyValue conforming to the "client.address"
  2191. // semantic conventions. It represents the client address - domain name if
  2192. // available without reverse DNS lookup; otherwise, IP address or Unix domain
  2193. // socket name.
  2194. func ClientAddress(val string) attribute.KeyValue {
  2195. return ClientAddressKey.String(val)
  2196. }
  2197. // ClientPort returns an attribute KeyValue conforming to the "client.port"
  2198. // semantic conventions. It represents the client port number.
  2199. func ClientPort(val int) attribute.KeyValue {
  2200. return ClientPortKey.Int(val)
  2201. }
  2202. // Namespace: cloud
  2203. const (
  2204. // CloudAccountIDKey is the attribute Key conforming to the "cloud.account.id"
  2205. // semantic conventions. It represents the cloud account ID the resource is
  2206. // assigned to.
  2207. //
  2208. // Type: string
  2209. // RequirementLevel: Recommended
  2210. // Stability: Development
  2211. //
  2212. // Examples: "111111111111", "opentelemetry"
  2213. CloudAccountIDKey = attribute.Key("cloud.account.id")
  2214. // CloudAvailabilityZoneKey is the attribute Key conforming to the
  2215. // "cloud.availability_zone" semantic conventions. It represents the cloud
  2216. // regions often have multiple, isolated locations known as zones to increase
  2217. // availability. Availability zone represents the zone where the resource is
  2218. // running.
  2219. //
  2220. // Type: string
  2221. // RequirementLevel: Recommended
  2222. // Stability: Development
  2223. //
  2224. // Examples: "us-east-1c"
  2225. // Note: Availability zones are called "zones" on Alibaba Cloud and Google
  2226. // Cloud.
  2227. CloudAvailabilityZoneKey = attribute.Key("cloud.availability_zone")
  2228. // CloudPlatformKey is the attribute Key conforming to the "cloud.platform"
  2229. // semantic conventions. It represents the cloud platform in use.
  2230. //
  2231. // Type: Enum
  2232. // RequirementLevel: Recommended
  2233. // Stability: Development
  2234. //
  2235. // Examples:
  2236. // Note: The prefix of the service SHOULD match the one specified in
  2237. // `cloud.provider`.
  2238. CloudPlatformKey = attribute.Key("cloud.platform")
  2239. // CloudProviderKey is the attribute Key conforming to the "cloud.provider"
  2240. // semantic conventions. It represents the name of the cloud provider.
  2241. //
  2242. // Type: Enum
  2243. // RequirementLevel: Recommended
  2244. // Stability: Development
  2245. //
  2246. // Examples:
  2247. CloudProviderKey = attribute.Key("cloud.provider")
  2248. // CloudRegionKey is the attribute Key conforming to the "cloud.region" semantic
  2249. // conventions. It represents the geographical region within a cloud provider.
  2250. // When associated with a resource, this attribute specifies the region where
  2251. // the resource operates. When calling services or APIs deployed on a cloud,
  2252. // this attribute identifies the region where the called destination is
  2253. // deployed.
  2254. //
  2255. // Type: string
  2256. // RequirementLevel: Recommended
  2257. // Stability: Development
  2258. //
  2259. // Examples: "us-central1", "us-east-1"
  2260. // Note: Refer to your provider's docs to see the available regions, for example
  2261. // [Alibaba Cloud regions], [AWS regions], [Azure regions],
  2262. // [Google Cloud regions], or [Tencent Cloud regions].
  2263. //
  2264. // [Alibaba Cloud regions]: https://www.alibabacloud.com/help/doc-detail/40654.htm
  2265. // [AWS regions]: https://aws.amazon.com/about-aws/global-infrastructure/regions_az/
  2266. // [Azure regions]: https://azure.microsoft.com/global-infrastructure/geographies/
  2267. // [Google Cloud regions]: https://cloud.google.com/about/locations
  2268. // [Tencent Cloud regions]: https://www.tencentcloud.com/document/product/213/6091
  2269. CloudRegionKey = attribute.Key("cloud.region")
  2270. // CloudResourceIDKey is the attribute Key conforming to the "cloud.resource_id"
  2271. // semantic conventions. It represents the cloud provider-specific native
  2272. // identifier of the monitored cloud resource (e.g. an [ARN] on AWS, a
  2273. // [fully qualified resource ID] on Azure, a [full resource name] on GCP).
  2274. //
  2275. // Type: string
  2276. // RequirementLevel: Recommended
  2277. // Stability: Development
  2278. //
  2279. // Examples: "arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function",
  2280. // "//run.googleapis.com/projects/PROJECT_ID/locations/LOCATION_ID/services/SERVICE_ID",
  2281. // "/subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>
  2282. // /providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>"
  2283. // Note: On some cloud providers, it may not be possible to determine the full
  2284. // ID at startup,
  2285. // so it may be necessary to set `cloud.resource_id` as a span attribute
  2286. // instead.
  2287. //
  2288. // The exact value to use for `cloud.resource_id` depends on the cloud provider.
  2289. // The following well-known definitions MUST be used if you set this attribute
  2290. // and they apply:
  2291. //
  2292. // - **AWS Lambda:** The function [ARN].
  2293. // Take care not to use the "invoked ARN" directly but replace any
  2294. // [alias suffix]
  2295. // with the resolved function version, as the same runtime instance may be
  2296. // invocable with
  2297. // multiple different aliases.
  2298. // - **GCP:** The [URI of the resource]
  2299. // - **Azure:** The [Fully Qualified Resource ID] of the invoked function,
  2300. // *not* the function app, having the form
  2301. //
  2302. // `/subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>`
  2303. // .
  2304. // This means that a span attribute MUST be used, as an Azure function app
  2305. // can host multiple functions that would usually share
  2306. // a TracerProvider.
  2307. //
  2308. //
  2309. // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
  2310. // [fully qualified resource ID]: https://learn.microsoft.com/rest/api/resources/resources/get-by-id
  2311. // [full resource name]: https://google.aip.dev/122#full-resource-names
  2312. // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
  2313. // [alias suffix]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html
  2314. // [URI of the resource]: https://cloud.google.com/iam/docs/full-resource-names
  2315. // [Fully Qualified Resource ID]: https://docs.microsoft.com/rest/api/resources/resources/get-by-id
  2316. CloudResourceIDKey = attribute.Key("cloud.resource_id")
  2317. )
  2318. // CloudAccountID returns an attribute KeyValue conforming to the
  2319. // "cloud.account.id" semantic conventions. It represents the cloud account ID
  2320. // the resource is assigned to.
  2321. func CloudAccountID(val string) attribute.KeyValue {
  2322. return CloudAccountIDKey.String(val)
  2323. }
  2324. // CloudAvailabilityZone returns an attribute KeyValue conforming to the
  2325. // "cloud.availability_zone" semantic conventions. It represents the cloud
  2326. // regions often have multiple, isolated locations known as zones to increase
  2327. // availability. Availability zone represents the zone where the resource is
  2328. // running.
  2329. func CloudAvailabilityZone(val string) attribute.KeyValue {
  2330. return CloudAvailabilityZoneKey.String(val)
  2331. }
  2332. // CloudRegion returns an attribute KeyValue conforming to the "cloud.region"
  2333. // semantic conventions. It represents the geographical region within a cloud
  2334. // provider. When associated with a resource, this attribute specifies the region
  2335. // where the resource operates. When calling services or APIs deployed on a
  2336. // cloud, this attribute identifies the region where the called destination is
  2337. // deployed.
  2338. func CloudRegion(val string) attribute.KeyValue {
  2339. return CloudRegionKey.String(val)
  2340. }
  2341. // CloudResourceID returns an attribute KeyValue conforming to the
  2342. // "cloud.resource_id" semantic conventions. It represents the cloud
  2343. // provider-specific native identifier of the monitored cloud resource (e.g. an
  2344. // [ARN] on AWS, a [fully qualified resource ID] on Azure, a [full resource name]
  2345. // on GCP).
  2346. //
  2347. // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
  2348. // [fully qualified resource ID]: https://learn.microsoft.com/rest/api/resources/resources/get-by-id
  2349. // [full resource name]: https://google.aip.dev/122#full-resource-names
  2350. func CloudResourceID(val string) attribute.KeyValue {
  2351. return CloudResourceIDKey.String(val)
  2352. }
  2353. // Enum values for cloud.platform
  2354. var (
  2355. // Alibaba Cloud Elastic Compute Service
  2356. // Stability: development
  2357. CloudPlatformAlibabaCloudECS = CloudPlatformKey.String("alibaba_cloud_ecs")
  2358. // Alibaba Cloud Function Compute
  2359. // Stability: development
  2360. CloudPlatformAlibabaCloudFC = CloudPlatformKey.String("alibaba_cloud_fc")
  2361. // Red Hat OpenShift on Alibaba Cloud
  2362. // Stability: development
  2363. CloudPlatformAlibabaCloudOpenShift = CloudPlatformKey.String("alibaba_cloud_openshift")
  2364. // AWS Elastic Compute Cloud
  2365. // Stability: development
  2366. CloudPlatformAWSEC2 = CloudPlatformKey.String("aws_ec2")
  2367. // AWS Elastic Container Service
  2368. // Stability: development
  2369. CloudPlatformAWSECS = CloudPlatformKey.String("aws_ecs")
  2370. // AWS Elastic Kubernetes Service
  2371. // Stability: development
  2372. CloudPlatformAWSEKS = CloudPlatformKey.String("aws_eks")
  2373. // AWS Lambda
  2374. // Stability: development
  2375. CloudPlatformAWSLambda = CloudPlatformKey.String("aws_lambda")
  2376. // AWS Elastic Beanstalk
  2377. // Stability: development
  2378. CloudPlatformAWSElasticBeanstalk = CloudPlatformKey.String("aws_elastic_beanstalk")
  2379. // AWS App Runner
  2380. // Stability: development
  2381. CloudPlatformAWSAppRunner = CloudPlatformKey.String("aws_app_runner")
  2382. // Red Hat OpenShift on AWS (ROSA)
  2383. // Stability: development
  2384. CloudPlatformAWSOpenShift = CloudPlatformKey.String("aws_openshift")
  2385. // Azure Virtual Machines
  2386. // Stability: development
  2387. CloudPlatformAzureVM = CloudPlatformKey.String("azure_vm")
  2388. // Azure Container Apps
  2389. // Stability: development
  2390. CloudPlatformAzureContainerApps = CloudPlatformKey.String("azure_container_apps")
  2391. // Azure Container Instances
  2392. // Stability: development
  2393. CloudPlatformAzureContainerInstances = CloudPlatformKey.String("azure_container_instances")
  2394. // Azure Kubernetes Service
  2395. // Stability: development
  2396. CloudPlatformAzureAKS = CloudPlatformKey.String("azure_aks")
  2397. // Azure Functions
  2398. // Stability: development
  2399. CloudPlatformAzureFunctions = CloudPlatformKey.String("azure_functions")
  2400. // Azure App Service
  2401. // Stability: development
  2402. CloudPlatformAzureAppService = CloudPlatformKey.String("azure_app_service")
  2403. // Azure Red Hat OpenShift
  2404. // Stability: development
  2405. CloudPlatformAzureOpenShift = CloudPlatformKey.String("azure_openshift")
  2406. // Google Bare Metal Solution (BMS)
  2407. // Stability: development
  2408. CloudPlatformGCPBareMetalSolution = CloudPlatformKey.String("gcp_bare_metal_solution")
  2409. // Google Cloud Compute Engine (GCE)
  2410. // Stability: development
  2411. CloudPlatformGCPComputeEngine = CloudPlatformKey.String("gcp_compute_engine")
  2412. // Google Cloud Run
  2413. // Stability: development
  2414. CloudPlatformGCPCloudRun = CloudPlatformKey.String("gcp_cloud_run")
  2415. // Google Cloud Kubernetes Engine (GKE)
  2416. // Stability: development
  2417. CloudPlatformGCPKubernetesEngine = CloudPlatformKey.String("gcp_kubernetes_engine")
  2418. // Google Cloud Functions (GCF)
  2419. // Stability: development
  2420. CloudPlatformGCPCloudFunctions = CloudPlatformKey.String("gcp_cloud_functions")
  2421. // Google Cloud App Engine (GAE)
  2422. // Stability: development
  2423. CloudPlatformGCPAppEngine = CloudPlatformKey.String("gcp_app_engine")
  2424. // Red Hat OpenShift on Google Cloud
  2425. // Stability: development
  2426. CloudPlatformGCPOpenShift = CloudPlatformKey.String("gcp_openshift")
  2427. // Red Hat OpenShift on IBM Cloud
  2428. // Stability: development
  2429. CloudPlatformIBMCloudOpenShift = CloudPlatformKey.String("ibm_cloud_openshift")
  2430. // Compute on Oracle Cloud Infrastructure (OCI)
  2431. // Stability: development
  2432. CloudPlatformOracleCloudCompute = CloudPlatformKey.String("oracle_cloud_compute")
  2433. // Kubernetes Engine (OKE) on Oracle Cloud Infrastructure (OCI)
  2434. // Stability: development
  2435. CloudPlatformOracleCloudOKE = CloudPlatformKey.String("oracle_cloud_oke")
  2436. // Tencent Cloud Cloud Virtual Machine (CVM)
  2437. // Stability: development
  2438. CloudPlatformTencentCloudCVM = CloudPlatformKey.String("tencent_cloud_cvm")
  2439. // Tencent Cloud Elastic Kubernetes Service (EKS)
  2440. // Stability: development
  2441. CloudPlatformTencentCloudEKS = CloudPlatformKey.String("tencent_cloud_eks")
  2442. // Tencent Cloud Serverless Cloud Function (SCF)
  2443. // Stability: development
  2444. CloudPlatformTencentCloudSCF = CloudPlatformKey.String("tencent_cloud_scf")
  2445. )
  2446. // Enum values for cloud.provider
  2447. var (
  2448. // Alibaba Cloud
  2449. // Stability: development
  2450. CloudProviderAlibabaCloud = CloudProviderKey.String("alibaba_cloud")
  2451. // Amazon Web Services
  2452. // Stability: development
  2453. CloudProviderAWS = CloudProviderKey.String("aws")
  2454. // Microsoft Azure
  2455. // Stability: development
  2456. CloudProviderAzure = CloudProviderKey.String("azure")
  2457. // Google Cloud Platform
  2458. // Stability: development
  2459. CloudProviderGCP = CloudProviderKey.String("gcp")
  2460. // Heroku Platform as a Service
  2461. // Stability: development
  2462. CloudProviderHeroku = CloudProviderKey.String("heroku")
  2463. // IBM Cloud
  2464. // Stability: development
  2465. CloudProviderIBMCloud = CloudProviderKey.String("ibm_cloud")
  2466. // Oracle Cloud Infrastructure (OCI)
  2467. // Stability: development
  2468. CloudProviderOracleCloud = CloudProviderKey.String("oracle_cloud")
  2469. // Tencent Cloud
  2470. // Stability: development
  2471. CloudProviderTencentCloud = CloudProviderKey.String("tencent_cloud")
  2472. )
  2473. // Namespace: cloudevents
  2474. const (
  2475. // CloudEventsEventIDKey is the attribute Key conforming to the
  2476. // "cloudevents.event_id" semantic conventions. It represents the [event_id]
  2477. // uniquely identifies the event.
  2478. //
  2479. // Type: string
  2480. // RequirementLevel: Recommended
  2481. // Stability: Development
  2482. //
  2483. // Examples: "123e4567-e89b-12d3-a456-426614174000", "0001"
  2484. //
  2485. // [event_id]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id
  2486. CloudEventsEventIDKey = attribute.Key("cloudevents.event_id")
  2487. // CloudEventsEventSourceKey is the attribute Key conforming to the
  2488. // "cloudevents.event_source" semantic conventions. It represents the [source]
  2489. // identifies the context in which an event happened.
  2490. //
  2491. // Type: string
  2492. // RequirementLevel: Recommended
  2493. // Stability: Development
  2494. //
  2495. // Examples: "https://github.com/cloudevents", "/cloudevents/spec/pull/123",
  2496. // "my-service"
  2497. //
  2498. // [source]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1
  2499. CloudEventsEventSourceKey = attribute.Key("cloudevents.event_source")
  2500. // CloudEventsEventSpecVersionKey is the attribute Key conforming to the
  2501. // "cloudevents.event_spec_version" semantic conventions. It represents the
  2502. // [version of the CloudEvents specification] which the event uses.
  2503. //
  2504. // Type: string
  2505. // RequirementLevel: Recommended
  2506. // Stability: Development
  2507. //
  2508. // Examples: 1.0
  2509. //
  2510. // [version of the CloudEvents specification]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion
  2511. CloudEventsEventSpecVersionKey = attribute.Key("cloudevents.event_spec_version")
  2512. // CloudEventsEventSubjectKey is the attribute Key conforming to the
  2513. // "cloudevents.event_subject" semantic conventions. It represents the [subject]
  2514. // of the event in the context of the event producer (identified by source).
  2515. //
  2516. // Type: string
  2517. // RequirementLevel: Recommended
  2518. // Stability: Development
  2519. //
  2520. // Examples: mynewfile.jpg
  2521. //
  2522. // [subject]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#subject
  2523. CloudEventsEventSubjectKey = attribute.Key("cloudevents.event_subject")
  2524. // CloudEventsEventTypeKey is the attribute Key conforming to the
  2525. // "cloudevents.event_type" semantic conventions. It represents the [event_type]
  2526. // contains a value describing the type of event related to the originating
  2527. // occurrence.
  2528. //
  2529. // Type: string
  2530. // RequirementLevel: Recommended
  2531. // Stability: Development
  2532. //
  2533. // Examples: "com.github.pull_request.opened", "com.example.object.deleted.v2"
  2534. //
  2535. // [event_type]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type
  2536. CloudEventsEventTypeKey = attribute.Key("cloudevents.event_type")
  2537. )
  2538. // CloudEventsEventID returns an attribute KeyValue conforming to the
  2539. // "cloudevents.event_id" semantic conventions. It represents the [event_id]
  2540. // uniquely identifies the event.
  2541. //
  2542. // [event_id]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id
  2543. func CloudEventsEventID(val string) attribute.KeyValue {
  2544. return CloudEventsEventIDKey.String(val)
  2545. }
  2546. // CloudEventsEventSource returns an attribute KeyValue conforming to the
  2547. // "cloudevents.event_source" semantic conventions. It represents the [source]
  2548. // identifies the context in which an event happened.
  2549. //
  2550. // [source]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1
  2551. func CloudEventsEventSource(val string) attribute.KeyValue {
  2552. return CloudEventsEventSourceKey.String(val)
  2553. }
  2554. // CloudEventsEventSpecVersion returns an attribute KeyValue conforming to the
  2555. // "cloudevents.event_spec_version" semantic conventions. It represents the
  2556. // [version of the CloudEvents specification] which the event uses.
  2557. //
  2558. // [version of the CloudEvents specification]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion
  2559. func CloudEventsEventSpecVersion(val string) attribute.KeyValue {
  2560. return CloudEventsEventSpecVersionKey.String(val)
  2561. }
  2562. // CloudEventsEventSubject returns an attribute KeyValue conforming to the
  2563. // "cloudevents.event_subject" semantic conventions. It represents the [subject]
  2564. // of the event in the context of the event producer (identified by source).
  2565. //
  2566. // [subject]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#subject
  2567. func CloudEventsEventSubject(val string) attribute.KeyValue {
  2568. return CloudEventsEventSubjectKey.String(val)
  2569. }
  2570. // CloudEventsEventType returns an attribute KeyValue conforming to the
  2571. // "cloudevents.event_type" semantic conventions. It represents the [event_type]
  2572. // contains a value describing the type of event related to the originating
  2573. // occurrence.
  2574. //
  2575. // [event_type]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type
  2576. func CloudEventsEventType(val string) attribute.KeyValue {
  2577. return CloudEventsEventTypeKey.String(val)
  2578. }
  2579. // Namespace: cloudfoundry
  2580. const (
  2581. // CloudFoundryAppIDKey is the attribute Key conforming to the
  2582. // "cloudfoundry.app.id" semantic conventions. It represents the guid of the
  2583. // application.
  2584. //
  2585. // Type: string
  2586. // RequirementLevel: Recommended
  2587. // Stability: Development
  2588. //
  2589. // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
  2590. // Note: Application instrumentation should use the value from environment
  2591. // variable `VCAP_APPLICATION.application_id`. This is the same value as
  2592. // reported by `cf app <app-name> --guid`.
  2593. CloudFoundryAppIDKey = attribute.Key("cloudfoundry.app.id")
  2594. // CloudFoundryAppInstanceIDKey is the attribute Key conforming to the
  2595. // "cloudfoundry.app.instance.id" semantic conventions. It represents the index
  2596. // of the application instance. 0 when just one instance is active.
  2597. //
  2598. // Type: string
  2599. // RequirementLevel: Recommended
  2600. // Stability: Development
  2601. //
  2602. // Examples: "0", "1"
  2603. // Note: CloudFoundry defines the `instance_id` in the [Loggregator v2 envelope]
  2604. // .
  2605. // It is used for logs and metrics emitted by CloudFoundry. It is
  2606. // supposed to contain the application instance index for applications
  2607. // deployed on the runtime.
  2608. //
  2609. // Application instrumentation should use the value from environment
  2610. // variable `CF_INSTANCE_INDEX`.
  2611. //
  2612. // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
  2613. CloudFoundryAppInstanceIDKey = attribute.Key("cloudfoundry.app.instance.id")
  2614. // CloudFoundryAppNameKey is the attribute Key conforming to the
  2615. // "cloudfoundry.app.name" semantic conventions. It represents the name of the
  2616. // application.
  2617. //
  2618. // Type: string
  2619. // RequirementLevel: Recommended
  2620. // Stability: Development
  2621. //
  2622. // Examples: "my-app-name"
  2623. // Note: Application instrumentation should use the value from environment
  2624. // variable `VCAP_APPLICATION.application_name`. This is the same value
  2625. // as reported by `cf apps`.
  2626. CloudFoundryAppNameKey = attribute.Key("cloudfoundry.app.name")
  2627. // CloudFoundryOrgIDKey is the attribute Key conforming to the
  2628. // "cloudfoundry.org.id" semantic conventions. It represents the guid of the
  2629. // CloudFoundry org the application is running in.
  2630. //
  2631. // Type: string
  2632. // RequirementLevel: Recommended
  2633. // Stability: Development
  2634. //
  2635. // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
  2636. // Note: Application instrumentation should use the value from environment
  2637. // variable `VCAP_APPLICATION.org_id`. This is the same value as
  2638. // reported by `cf org <org-name> --guid`.
  2639. CloudFoundryOrgIDKey = attribute.Key("cloudfoundry.org.id")
  2640. // CloudFoundryOrgNameKey is the attribute Key conforming to the
  2641. // "cloudfoundry.org.name" semantic conventions. It represents the name of the
  2642. // CloudFoundry organization the app is running in.
  2643. //
  2644. // Type: string
  2645. // RequirementLevel: Recommended
  2646. // Stability: Development
  2647. //
  2648. // Examples: "my-org-name"
  2649. // Note: Application instrumentation should use the value from environment
  2650. // variable `VCAP_APPLICATION.org_name`. This is the same value as
  2651. // reported by `cf orgs`.
  2652. CloudFoundryOrgNameKey = attribute.Key("cloudfoundry.org.name")
  2653. // CloudFoundryProcessIDKey is the attribute Key conforming to the
  2654. // "cloudfoundry.process.id" semantic conventions. It represents the UID
  2655. // identifying the process.
  2656. //
  2657. // Type: string
  2658. // RequirementLevel: Recommended
  2659. // Stability: Development
  2660. //
  2661. // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
  2662. // Note: Application instrumentation should use the value from environment
  2663. // variable `VCAP_APPLICATION.process_id`. It is supposed to be equal to
  2664. // `VCAP_APPLICATION.app_id` for applications deployed to the runtime.
  2665. // For system components, this could be the actual PID.
  2666. CloudFoundryProcessIDKey = attribute.Key("cloudfoundry.process.id")
  2667. // CloudFoundryProcessTypeKey is the attribute Key conforming to the
  2668. // "cloudfoundry.process.type" semantic conventions. It represents the type of
  2669. // process.
  2670. //
  2671. // Type: string
  2672. // RequirementLevel: Recommended
  2673. // Stability: Development
  2674. //
  2675. // Examples: "web"
  2676. // Note: CloudFoundry applications can consist of multiple jobs. Usually the
  2677. // main process will be of type `web`. There can be additional background
  2678. // tasks or side-cars with different process types.
  2679. CloudFoundryProcessTypeKey = attribute.Key("cloudfoundry.process.type")
  2680. // CloudFoundrySpaceIDKey is the attribute Key conforming to the
  2681. // "cloudfoundry.space.id" semantic conventions. It represents the guid of the
  2682. // CloudFoundry space the application is running in.
  2683. //
  2684. // Type: string
  2685. // RequirementLevel: Recommended
  2686. // Stability: Development
  2687. //
  2688. // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
  2689. // Note: Application instrumentation should use the value from environment
  2690. // variable `VCAP_APPLICATION.space_id`. This is the same value as
  2691. // reported by `cf space <space-name> --guid`.
  2692. CloudFoundrySpaceIDKey = attribute.Key("cloudfoundry.space.id")
  2693. // CloudFoundrySpaceNameKey is the attribute Key conforming to the
  2694. // "cloudfoundry.space.name" semantic conventions. It represents the name of the
  2695. // CloudFoundry space the application is running in.
  2696. //
  2697. // Type: string
  2698. // RequirementLevel: Recommended
  2699. // Stability: Development
  2700. //
  2701. // Examples: "my-space-name"
  2702. // Note: Application instrumentation should use the value from environment
  2703. // variable `VCAP_APPLICATION.space_name`. This is the same value as
  2704. // reported by `cf spaces`.
  2705. CloudFoundrySpaceNameKey = attribute.Key("cloudfoundry.space.name")
  2706. // CloudFoundrySystemIDKey is the attribute Key conforming to the
  2707. // "cloudfoundry.system.id" semantic conventions. It represents a guid or
  2708. // another name describing the event source.
  2709. //
  2710. // Type: string
  2711. // RequirementLevel: Recommended
  2712. // Stability: Development
  2713. //
  2714. // Examples: "cf/gorouter"
  2715. // Note: CloudFoundry defines the `source_id` in the [Loggregator v2 envelope].
  2716. // It is used for logs and metrics emitted by CloudFoundry. It is
  2717. // supposed to contain the component name, e.g. "gorouter", for
  2718. // CloudFoundry components.
  2719. //
  2720. // When system components are instrumented, values from the
  2721. // [Bosh spec]
  2722. // should be used. The `system.id` should be set to
  2723. // `spec.deployment/spec.name`.
  2724. //
  2725. // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
  2726. // [Bosh spec]: https://bosh.io/docs/jobs/#properties-spec
  2727. CloudFoundrySystemIDKey = attribute.Key("cloudfoundry.system.id")
  2728. // CloudFoundrySystemInstanceIDKey is the attribute Key conforming to the
  2729. // "cloudfoundry.system.instance.id" semantic conventions. It represents a guid
  2730. // describing the concrete instance of the event source.
  2731. //
  2732. // Type: string
  2733. // RequirementLevel: Recommended
  2734. // Stability: Development
  2735. //
  2736. // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
  2737. // Note: CloudFoundry defines the `instance_id` in the [Loggregator v2 envelope]
  2738. // .
  2739. // It is used for logs and metrics emitted by CloudFoundry. It is
  2740. // supposed to contain the vm id for CloudFoundry components.
  2741. //
  2742. // When system components are instrumented, values from the
  2743. // [Bosh spec]
  2744. // should be used. The `system.instance.id` should be set to `spec.id`.
  2745. //
  2746. // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
  2747. // [Bosh spec]: https://bosh.io/docs/jobs/#properties-spec
  2748. CloudFoundrySystemInstanceIDKey = attribute.Key("cloudfoundry.system.instance.id")
  2749. )
  2750. // CloudFoundryAppID returns an attribute KeyValue conforming to the
  2751. // "cloudfoundry.app.id" semantic conventions. It represents the guid of the
  2752. // application.
  2753. func CloudFoundryAppID(val string) attribute.KeyValue {
  2754. return CloudFoundryAppIDKey.String(val)
  2755. }
  2756. // CloudFoundryAppInstanceID returns an attribute KeyValue conforming to the
  2757. // "cloudfoundry.app.instance.id" semantic conventions. It represents the index
  2758. // of the application instance. 0 when just one instance is active.
  2759. func CloudFoundryAppInstanceID(val string) attribute.KeyValue {
  2760. return CloudFoundryAppInstanceIDKey.String(val)
  2761. }
  2762. // CloudFoundryAppName returns an attribute KeyValue conforming to the
  2763. // "cloudfoundry.app.name" semantic conventions. It represents the name of the
  2764. // application.
  2765. func CloudFoundryAppName(val string) attribute.KeyValue {
  2766. return CloudFoundryAppNameKey.String(val)
  2767. }
  2768. // CloudFoundryOrgID returns an attribute KeyValue conforming to the
  2769. // "cloudfoundry.org.id" semantic conventions. It represents the guid of the
  2770. // CloudFoundry org the application is running in.
  2771. func CloudFoundryOrgID(val string) attribute.KeyValue {
  2772. return CloudFoundryOrgIDKey.String(val)
  2773. }
  2774. // CloudFoundryOrgName returns an attribute KeyValue conforming to the
  2775. // "cloudfoundry.org.name" semantic conventions. It represents the name of the
  2776. // CloudFoundry organization the app is running in.
  2777. func CloudFoundryOrgName(val string) attribute.KeyValue {
  2778. return CloudFoundryOrgNameKey.String(val)
  2779. }
  2780. // CloudFoundryProcessID returns an attribute KeyValue conforming to the
  2781. // "cloudfoundry.process.id" semantic conventions. It represents the UID
  2782. // identifying the process.
  2783. func CloudFoundryProcessID(val string) attribute.KeyValue {
  2784. return CloudFoundryProcessIDKey.String(val)
  2785. }
  2786. // CloudFoundryProcessType returns an attribute KeyValue conforming to the
  2787. // "cloudfoundry.process.type" semantic conventions. It represents the type of
  2788. // process.
  2789. func CloudFoundryProcessType(val string) attribute.KeyValue {
  2790. return CloudFoundryProcessTypeKey.String(val)
  2791. }
  2792. // CloudFoundrySpaceID returns an attribute KeyValue conforming to the
  2793. // "cloudfoundry.space.id" semantic conventions. It represents the guid of the
  2794. // CloudFoundry space the application is running in.
  2795. func CloudFoundrySpaceID(val string) attribute.KeyValue {
  2796. return CloudFoundrySpaceIDKey.String(val)
  2797. }
  2798. // CloudFoundrySpaceName returns an attribute KeyValue conforming to the
  2799. // "cloudfoundry.space.name" semantic conventions. It represents the name of the
  2800. // CloudFoundry space the application is running in.
  2801. func CloudFoundrySpaceName(val string) attribute.KeyValue {
  2802. return CloudFoundrySpaceNameKey.String(val)
  2803. }
  2804. // CloudFoundrySystemID returns an attribute KeyValue conforming to the
  2805. // "cloudfoundry.system.id" semantic conventions. It represents a guid or another
  2806. // name describing the event source.
  2807. func CloudFoundrySystemID(val string) attribute.KeyValue {
  2808. return CloudFoundrySystemIDKey.String(val)
  2809. }
  2810. // CloudFoundrySystemInstanceID returns an attribute KeyValue conforming to the
  2811. // "cloudfoundry.system.instance.id" semantic conventions. It represents a guid
  2812. // describing the concrete instance of the event source.
  2813. func CloudFoundrySystemInstanceID(val string) attribute.KeyValue {
  2814. return CloudFoundrySystemInstanceIDKey.String(val)
  2815. }
  2816. // Namespace: code
  2817. const (
  2818. // CodeColumnNumberKey is the attribute Key conforming to the
  2819. // "code.column.number" semantic conventions. It represents the column number in
  2820. // `code.file.path` best representing the operation. It SHOULD point within the
  2821. // code unit named in `code.function.name`. This attribute MUST NOT be used on
  2822. // the Profile signal since the data is already captured in 'message Line'. This
  2823. // constraint is imposed to prevent redundancy and maintain data integrity.
  2824. //
  2825. // Type: int
  2826. // RequirementLevel: Recommended
  2827. // Stability: Stable
  2828. CodeColumnNumberKey = attribute.Key("code.column.number")
  2829. // CodeFilePathKey is the attribute Key conforming to the "code.file.path"
  2830. // semantic conventions. It represents the source code file name that identifies
  2831. // the code unit as uniquely as possible (preferably an absolute file path).
  2832. // This attribute MUST NOT be used on the Profile signal since the data is
  2833. // already captured in 'message Function'. This constraint is imposed to prevent
  2834. // redundancy and maintain data integrity.
  2835. //
  2836. // Type: string
  2837. // RequirementLevel: Recommended
  2838. // Stability: Stable
  2839. //
  2840. // Examples: /usr/local/MyApplication/content_root/app/index.php
  2841. CodeFilePathKey = attribute.Key("code.file.path")
  2842. // CodeFunctionNameKey is the attribute Key conforming to the
  2843. // "code.function.name" semantic conventions. It represents the method or
  2844. // function fully-qualified name without arguments. The value should fit the
  2845. // natural representation of the language runtime, which is also likely the same
  2846. // used within `code.stacktrace` attribute value. This attribute MUST NOT be
  2847. // used on the Profile signal since the data is already captured in 'message
  2848. // Function'. This constraint is imposed to prevent redundancy and maintain data
  2849. // integrity.
  2850. //
  2851. // Type: string
  2852. // RequirementLevel: Recommended
  2853. // Stability: Stable
  2854. //
  2855. // Examples: "com.example.MyHttpService.serveRequest",
  2856. // "GuzzleHttp\Client::transfer", "fopen"
  2857. // Note: Values and format depends on each language runtime, thus it is
  2858. // impossible to provide an exhaustive list of examples.
  2859. // The values are usually the same (or prefixes of) the ones found in native
  2860. // stack trace representation stored in
  2861. // `code.stacktrace` without information on arguments.
  2862. //
  2863. // Examples:
  2864. //
  2865. // - Java method: `com.example.MyHttpService.serveRequest`
  2866. // - Java anonymous class method: `com.mycompany.Main$1.myMethod`
  2867. // - Java lambda method:
  2868. // `com.mycompany.Main$$Lambda/0x0000748ae4149c00.myMethod`
  2869. // - PHP function: `GuzzleHttp\Client::transfer`
  2870. // - Go function: `github.com/my/repo/pkg.foo.func5`
  2871. // - Elixir: `OpenTelemetry.Ctx.new`
  2872. // - Erlang: `opentelemetry_ctx:new`
  2873. // - Rust: `playground::my_module::my_cool_func`
  2874. // - C function: `fopen`
  2875. CodeFunctionNameKey = attribute.Key("code.function.name")
  2876. // CodeLineNumberKey is the attribute Key conforming to the "code.line.number"
  2877. // semantic conventions. It represents the line number in `code.file.path` best
  2878. // representing the operation. It SHOULD point within the code unit named in
  2879. // `code.function.name`. This attribute MUST NOT be used on the Profile signal
  2880. // since the data is already captured in 'message Line'. This constraint is
  2881. // imposed to prevent redundancy and maintain data integrity.
  2882. //
  2883. // Type: int
  2884. // RequirementLevel: Recommended
  2885. // Stability: Stable
  2886. CodeLineNumberKey = attribute.Key("code.line.number")
  2887. // CodeStacktraceKey is the attribute Key conforming to the "code.stacktrace"
  2888. // semantic conventions. It represents a stacktrace as a string in the natural
  2889. // representation for the language runtime. The representation is identical to
  2890. // [`exception.stacktrace`]. This attribute MUST NOT be used on the Profile
  2891. // signal since the data is already captured in 'message Location'. This
  2892. // constraint is imposed to prevent redundancy and maintain data integrity.
  2893. //
  2894. // Type: string
  2895. // RequirementLevel: Recommended
  2896. // Stability: Stable
  2897. //
  2898. // Examples: at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at
  2899. // com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at
  2900. // com.example.GenerateTrace.main(GenerateTrace.java:5)
  2901. //
  2902. // [`exception.stacktrace`]: /docs/exceptions/exceptions-spans.md#stacktrace-representation
  2903. CodeStacktraceKey = attribute.Key("code.stacktrace")
  2904. )
  2905. // CodeColumnNumber returns an attribute KeyValue conforming to the
  2906. // "code.column.number" semantic conventions. It represents the column number in
  2907. // `code.file.path` best representing the operation. It SHOULD point within the
  2908. // code unit named in `code.function.name`. This attribute MUST NOT be used on
  2909. // the Profile signal since the data is already captured in 'message Line'. This
  2910. // constraint is imposed to prevent redundancy and maintain data integrity.
  2911. func CodeColumnNumber(val int) attribute.KeyValue {
  2912. return CodeColumnNumberKey.Int(val)
  2913. }
  2914. // CodeFilePath returns an attribute KeyValue conforming to the "code.file.path"
  2915. // semantic conventions. It represents the source code file name that identifies
  2916. // the code unit as uniquely as possible (preferably an absolute file path). This
  2917. // attribute MUST NOT be used on the Profile signal since the data is already
  2918. // captured in 'message Function'. This constraint is imposed to prevent
  2919. // redundancy and maintain data integrity.
  2920. func CodeFilePath(val string) attribute.KeyValue {
  2921. return CodeFilePathKey.String(val)
  2922. }
  2923. // CodeFunctionName returns an attribute KeyValue conforming to the
  2924. // "code.function.name" semantic conventions. It represents the method or
  2925. // function fully-qualified name without arguments. The value should fit the
  2926. // natural representation of the language runtime, which is also likely the same
  2927. // used within `code.stacktrace` attribute value. This attribute MUST NOT be used
  2928. // on the Profile signal since the data is already captured in 'message
  2929. // Function'. This constraint is imposed to prevent redundancy and maintain data
  2930. // integrity.
  2931. func CodeFunctionName(val string) attribute.KeyValue {
  2932. return CodeFunctionNameKey.String(val)
  2933. }
  2934. // CodeLineNumber returns an attribute KeyValue conforming to the
  2935. // "code.line.number" semantic conventions. It represents the line number in
  2936. // `code.file.path` best representing the operation. It SHOULD point within the
  2937. // code unit named in `code.function.name`. This attribute MUST NOT be used on
  2938. // the Profile signal since the data is already captured in 'message Line'. This
  2939. // constraint is imposed to prevent redundancy and maintain data integrity.
  2940. func CodeLineNumber(val int) attribute.KeyValue {
  2941. return CodeLineNumberKey.Int(val)
  2942. }
  2943. // CodeStacktrace returns an attribute KeyValue conforming to the
  2944. // "code.stacktrace" semantic conventions. It represents a stacktrace as a string
  2945. // in the natural representation for the language runtime. The representation is
  2946. // identical to [`exception.stacktrace`]. This attribute MUST NOT be used on the
  2947. // Profile signal since the data is already captured in 'message Location'. This
  2948. // constraint is imposed to prevent redundancy and maintain data integrity.
  2949. //
  2950. // [`exception.stacktrace`]: /docs/exceptions/exceptions-spans.md#stacktrace-representation
  2951. func CodeStacktrace(val string) attribute.KeyValue {
  2952. return CodeStacktraceKey.String(val)
  2953. }
  2954. // Namespace: container
  2955. const (
  2956. // ContainerCommandKey is the attribute Key conforming to the
  2957. // "container.command" semantic conventions. It represents the command used to
  2958. // run the container (i.e. the command name).
  2959. //
  2960. // Type: string
  2961. // RequirementLevel: Recommended
  2962. // Stability: Development
  2963. //
  2964. // Examples: "otelcontribcol"
  2965. // Note: If using embedded credentials or sensitive data, it is recommended to
  2966. // remove them to prevent potential leakage.
  2967. ContainerCommandKey = attribute.Key("container.command")
  2968. // ContainerCommandArgsKey is the attribute Key conforming to the
  2969. // "container.command_args" semantic conventions. It represents the all the
  2970. // command arguments (including the command/executable itself) run by the
  2971. // container.
  2972. //
  2973. // Type: string[]
  2974. // RequirementLevel: Recommended
  2975. // Stability: Development
  2976. //
  2977. // Examples: "otelcontribcol", "--config", "config.yaml"
  2978. ContainerCommandArgsKey = attribute.Key("container.command_args")
  2979. // ContainerCommandLineKey is the attribute Key conforming to the
  2980. // "container.command_line" semantic conventions. It represents the full command
  2981. // run by the container as a single string representing the full command.
  2982. //
  2983. // Type: string
  2984. // RequirementLevel: Recommended
  2985. // Stability: Development
  2986. //
  2987. // Examples: "otelcontribcol --config config.yaml"
  2988. ContainerCommandLineKey = attribute.Key("container.command_line")
  2989. // ContainerCSIPluginNameKey is the attribute Key conforming to the
  2990. // "container.csi.plugin.name" semantic conventions. It represents the name of
  2991. // the CSI ([Container Storage Interface]) plugin used by the volume.
  2992. //
  2993. // Type: string
  2994. // RequirementLevel: Recommended
  2995. // Stability: Development
  2996. //
  2997. // Examples: "pd.csi.storage.gke.io"
  2998. // Note: This can sometimes be referred to as a "driver" in CSI implementations.
  2999. // This should represent the `name` field of the GetPluginInfo RPC.
  3000. //
  3001. // [Container Storage Interface]: https://github.com/container-storage-interface/spec
  3002. ContainerCSIPluginNameKey = attribute.Key("container.csi.plugin.name")
  3003. // ContainerCSIVolumeIDKey is the attribute Key conforming to the
  3004. // "container.csi.volume.id" semantic conventions. It represents the unique
  3005. // volume ID returned by the CSI ([Container Storage Interface]) plugin.
  3006. //
  3007. // Type: string
  3008. // RequirementLevel: Recommended
  3009. // Stability: Development
  3010. //
  3011. // Examples: "projects/my-gcp-project/zones/my-gcp-zone/disks/my-gcp-disk"
  3012. // Note: This can sometimes be referred to as a "volume handle" in CSI
  3013. // implementations. This should represent the `Volume.volume_id` field in CSI
  3014. // spec.
  3015. //
  3016. // [Container Storage Interface]: https://github.com/container-storage-interface/spec
  3017. ContainerCSIVolumeIDKey = attribute.Key("container.csi.volume.id")
  3018. // ContainerIDKey is the attribute Key conforming to the "container.id" semantic
  3019. // conventions. It represents the container ID. Usually a UUID, as for example
  3020. // used to [identify Docker containers]. The UUID might be abbreviated.
  3021. //
  3022. // Type: string
  3023. // RequirementLevel: Recommended
  3024. // Stability: Development
  3025. //
  3026. // Examples: "a3bf90e006b2"
  3027. //
  3028. // [identify Docker containers]: https://docs.docker.com/engine/containers/run/#container-identification
  3029. ContainerIDKey = attribute.Key("container.id")
  3030. // ContainerImageIDKey is the attribute Key conforming to the
  3031. // "container.image.id" semantic conventions. It represents the runtime specific
  3032. // image identifier. Usually a hash algorithm followed by a UUID.
  3033. //
  3034. // Type: string
  3035. // RequirementLevel: Recommended
  3036. // Stability: Development
  3037. //
  3038. // Examples:
  3039. // "sha256:19c92d0a00d1b66d897bceaa7319bee0dd38a10a851c60bcec9474aa3f01e50f"
  3040. // Note: Docker defines a sha256 of the image id; `container.image.id`
  3041. // corresponds to the `Image` field from the Docker container inspect [API]
  3042. // endpoint.
  3043. // K8s defines a link to the container registry repository with digest
  3044. // `"imageID": "registry.azurecr.io /namespace/service/dockerfile@sha256:bdeabd40c3a8a492eaf9e8e44d0ebbb84bac7ee25ac0cf8a7159d25f62555625"`
  3045. // .
  3046. // The ID is assigned by the container runtime and can vary in different
  3047. // environments. Consider using `oci.manifest.digest` if it is important to
  3048. // identify the same image in different environments/runtimes.
  3049. //
  3050. // [API]: https://docs.docker.com/engine/api/v1.43/#tag/Container/operation/ContainerInspect
  3051. ContainerImageIDKey = attribute.Key("container.image.id")
  3052. // ContainerImageNameKey is the attribute Key conforming to the
  3053. // "container.image.name" semantic conventions. It represents the name of the
  3054. // image the container was built on.
  3055. //
  3056. // Type: string
  3057. // RequirementLevel: Recommended
  3058. // Stability: Development
  3059. //
  3060. // Examples: "gcr.io/opentelemetry/operator"
  3061. ContainerImageNameKey = attribute.Key("container.image.name")
  3062. // ContainerImageRepoDigestsKey is the attribute Key conforming to the
  3063. // "container.image.repo_digests" semantic conventions. It represents the repo
  3064. // digests of the container image as provided by the container runtime.
  3065. //
  3066. // Type: string[]
  3067. // RequirementLevel: Recommended
  3068. // Stability: Development
  3069. //
  3070. // Examples:
  3071. // "example@sha256:afcc7f1ac1b49db317a7196c902e61c6c3c4607d63599ee1a82d702d249a0ccb",
  3072. // "internal.registry.example.com:5000/example@sha256:b69959407d21e8a062e0416bf13405bb2b71ed7a84dde4158ebafacfa06f5578"
  3073. // Note: [Docker] and [CRI] report those under the `RepoDigests` field.
  3074. //
  3075. // [Docker]: https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect
  3076. // [CRI]: https://github.com/kubernetes/cri-api/blob/c75ef5b473bbe2d0a4fc92f82235efd665ea8e9f/pkg/apis/runtime/v1/api.proto#L1237-L1238
  3077. ContainerImageRepoDigestsKey = attribute.Key("container.image.repo_digests")
  3078. // ContainerImageTagsKey is the attribute Key conforming to the
  3079. // "container.image.tags" semantic conventions. It represents the container
  3080. // image tags. An example can be found in [Docker Image Inspect]. Should be only
  3081. // the `<tag>` section of the full name for example from
  3082. // `registry.example.com/my-org/my-image:<tag>`.
  3083. //
  3084. // Type: string[]
  3085. // RequirementLevel: Recommended
  3086. // Stability: Development
  3087. //
  3088. // Examples: "v1.27.1", "3.5.7-0"
  3089. //
  3090. // [Docker Image Inspect]: https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect
  3091. ContainerImageTagsKey = attribute.Key("container.image.tags")
  3092. // ContainerNameKey is the attribute Key conforming to the "container.name"
  3093. // semantic conventions. It represents the container name used by container
  3094. // runtime.
  3095. //
  3096. // Type: string
  3097. // RequirementLevel: Recommended
  3098. // Stability: Development
  3099. //
  3100. // Examples: "opentelemetry-autoconf"
  3101. ContainerNameKey = attribute.Key("container.name")
  3102. // ContainerRuntimeKey is the attribute Key conforming to the
  3103. // "container.runtime" semantic conventions. It represents the container runtime
  3104. // managing this container.
  3105. //
  3106. // Type: string
  3107. // RequirementLevel: Recommended
  3108. // Stability: Development
  3109. //
  3110. // Examples: "docker", "containerd", "rkt"
  3111. ContainerRuntimeKey = attribute.Key("container.runtime")
  3112. )
  3113. // ContainerCommand returns an attribute KeyValue conforming to the
  3114. // "container.command" semantic conventions. It represents the command used to
  3115. // run the container (i.e. the command name).
  3116. func ContainerCommand(val string) attribute.KeyValue {
  3117. return ContainerCommandKey.String(val)
  3118. }
  3119. // ContainerCommandArgs returns an attribute KeyValue conforming to the
  3120. // "container.command_args" semantic conventions. It represents the all the
  3121. // command arguments (including the command/executable itself) run by the
  3122. // container.
  3123. func ContainerCommandArgs(val ...string) attribute.KeyValue {
  3124. return ContainerCommandArgsKey.StringSlice(val)
  3125. }
  3126. // ContainerCommandLine returns an attribute KeyValue conforming to the
  3127. // "container.command_line" semantic conventions. It represents the full command
  3128. // run by the container as a single string representing the full command.
  3129. func ContainerCommandLine(val string) attribute.KeyValue {
  3130. return ContainerCommandLineKey.String(val)
  3131. }
  3132. // ContainerCSIPluginName returns an attribute KeyValue conforming to the
  3133. // "container.csi.plugin.name" semantic conventions. It represents the name of
  3134. // the CSI ([Container Storage Interface]) plugin used by the volume.
  3135. //
  3136. // [Container Storage Interface]: https://github.com/container-storage-interface/spec
  3137. func ContainerCSIPluginName(val string) attribute.KeyValue {
  3138. return ContainerCSIPluginNameKey.String(val)
  3139. }
  3140. // ContainerCSIVolumeID returns an attribute KeyValue conforming to the
  3141. // "container.csi.volume.id" semantic conventions. It represents the unique
  3142. // volume ID returned by the CSI ([Container Storage Interface]) plugin.
  3143. //
  3144. // [Container Storage Interface]: https://github.com/container-storage-interface/spec
  3145. func ContainerCSIVolumeID(val string) attribute.KeyValue {
  3146. return ContainerCSIVolumeIDKey.String(val)
  3147. }
  3148. // ContainerID returns an attribute KeyValue conforming to the "container.id"
  3149. // semantic conventions. It represents the container ID. Usually a UUID, as for
  3150. // example used to [identify Docker containers]. The UUID might be abbreviated.
  3151. //
  3152. // [identify Docker containers]: https://docs.docker.com/engine/containers/run/#container-identification
  3153. func ContainerID(val string) attribute.KeyValue {
  3154. return ContainerIDKey.String(val)
  3155. }
  3156. // ContainerImageID returns an attribute KeyValue conforming to the
  3157. // "container.image.id" semantic conventions. It represents the runtime specific
  3158. // image identifier. Usually a hash algorithm followed by a UUID.
  3159. func ContainerImageID(val string) attribute.KeyValue {
  3160. return ContainerImageIDKey.String(val)
  3161. }
  3162. // ContainerImageName returns an attribute KeyValue conforming to the
  3163. // "container.image.name" semantic conventions. It represents the name of the
  3164. // image the container was built on.
  3165. func ContainerImageName(val string) attribute.KeyValue {
  3166. return ContainerImageNameKey.String(val)
  3167. }
  3168. // ContainerImageRepoDigests returns an attribute KeyValue conforming to the
  3169. // "container.image.repo_digests" semantic conventions. It represents the repo
  3170. // digests of the container image as provided by the container runtime.
  3171. func ContainerImageRepoDigests(val ...string) attribute.KeyValue {
  3172. return ContainerImageRepoDigestsKey.StringSlice(val)
  3173. }
  3174. // ContainerImageTags returns an attribute KeyValue conforming to the
  3175. // "container.image.tags" semantic conventions. It represents the container image
  3176. // tags. An example can be found in [Docker Image Inspect]. Should be only the
  3177. // `<tag>` section of the full name for example from
  3178. // `registry.example.com/my-org/my-image:<tag>`.
  3179. //
  3180. // [Docker Image Inspect]: https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect
  3181. func ContainerImageTags(val ...string) attribute.KeyValue {
  3182. return ContainerImageTagsKey.StringSlice(val)
  3183. }
  3184. // ContainerName returns an attribute KeyValue conforming to the "container.name"
  3185. // semantic conventions. It represents the container name used by container
  3186. // runtime.
  3187. func ContainerName(val string) attribute.KeyValue {
  3188. return ContainerNameKey.String(val)
  3189. }
  3190. // ContainerRuntime returns an attribute KeyValue conforming to the
  3191. // "container.runtime" semantic conventions. It represents the container runtime
  3192. // managing this container.
  3193. func ContainerRuntime(val string) attribute.KeyValue {
  3194. return ContainerRuntimeKey.String(val)
  3195. }
  3196. // Namespace: cpu
  3197. const (
  3198. // CPULogicalNumberKey is the attribute Key conforming to the
  3199. // "cpu.logical_number" semantic conventions. It represents the logical CPU
  3200. // number [0..n-1].
  3201. //
  3202. // Type: int
  3203. // RequirementLevel: Recommended
  3204. // Stability: Development
  3205. //
  3206. // Examples: 1
  3207. CPULogicalNumberKey = attribute.Key("cpu.logical_number")
  3208. // CPUModeKey is the attribute Key conforming to the "cpu.mode" semantic
  3209. // conventions. It represents the mode of the CPU.
  3210. //
  3211. // Type: Enum
  3212. // RequirementLevel: Recommended
  3213. // Stability: Development
  3214. //
  3215. // Examples: "user", "system"
  3216. CPUModeKey = attribute.Key("cpu.mode")
  3217. )
  3218. // CPULogicalNumber returns an attribute KeyValue conforming to the
  3219. // "cpu.logical_number" semantic conventions. It represents the logical CPU
  3220. // number [0..n-1].
  3221. func CPULogicalNumber(val int) attribute.KeyValue {
  3222. return CPULogicalNumberKey.Int(val)
  3223. }
  3224. // Enum values for cpu.mode
  3225. var (
  3226. // user
  3227. // Stability: development
  3228. CPUModeUser = CPUModeKey.String("user")
  3229. // system
  3230. // Stability: development
  3231. CPUModeSystem = CPUModeKey.String("system")
  3232. // nice
  3233. // Stability: development
  3234. CPUModeNice = CPUModeKey.String("nice")
  3235. // idle
  3236. // Stability: development
  3237. CPUModeIdle = CPUModeKey.String("idle")
  3238. // iowait
  3239. // Stability: development
  3240. CPUModeIOWait = CPUModeKey.String("iowait")
  3241. // interrupt
  3242. // Stability: development
  3243. CPUModeInterrupt = CPUModeKey.String("interrupt")
  3244. // steal
  3245. // Stability: development
  3246. CPUModeSteal = CPUModeKey.String("steal")
  3247. // kernel
  3248. // Stability: development
  3249. CPUModeKernel = CPUModeKey.String("kernel")
  3250. )
  3251. // Namespace: db
  3252. const (
  3253. // DBClientConnectionPoolNameKey is the attribute Key conforming to the
  3254. // "db.client.connection.pool.name" semantic conventions. It represents the name
  3255. // of the connection pool; unique within the instrumented application. In case
  3256. // the connection pool implementation doesn't provide a name, instrumentation
  3257. // SHOULD use a combination of parameters that would make the name unique, for
  3258. // example, combining attributes `server.address`, `server.port`, and
  3259. // `db.namespace`, formatted as `server.address:server.port/db.namespace`.
  3260. // Instrumentations that generate connection pool name following different
  3261. // patterns SHOULD document it.
  3262. //
  3263. // Type: string
  3264. // RequirementLevel: Recommended
  3265. // Stability: Development
  3266. //
  3267. // Examples: "myDataSource"
  3268. DBClientConnectionPoolNameKey = attribute.Key("db.client.connection.pool.name")
  3269. // DBClientConnectionStateKey is the attribute Key conforming to the
  3270. // "db.client.connection.state" semantic conventions. It represents the state of
  3271. // a connection in the pool.
  3272. //
  3273. // Type: Enum
  3274. // RequirementLevel: Recommended
  3275. // Stability: Development
  3276. //
  3277. // Examples: "idle"
  3278. DBClientConnectionStateKey = attribute.Key("db.client.connection.state")
  3279. // DBCollectionNameKey is the attribute Key conforming to the
  3280. // "db.collection.name" semantic conventions. It represents the name of a
  3281. // collection (table, container) within the database.
  3282. //
  3283. // Type: string
  3284. // RequirementLevel: Recommended
  3285. // Stability: Stable
  3286. //
  3287. // Examples: "public.users", "customers"
  3288. // Note: It is RECOMMENDED to capture the value as provided by the application
  3289. // without attempting to do any case normalization.
  3290. //
  3291. // The collection name SHOULD NOT be extracted from `db.query.text`,
  3292. // when the database system supports query text with multiple collections
  3293. // in non-batch operations.
  3294. //
  3295. // For batch operations, if the individual operations are known to have the same
  3296. // collection name then that collection name SHOULD be used.
  3297. DBCollectionNameKey = attribute.Key("db.collection.name")
  3298. // DBNamespaceKey is the attribute Key conforming to the "db.namespace" semantic
  3299. // conventions. It represents the name of the database, fully qualified within
  3300. // the server address and port.
  3301. //
  3302. // Type: string
  3303. // RequirementLevel: Recommended
  3304. // Stability: Stable
  3305. //
  3306. // Examples: "customers", "test.users"
  3307. // Note: If a database system has multiple namespace components, they SHOULD be
  3308. // concatenated from the most general to the most specific namespace component,
  3309. // using `|` as a separator between the components. Any missing components (and
  3310. // their associated separators) SHOULD be omitted.
  3311. // Semantic conventions for individual database systems SHOULD document what
  3312. // `db.namespace` means in the context of that system.
  3313. // It is RECOMMENDED to capture the value as provided by the application without
  3314. // attempting to do any case normalization.
  3315. DBNamespaceKey = attribute.Key("db.namespace")
  3316. // DBOperationBatchSizeKey is the attribute Key conforming to the
  3317. // "db.operation.batch.size" semantic conventions. It represents the number of
  3318. // queries included in a batch operation.
  3319. //
  3320. // Type: int
  3321. // RequirementLevel: Recommended
  3322. // Stability: Stable
  3323. //
  3324. // Examples: 2, 3, 4
  3325. // Note: Operations are only considered batches when they contain two or more
  3326. // operations, and so `db.operation.batch.size` SHOULD never be `1`.
  3327. DBOperationBatchSizeKey = attribute.Key("db.operation.batch.size")
  3328. // DBOperationNameKey is the attribute Key conforming to the "db.operation.name"
  3329. // semantic conventions. It represents the name of the operation or command
  3330. // being executed.
  3331. //
  3332. // Type: string
  3333. // RequirementLevel: Recommended
  3334. // Stability: Stable
  3335. //
  3336. // Examples: "findAndModify", "HMSET", "SELECT"
  3337. // Note: It is RECOMMENDED to capture the value as provided by the application
  3338. // without attempting to do any case normalization.
  3339. //
  3340. // The operation name SHOULD NOT be extracted from `db.query.text`,
  3341. // when the database system supports query text with multiple operations
  3342. // in non-batch operations.
  3343. //
  3344. // If spaces can occur in the operation name, multiple consecutive spaces
  3345. // SHOULD be normalized to a single space.
  3346. //
  3347. // For batch operations, if the individual operations are known to have the same
  3348. // operation name
  3349. // then that operation name SHOULD be used prepended by `BATCH `,
  3350. // otherwise `db.operation.name` SHOULD be `BATCH` or some other database
  3351. // system specific term if more applicable.
  3352. DBOperationNameKey = attribute.Key("db.operation.name")
  3353. // DBQuerySummaryKey is the attribute Key conforming to the "db.query.summary"
  3354. // semantic conventions. It represents the low cardinality summary of a database
  3355. // query.
  3356. //
  3357. // Type: string
  3358. // RequirementLevel: Recommended
  3359. // Stability: Stable
  3360. //
  3361. // Examples: "SELECT wuser_table", "INSERT shipping_details SELECT orders", "get
  3362. // user by id"
  3363. // Note: The query summary describes a class of database queries and is useful
  3364. // as a grouping key, especially when analyzing telemetry for database
  3365. // calls involving complex queries.
  3366. //
  3367. // Summary may be available to the instrumentation through
  3368. // instrumentation hooks or other means. If it is not available,
  3369. // instrumentations
  3370. // that support query parsing SHOULD generate a summary following
  3371. // [Generating query summary]
  3372. // section.
  3373. //
  3374. // [Generating query summary]: /docs/database/database-spans.md#generating-a-summary-of-the-query
  3375. DBQuerySummaryKey = attribute.Key("db.query.summary")
  3376. // DBQueryTextKey is the attribute Key conforming to the "db.query.text"
  3377. // semantic conventions. It represents the database query being executed.
  3378. //
  3379. // Type: string
  3380. // RequirementLevel: Recommended
  3381. // Stability: Stable
  3382. //
  3383. // Examples: "SELECT * FROM wuser_table where username = ?", "SET mykey ?"
  3384. // Note: For sanitization see [Sanitization of `db.query.text`].
  3385. // For batch operations, if the individual operations are known to have the same
  3386. // query text then that query text SHOULD be used, otherwise all of the
  3387. // individual query texts SHOULD be concatenated with separator `; ` or some
  3388. // other database system specific separator if more applicable.
  3389. // Parameterized query text SHOULD NOT be sanitized. Even though parameterized
  3390. // query text can potentially have sensitive data, by using a parameterized
  3391. // query the user is giving a strong signal that any sensitive data will be
  3392. // passed as parameter values, and the benefit to observability of capturing the
  3393. // static part of the query text by default outweighs the risk.
  3394. //
  3395. // [Sanitization of `db.query.text`]: /docs/database/database-spans.md#sanitization-of-dbquerytext
  3396. DBQueryTextKey = attribute.Key("db.query.text")
  3397. // DBResponseReturnedRowsKey is the attribute Key conforming to the
  3398. // "db.response.returned_rows" semantic conventions. It represents the number of
  3399. // rows returned by the operation.
  3400. //
  3401. // Type: int
  3402. // RequirementLevel: Recommended
  3403. // Stability: Development
  3404. //
  3405. // Examples: 10, 30, 1000
  3406. DBResponseReturnedRowsKey = attribute.Key("db.response.returned_rows")
  3407. // DBResponseStatusCodeKey is the attribute Key conforming to the
  3408. // "db.response.status_code" semantic conventions. It represents the database
  3409. // response status code.
  3410. //
  3411. // Type: string
  3412. // RequirementLevel: Recommended
  3413. // Stability: Stable
  3414. //
  3415. // Examples: "102", "ORA-17002", "08P01", "404"
  3416. // Note: The status code returned by the database. Usually it represents an
  3417. // error code, but may also represent partial success, warning, or differentiate
  3418. // between various types of successful outcomes.
  3419. // Semantic conventions for individual database systems SHOULD document what
  3420. // `db.response.status_code` means in the context of that system.
  3421. DBResponseStatusCodeKey = attribute.Key("db.response.status_code")
  3422. // DBStoredProcedureNameKey is the attribute Key conforming to the
  3423. // "db.stored_procedure.name" semantic conventions. It represents the name of a
  3424. // stored procedure within the database.
  3425. //
  3426. // Type: string
  3427. // RequirementLevel: Recommended
  3428. // Stability: Stable
  3429. //
  3430. // Examples: "GetCustomer"
  3431. // Note: It is RECOMMENDED to capture the value as provided by the application
  3432. // without attempting to do any case normalization.
  3433. //
  3434. // For batch operations, if the individual operations are known to have the same
  3435. // stored procedure name then that stored procedure name SHOULD be used.
  3436. DBStoredProcedureNameKey = attribute.Key("db.stored_procedure.name")
  3437. // DBSystemNameKey is the attribute Key conforming to the "db.system.name"
  3438. // semantic conventions. It represents the database management system (DBMS)
  3439. // product as identified by the client instrumentation.
  3440. //
  3441. // Type: Enum
  3442. // RequirementLevel: Recommended
  3443. // Stability: Stable
  3444. //
  3445. // Examples:
  3446. // Note: The actual DBMS may differ from the one identified by the client. For
  3447. // example, when using PostgreSQL client libraries to connect to a CockroachDB,
  3448. // the `db.system.name` is set to `postgresql` based on the instrumentation's
  3449. // best knowledge.
  3450. DBSystemNameKey = attribute.Key("db.system.name")
  3451. )
  3452. // DBClientConnectionPoolName returns an attribute KeyValue conforming to the
  3453. // "db.client.connection.pool.name" semantic conventions. It represents the name
  3454. // of the connection pool; unique within the instrumented application. In case
  3455. // the connection pool implementation doesn't provide a name, instrumentation
  3456. // SHOULD use a combination of parameters that would make the name unique, for
  3457. // example, combining attributes `server.address`, `server.port`, and
  3458. // `db.namespace`, formatted as `server.address:server.port/db.namespace`.
  3459. // Instrumentations that generate connection pool name following different
  3460. // patterns SHOULD document it.
  3461. func DBClientConnectionPoolName(val string) attribute.KeyValue {
  3462. return DBClientConnectionPoolNameKey.String(val)
  3463. }
  3464. // DBCollectionName returns an attribute KeyValue conforming to the
  3465. // "db.collection.name" semantic conventions. It represents the name of a
  3466. // collection (table, container) within the database.
  3467. func DBCollectionName(val string) attribute.KeyValue {
  3468. return DBCollectionNameKey.String(val)
  3469. }
  3470. // DBNamespace returns an attribute KeyValue conforming to the "db.namespace"
  3471. // semantic conventions. It represents the name of the database, fully qualified
  3472. // within the server address and port.
  3473. func DBNamespace(val string) attribute.KeyValue {
  3474. return DBNamespaceKey.String(val)
  3475. }
  3476. // DBOperationBatchSize returns an attribute KeyValue conforming to the
  3477. // "db.operation.batch.size" semantic conventions. It represents the number of
  3478. // queries included in a batch operation.
  3479. func DBOperationBatchSize(val int) attribute.KeyValue {
  3480. return DBOperationBatchSizeKey.Int(val)
  3481. }
  3482. // DBOperationName returns an attribute KeyValue conforming to the
  3483. // "db.operation.name" semantic conventions. It represents the name of the
  3484. // operation or command being executed.
  3485. func DBOperationName(val string) attribute.KeyValue {
  3486. return DBOperationNameKey.String(val)
  3487. }
  3488. // DBQuerySummary returns an attribute KeyValue conforming to the
  3489. // "db.query.summary" semantic conventions. It represents the low cardinality
  3490. // summary of a database query.
  3491. func DBQuerySummary(val string) attribute.KeyValue {
  3492. return DBQuerySummaryKey.String(val)
  3493. }
  3494. // DBQueryText returns an attribute KeyValue conforming to the "db.query.text"
  3495. // semantic conventions. It represents the database query being executed.
  3496. func DBQueryText(val string) attribute.KeyValue {
  3497. return DBQueryTextKey.String(val)
  3498. }
  3499. // DBResponseReturnedRows returns an attribute KeyValue conforming to the
  3500. // "db.response.returned_rows" semantic conventions. It represents the number of
  3501. // rows returned by the operation.
  3502. func DBResponseReturnedRows(val int) attribute.KeyValue {
  3503. return DBResponseReturnedRowsKey.Int(val)
  3504. }
  3505. // DBResponseStatusCode returns an attribute KeyValue conforming to the
  3506. // "db.response.status_code" semantic conventions. It represents the database
  3507. // response status code.
  3508. func DBResponseStatusCode(val string) attribute.KeyValue {
  3509. return DBResponseStatusCodeKey.String(val)
  3510. }
  3511. // DBStoredProcedureName returns an attribute KeyValue conforming to the
  3512. // "db.stored_procedure.name" semantic conventions. It represents the name of a
  3513. // stored procedure within the database.
  3514. func DBStoredProcedureName(val string) attribute.KeyValue {
  3515. return DBStoredProcedureNameKey.String(val)
  3516. }
  3517. // Enum values for db.client.connection.state
  3518. var (
  3519. // idle
  3520. // Stability: development
  3521. DBClientConnectionStateIdle = DBClientConnectionStateKey.String("idle")
  3522. // used
  3523. // Stability: development
  3524. DBClientConnectionStateUsed = DBClientConnectionStateKey.String("used")
  3525. )
  3526. // Enum values for db.system.name
  3527. var (
  3528. // Some other SQL database. Fallback only.
  3529. // Stability: development
  3530. DBSystemNameOtherSQL = DBSystemNameKey.String("other_sql")
  3531. // [Adabas (Adaptable Database System)]
  3532. // Stability: development
  3533. //
  3534. // [Adabas (Adaptable Database System)]: https://documentation.softwareag.com/?pf=adabas
  3535. DBSystemNameSoftwareagAdabas = DBSystemNameKey.String("softwareag.adabas")
  3536. // [Actian Ingres]
  3537. // Stability: development
  3538. //
  3539. // [Actian Ingres]: https://www.actian.com/databases/ingres/
  3540. DBSystemNameActianIngres = DBSystemNameKey.String("actian.ingres")
  3541. // [Amazon DynamoDB]
  3542. // Stability: development
  3543. //
  3544. // [Amazon DynamoDB]: https://aws.amazon.com/pm/dynamodb/
  3545. DBSystemNameAWSDynamoDB = DBSystemNameKey.String("aws.dynamodb")
  3546. // [Amazon Redshift]
  3547. // Stability: development
  3548. //
  3549. // [Amazon Redshift]: https://aws.amazon.com/redshift/
  3550. DBSystemNameAWSRedshift = DBSystemNameKey.String("aws.redshift")
  3551. // [Azure Cosmos DB]
  3552. // Stability: development
  3553. //
  3554. // [Azure Cosmos DB]: https://learn.microsoft.com/azure/cosmos-db
  3555. DBSystemNameAzureCosmosDB = DBSystemNameKey.String("azure.cosmosdb")
  3556. // [InterSystems Caché]
  3557. // Stability: development
  3558. //
  3559. // [InterSystems Caché]: https://www.intersystems.com/products/cache/
  3560. DBSystemNameIntersystemsCache = DBSystemNameKey.String("intersystems.cache")
  3561. // [Apache Cassandra]
  3562. // Stability: development
  3563. //
  3564. // [Apache Cassandra]: https://cassandra.apache.org/
  3565. DBSystemNameCassandra = DBSystemNameKey.String("cassandra")
  3566. // [ClickHouse]
  3567. // Stability: development
  3568. //
  3569. // [ClickHouse]: https://clickhouse.com/
  3570. DBSystemNameClickHouse = DBSystemNameKey.String("clickhouse")
  3571. // [CockroachDB]
  3572. // Stability: development
  3573. //
  3574. // [CockroachDB]: https://www.cockroachlabs.com/
  3575. DBSystemNameCockroachDB = DBSystemNameKey.String("cockroachdb")
  3576. // [Couchbase]
  3577. // Stability: development
  3578. //
  3579. // [Couchbase]: https://www.couchbase.com/
  3580. DBSystemNameCouchbase = DBSystemNameKey.String("couchbase")
  3581. // [Apache CouchDB]
  3582. // Stability: development
  3583. //
  3584. // [Apache CouchDB]: https://couchdb.apache.org/
  3585. DBSystemNameCouchDB = DBSystemNameKey.String("couchdb")
  3586. // [Apache Derby]
  3587. // Stability: development
  3588. //
  3589. // [Apache Derby]: https://db.apache.org/derby/
  3590. DBSystemNameDerby = DBSystemNameKey.String("derby")
  3591. // [Elasticsearch]
  3592. // Stability: development
  3593. //
  3594. // [Elasticsearch]: https://www.elastic.co/elasticsearch
  3595. DBSystemNameElasticsearch = DBSystemNameKey.String("elasticsearch")
  3596. // [Firebird]
  3597. // Stability: development
  3598. //
  3599. // [Firebird]: https://www.firebirdsql.org/
  3600. DBSystemNameFirebirdSQL = DBSystemNameKey.String("firebirdsql")
  3601. // [Google Cloud Spanner]
  3602. // Stability: development
  3603. //
  3604. // [Google Cloud Spanner]: https://cloud.google.com/spanner
  3605. DBSystemNameGCPSpanner = DBSystemNameKey.String("gcp.spanner")
  3606. // [Apache Geode]
  3607. // Stability: development
  3608. //
  3609. // [Apache Geode]: https://geode.apache.org/
  3610. DBSystemNameGeode = DBSystemNameKey.String("geode")
  3611. // [H2 Database]
  3612. // Stability: development
  3613. //
  3614. // [H2 Database]: https://h2database.com/
  3615. DBSystemNameH2database = DBSystemNameKey.String("h2database")
  3616. // [Apache HBase]
  3617. // Stability: development
  3618. //
  3619. // [Apache HBase]: https://hbase.apache.org/
  3620. DBSystemNameHBase = DBSystemNameKey.String("hbase")
  3621. // [Apache Hive]
  3622. // Stability: development
  3623. //
  3624. // [Apache Hive]: https://hive.apache.org/
  3625. DBSystemNameHive = DBSystemNameKey.String("hive")
  3626. // [HyperSQL Database]
  3627. // Stability: development
  3628. //
  3629. // [HyperSQL Database]: https://hsqldb.org/
  3630. DBSystemNameHSQLDB = DBSystemNameKey.String("hsqldb")
  3631. // [IBM Db2]
  3632. // Stability: development
  3633. //
  3634. // [IBM Db2]: https://www.ibm.com/db2
  3635. DBSystemNameIBMDB2 = DBSystemNameKey.String("ibm.db2")
  3636. // [IBM Informix]
  3637. // Stability: development
  3638. //
  3639. // [IBM Informix]: https://www.ibm.com/products/informix
  3640. DBSystemNameIBMInformix = DBSystemNameKey.String("ibm.informix")
  3641. // [IBM Netezza]
  3642. // Stability: development
  3643. //
  3644. // [IBM Netezza]: https://www.ibm.com/products/netezza
  3645. DBSystemNameIBMNetezza = DBSystemNameKey.String("ibm.netezza")
  3646. // [InfluxDB]
  3647. // Stability: development
  3648. //
  3649. // [InfluxDB]: https://www.influxdata.com/
  3650. DBSystemNameInfluxDB = DBSystemNameKey.String("influxdb")
  3651. // [Instant]
  3652. // Stability: development
  3653. //
  3654. // [Instant]: https://www.instantdb.com/
  3655. DBSystemNameInstantDB = DBSystemNameKey.String("instantdb")
  3656. // [MariaDB]
  3657. // Stability: stable
  3658. //
  3659. // [MariaDB]: https://mariadb.org/
  3660. DBSystemNameMariaDB = DBSystemNameKey.String("mariadb")
  3661. // [Memcached]
  3662. // Stability: development
  3663. //
  3664. // [Memcached]: https://memcached.org/
  3665. DBSystemNameMemcached = DBSystemNameKey.String("memcached")
  3666. // [MongoDB]
  3667. // Stability: development
  3668. //
  3669. // [MongoDB]: https://www.mongodb.com/
  3670. DBSystemNameMongoDB = DBSystemNameKey.String("mongodb")
  3671. // [Microsoft SQL Server]
  3672. // Stability: stable
  3673. //
  3674. // [Microsoft SQL Server]: https://www.microsoft.com/sql-server
  3675. DBSystemNameMicrosoftSQLServer = DBSystemNameKey.String("microsoft.sql_server")
  3676. // [MySQL]
  3677. // Stability: stable
  3678. //
  3679. // [MySQL]: https://www.mysql.com/
  3680. DBSystemNameMySQL = DBSystemNameKey.String("mysql")
  3681. // [Neo4j]
  3682. // Stability: development
  3683. //
  3684. // [Neo4j]: https://neo4j.com/
  3685. DBSystemNameNeo4j = DBSystemNameKey.String("neo4j")
  3686. // [OpenSearch]
  3687. // Stability: development
  3688. //
  3689. // [OpenSearch]: https://opensearch.org/
  3690. DBSystemNameOpenSearch = DBSystemNameKey.String("opensearch")
  3691. // [Oracle Database]
  3692. // Stability: development
  3693. //
  3694. // [Oracle Database]: https://www.oracle.com/database/
  3695. DBSystemNameOracleDB = DBSystemNameKey.String("oracle.db")
  3696. // [PostgreSQL]
  3697. // Stability: stable
  3698. //
  3699. // [PostgreSQL]: https://www.postgresql.org/
  3700. DBSystemNamePostgreSQL = DBSystemNameKey.String("postgresql")
  3701. // [Redis]
  3702. // Stability: development
  3703. //
  3704. // [Redis]: https://redis.io/
  3705. DBSystemNameRedis = DBSystemNameKey.String("redis")
  3706. // [SAP HANA]
  3707. // Stability: development
  3708. //
  3709. // [SAP HANA]: https://www.sap.com/products/technology-platform/hana/what-is-sap-hana.html
  3710. DBSystemNameSAPHANA = DBSystemNameKey.String("sap.hana")
  3711. // [SAP MaxDB]
  3712. // Stability: development
  3713. //
  3714. // [SAP MaxDB]: https://maxdb.sap.com/
  3715. DBSystemNameSAPMaxDB = DBSystemNameKey.String("sap.maxdb")
  3716. // [SQLite]
  3717. // Stability: development
  3718. //
  3719. // [SQLite]: https://www.sqlite.org/
  3720. DBSystemNameSQLite = DBSystemNameKey.String("sqlite")
  3721. // [Teradata]
  3722. // Stability: development
  3723. //
  3724. // [Teradata]: https://www.teradata.com/
  3725. DBSystemNameTeradata = DBSystemNameKey.String("teradata")
  3726. // [Trino]
  3727. // Stability: development
  3728. //
  3729. // [Trino]: https://trino.io/
  3730. DBSystemNameTrino = DBSystemNameKey.String("trino")
  3731. )
  3732. // Namespace: deployment
  3733. const (
  3734. // DeploymentEnvironmentNameKey is the attribute Key conforming to the
  3735. // "deployment.environment.name" semantic conventions. It represents the name of
  3736. // the [deployment environment] (aka deployment tier).
  3737. //
  3738. // Type: string
  3739. // RequirementLevel: Recommended
  3740. // Stability: Development
  3741. //
  3742. // Examples: "staging", "production"
  3743. // Note: `deployment.environment.name` does not affect the uniqueness
  3744. // constraints defined through
  3745. // the `service.namespace`, `service.name` and `service.instance.id` resource
  3746. // attributes.
  3747. // This implies that resources carrying the following attribute combinations
  3748. // MUST be
  3749. // considered to be identifying the same service:
  3750. //
  3751. // - `service.name=frontend`, `deployment.environment.name=production`
  3752. // - `service.name=frontend`, `deployment.environment.name=staging`.
  3753. //
  3754. //
  3755. // [deployment environment]: https://wikipedia.org/wiki/Deployment_environment
  3756. DeploymentEnvironmentNameKey = attribute.Key("deployment.environment.name")
  3757. // DeploymentIDKey is the attribute Key conforming to the "deployment.id"
  3758. // semantic conventions. It represents the id of the deployment.
  3759. //
  3760. // Type: string
  3761. // RequirementLevel: Recommended
  3762. // Stability: Development
  3763. //
  3764. // Examples: "1208"
  3765. DeploymentIDKey = attribute.Key("deployment.id")
  3766. // DeploymentNameKey is the attribute Key conforming to the "deployment.name"
  3767. // semantic conventions. It represents the name of the deployment.
  3768. //
  3769. // Type: string
  3770. // RequirementLevel: Recommended
  3771. // Stability: Development
  3772. //
  3773. // Examples: "deploy my app", "deploy-frontend"
  3774. DeploymentNameKey = attribute.Key("deployment.name")
  3775. // DeploymentStatusKey is the attribute Key conforming to the
  3776. // "deployment.status" semantic conventions. It represents the status of the
  3777. // deployment.
  3778. //
  3779. // Type: Enum
  3780. // RequirementLevel: Recommended
  3781. // Stability: Development
  3782. //
  3783. // Examples:
  3784. DeploymentStatusKey = attribute.Key("deployment.status")
  3785. )
  3786. // DeploymentEnvironmentName returns an attribute KeyValue conforming to the
  3787. // "deployment.environment.name" semantic conventions. It represents the name of
  3788. // the [deployment environment] (aka deployment tier).
  3789. //
  3790. // [deployment environment]: https://wikipedia.org/wiki/Deployment_environment
  3791. func DeploymentEnvironmentName(val string) attribute.KeyValue {
  3792. return DeploymentEnvironmentNameKey.String(val)
  3793. }
  3794. // DeploymentID returns an attribute KeyValue conforming to the "deployment.id"
  3795. // semantic conventions. It represents the id of the deployment.
  3796. func DeploymentID(val string) attribute.KeyValue {
  3797. return DeploymentIDKey.String(val)
  3798. }
  3799. // DeploymentName returns an attribute KeyValue conforming to the
  3800. // "deployment.name" semantic conventions. It represents the name of the
  3801. // deployment.
  3802. func DeploymentName(val string) attribute.KeyValue {
  3803. return DeploymentNameKey.String(val)
  3804. }
  3805. // Enum values for deployment.status
  3806. var (
  3807. // failed
  3808. // Stability: development
  3809. DeploymentStatusFailed = DeploymentStatusKey.String("failed")
  3810. // succeeded
  3811. // Stability: development
  3812. DeploymentStatusSucceeded = DeploymentStatusKey.String("succeeded")
  3813. )
  3814. // Namespace: destination
  3815. const (
  3816. // DestinationAddressKey is the attribute Key conforming to the
  3817. // "destination.address" semantic conventions. It represents the destination
  3818. // address - domain name if available without reverse DNS lookup; otherwise, IP
  3819. // address or Unix domain socket name.
  3820. //
  3821. // Type: string
  3822. // RequirementLevel: Recommended
  3823. // Stability: Development
  3824. //
  3825. // Examples: "destination.example.com", "10.1.2.80", "/tmp/my.sock"
  3826. // Note: When observed from the source side, and when communicating through an
  3827. // intermediary, `destination.address` SHOULD represent the destination address
  3828. // behind any intermediaries, for example proxies, if it's available.
  3829. DestinationAddressKey = attribute.Key("destination.address")
  3830. // DestinationPortKey is the attribute Key conforming to the "destination.port"
  3831. // semantic conventions. It represents the destination port number.
  3832. //
  3833. // Type: int
  3834. // RequirementLevel: Recommended
  3835. // Stability: Development
  3836. //
  3837. // Examples: 3389, 2888
  3838. DestinationPortKey = attribute.Key("destination.port")
  3839. )
  3840. // DestinationAddress returns an attribute KeyValue conforming to the
  3841. // "destination.address" semantic conventions. It represents the destination
  3842. // address - domain name if available without reverse DNS lookup; otherwise, IP
  3843. // address or Unix domain socket name.
  3844. func DestinationAddress(val string) attribute.KeyValue {
  3845. return DestinationAddressKey.String(val)
  3846. }
  3847. // DestinationPort returns an attribute KeyValue conforming to the
  3848. // "destination.port" semantic conventions. It represents the destination port
  3849. // number.
  3850. func DestinationPort(val int) attribute.KeyValue {
  3851. return DestinationPortKey.Int(val)
  3852. }
  3853. // Namespace: device
  3854. const (
  3855. // DeviceIDKey is the attribute Key conforming to the "device.id" semantic
  3856. // conventions. It represents a unique identifier representing the device.
  3857. //
  3858. // Type: string
  3859. // RequirementLevel: Recommended
  3860. // Stability: Development
  3861. //
  3862. // Examples: "123456789012345", "01:23:45:67:89:AB"
  3863. // Note: Its value SHOULD be identical for all apps on a device and it SHOULD
  3864. // NOT change if an app is uninstalled and re-installed.
  3865. // However, it might be resettable by the user for all apps on a device.
  3866. // Hardware IDs (e.g. vendor-specific serial number, IMEI or MAC address) MAY be
  3867. // used as values.
  3868. //
  3869. // More information about Android identifier best practices can be found [here]
  3870. // .
  3871. //
  3872. // > [!WARNING]> This attribute may contain sensitive (PII) information. Caution
  3873. // > should be taken when storing personal data or anything which can identify a
  3874. // > user. GDPR and data protection laws may apply,
  3875. // > ensure you do your own due diligence.> Due to these reasons, this
  3876. // > identifier is not recommended for consumer applications and will likely
  3877. // > result in rejection from both Google Play and App Store.
  3878. // > However, it may be appropriate for specific enterprise scenarios, such as
  3879. // > kiosk devices or enterprise-managed devices, with appropriate compliance
  3880. // > clearance.
  3881. // > Any instrumentation providing this identifier MUST implement it as an
  3882. // > opt-in feature.> See [`app.installation.id`]> for a more
  3883. // > privacy-preserving alternative.
  3884. //
  3885. // [here]: https://developer.android.com/training/articles/user-data-ids
  3886. // [`app.installation.id`]: /docs/registry/attributes/app.md#app-installation-id
  3887. DeviceIDKey = attribute.Key("device.id")
  3888. // DeviceManufacturerKey is the attribute Key conforming to the
  3889. // "device.manufacturer" semantic conventions. It represents the name of the
  3890. // device manufacturer.
  3891. //
  3892. // Type: string
  3893. // RequirementLevel: Recommended
  3894. // Stability: Development
  3895. //
  3896. // Examples: "Apple", "Samsung"
  3897. // Note: The Android OS provides this field via [Build]. iOS apps SHOULD
  3898. // hardcode the value `Apple`.
  3899. //
  3900. // [Build]: https://developer.android.com/reference/android/os/Build#MANUFACTURER
  3901. DeviceManufacturerKey = attribute.Key("device.manufacturer")
  3902. // DeviceModelIdentifierKey is the attribute Key conforming to the
  3903. // "device.model.identifier" semantic conventions. It represents the model
  3904. // identifier for the device.
  3905. //
  3906. // Type: string
  3907. // RequirementLevel: Recommended
  3908. // Stability: Development
  3909. //
  3910. // Examples: "iPhone3,4", "SM-G920F"
  3911. // Note: It's recommended this value represents a machine-readable version of
  3912. // the model identifier rather than the market or consumer-friendly name of the
  3913. // device.
  3914. DeviceModelIdentifierKey = attribute.Key("device.model.identifier")
  3915. // DeviceModelNameKey is the attribute Key conforming to the "device.model.name"
  3916. // semantic conventions. It represents the marketing name for the device model.
  3917. //
  3918. // Type: string
  3919. // RequirementLevel: Recommended
  3920. // Stability: Development
  3921. //
  3922. // Examples: "iPhone 6s Plus", "Samsung Galaxy S6"
  3923. // Note: It's recommended this value represents a human-readable version of the
  3924. // device model rather than a machine-readable alternative.
  3925. DeviceModelNameKey = attribute.Key("device.model.name")
  3926. )
  3927. // DeviceID returns an attribute KeyValue conforming to the "device.id" semantic
  3928. // conventions. It represents a unique identifier representing the device.
  3929. func DeviceID(val string) attribute.KeyValue {
  3930. return DeviceIDKey.String(val)
  3931. }
  3932. // DeviceManufacturer returns an attribute KeyValue conforming to the
  3933. // "device.manufacturer" semantic conventions. It represents the name of the
  3934. // device manufacturer.
  3935. func DeviceManufacturer(val string) attribute.KeyValue {
  3936. return DeviceManufacturerKey.String(val)
  3937. }
  3938. // DeviceModelIdentifier returns an attribute KeyValue conforming to the
  3939. // "device.model.identifier" semantic conventions. It represents the model
  3940. // identifier for the device.
  3941. func DeviceModelIdentifier(val string) attribute.KeyValue {
  3942. return DeviceModelIdentifierKey.String(val)
  3943. }
  3944. // DeviceModelName returns an attribute KeyValue conforming to the
  3945. // "device.model.name" semantic conventions. It represents the marketing name for
  3946. // the device model.
  3947. func DeviceModelName(val string) attribute.KeyValue {
  3948. return DeviceModelNameKey.String(val)
  3949. }
  3950. // Namespace: disk
  3951. const (
  3952. // DiskIODirectionKey is the attribute Key conforming to the "disk.io.direction"
  3953. // semantic conventions. It represents the disk IO operation direction.
  3954. //
  3955. // Type: Enum
  3956. // RequirementLevel: Recommended
  3957. // Stability: Development
  3958. //
  3959. // Examples: "read"
  3960. DiskIODirectionKey = attribute.Key("disk.io.direction")
  3961. )
  3962. // Enum values for disk.io.direction
  3963. var (
  3964. // read
  3965. // Stability: development
  3966. DiskIODirectionRead = DiskIODirectionKey.String("read")
  3967. // write
  3968. // Stability: development
  3969. DiskIODirectionWrite = DiskIODirectionKey.String("write")
  3970. )
  3971. // Namespace: dns
  3972. const (
  3973. // DNSQuestionNameKey is the attribute Key conforming to the "dns.question.name"
  3974. // semantic conventions. It represents the name being queried.
  3975. //
  3976. // Type: string
  3977. // RequirementLevel: Recommended
  3978. // Stability: Development
  3979. //
  3980. // Examples: "www.example.com", "opentelemetry.io"
  3981. // Note: If the name field contains non-printable characters (below 32 or above
  3982. // 126), those characters should be represented as escaped base 10 integers
  3983. // (\DDD). Back slashes and quotes should be escaped. Tabs, carriage returns,
  3984. // and line feeds should be converted to \t, \r, and \n respectively.
  3985. DNSQuestionNameKey = attribute.Key("dns.question.name")
  3986. )
  3987. // DNSQuestionName returns an attribute KeyValue conforming to the
  3988. // "dns.question.name" semantic conventions. It represents the name being
  3989. // queried.
  3990. func DNSQuestionName(val string) attribute.KeyValue {
  3991. return DNSQuestionNameKey.String(val)
  3992. }
  3993. // Namespace: elasticsearch
  3994. const (
  3995. // ElasticsearchNodeNameKey is the attribute Key conforming to the
  3996. // "elasticsearch.node.name" semantic conventions. It represents the represents
  3997. // the human-readable identifier of the node/instance to which a request was
  3998. // routed.
  3999. //
  4000. // Type: string
  4001. // RequirementLevel: Recommended
  4002. // Stability: Development
  4003. //
  4004. // Examples: "instance-0000000001"
  4005. ElasticsearchNodeNameKey = attribute.Key("elasticsearch.node.name")
  4006. )
  4007. // ElasticsearchNodeName returns an attribute KeyValue conforming to the
  4008. // "elasticsearch.node.name" semantic conventions. It represents the represents
  4009. // the human-readable identifier of the node/instance to which a request was
  4010. // routed.
  4011. func ElasticsearchNodeName(val string) attribute.KeyValue {
  4012. return ElasticsearchNodeNameKey.String(val)
  4013. }
  4014. // Namespace: enduser
  4015. const (
  4016. // EnduserIDKey is the attribute Key conforming to the "enduser.id" semantic
  4017. // conventions. It represents the unique identifier of an end user in the
  4018. // system. It maybe a username, email address, or other identifier.
  4019. //
  4020. // Type: string
  4021. // RequirementLevel: Recommended
  4022. // Stability: Development
  4023. //
  4024. // Examples: "username"
  4025. // Note: Unique identifier of an end user in the system.
  4026. //
  4027. // > [!Warning]
  4028. // > This field contains sensitive (PII) information.
  4029. EnduserIDKey = attribute.Key("enduser.id")
  4030. // EnduserPseudoIDKey is the attribute Key conforming to the "enduser.pseudo.id"
  4031. // semantic conventions. It represents the pseudonymous identifier of an end
  4032. // user. This identifier should be a random value that is not directly linked or
  4033. // associated with the end user's actual identity.
  4034. //
  4035. // Type: string
  4036. // RequirementLevel: Recommended
  4037. // Stability: Development
  4038. //
  4039. // Examples: "QdH5CAWJgqVT4rOr0qtumf"
  4040. // Note: Pseudonymous identifier of an end user.
  4041. //
  4042. // > [!Warning]
  4043. // > This field contains sensitive (linkable PII) information.
  4044. EnduserPseudoIDKey = attribute.Key("enduser.pseudo.id")
  4045. )
  4046. // EnduserID returns an attribute KeyValue conforming to the "enduser.id"
  4047. // semantic conventions. It represents the unique identifier of an end user in
  4048. // the system. It maybe a username, email address, or other identifier.
  4049. func EnduserID(val string) attribute.KeyValue {
  4050. return EnduserIDKey.String(val)
  4051. }
  4052. // EnduserPseudoID returns an attribute KeyValue conforming to the
  4053. // "enduser.pseudo.id" semantic conventions. It represents the pseudonymous
  4054. // identifier of an end user. This identifier should be a random value that is
  4055. // not directly linked or associated with the end user's actual identity.
  4056. func EnduserPseudoID(val string) attribute.KeyValue {
  4057. return EnduserPseudoIDKey.String(val)
  4058. }
  4059. // Namespace: error
  4060. const (
  4061. // ErrorMessageKey is the attribute Key conforming to the "error.message"
  4062. // semantic conventions. It represents a message providing more detail about an
  4063. // error in human-readable form.
  4064. //
  4065. // Type: string
  4066. // RequirementLevel: Recommended
  4067. // Stability: Development
  4068. //
  4069. // Examples: "Unexpected input type: string", "The user has exceeded their
  4070. // storage quota"
  4071. // Note: `error.message` should provide additional context and detail about an
  4072. // error.
  4073. // It is NOT RECOMMENDED to duplicate the value of `error.type` in
  4074. // `error.message`.
  4075. // It is also NOT RECOMMENDED to duplicate the value of `exception.message` in
  4076. // `error.message`.
  4077. //
  4078. // `error.message` is NOT RECOMMENDED for metrics or spans due to its unbounded
  4079. // cardinality and overlap with span status.
  4080. ErrorMessageKey = attribute.Key("error.message")
  4081. // ErrorTypeKey is the attribute Key conforming to the "error.type" semantic
  4082. // conventions. It represents the describes a class of error the operation ended
  4083. // with.
  4084. //
  4085. // Type: Enum
  4086. // RequirementLevel: Recommended
  4087. // Stability: Stable
  4088. //
  4089. // Examples: "timeout", "java.net.UnknownHostException",
  4090. // "server_certificate_invalid", "500"
  4091. // Note: The `error.type` SHOULD be predictable, and SHOULD have low
  4092. // cardinality.
  4093. //
  4094. // When `error.type` is set to a type (e.g., an exception type), its
  4095. // canonical class name identifying the type within the artifact SHOULD be used.
  4096. //
  4097. // Instrumentations SHOULD document the list of errors they report.
  4098. //
  4099. // The cardinality of `error.type` within one instrumentation library SHOULD be
  4100. // low.
  4101. // Telemetry consumers that aggregate data from multiple instrumentation
  4102. // libraries and applications
  4103. // should be prepared for `error.type` to have high cardinality at query time
  4104. // when no
  4105. // additional filters are applied.
  4106. //
  4107. // If the operation has completed successfully, instrumentations SHOULD NOT set
  4108. // `error.type`.
  4109. //
  4110. // If a specific domain defines its own set of error identifiers (such as HTTP
  4111. // or gRPC status codes),
  4112. // it's RECOMMENDED to:
  4113. //
  4114. // - Use a domain-specific attribute
  4115. // - Set `error.type` to capture all errors, regardless of whether they are
  4116. // defined within the domain-specific set or not.
  4117. ErrorTypeKey = attribute.Key("error.type")
  4118. )
  4119. // ErrorMessage returns an attribute KeyValue conforming to the "error.message"
  4120. // semantic conventions. It represents a message providing more detail about an
  4121. // error in human-readable form.
  4122. func ErrorMessage(val string) attribute.KeyValue {
  4123. return ErrorMessageKey.String(val)
  4124. }
  4125. // Enum values for error.type
  4126. var (
  4127. // A fallback error value to be used when the instrumentation doesn't define a
  4128. // custom value.
  4129. //
  4130. // Stability: stable
  4131. ErrorTypeOther = ErrorTypeKey.String("_OTHER")
  4132. )
  4133. // Namespace: exception
  4134. const (
  4135. // ExceptionMessageKey is the attribute Key conforming to the
  4136. // "exception.message" semantic conventions. It represents the exception
  4137. // message.
  4138. //
  4139. // Type: string
  4140. // RequirementLevel: Recommended
  4141. // Stability: Stable
  4142. //
  4143. // Examples: "Division by zero", "Can't convert 'int' object to str implicitly"
  4144. ExceptionMessageKey = attribute.Key("exception.message")
  4145. // ExceptionStacktraceKey is the attribute Key conforming to the
  4146. // "exception.stacktrace" semantic conventions. It represents a stacktrace as a
  4147. // string in the natural representation for the language runtime. The
  4148. // representation is to be determined and documented by each language SIG.
  4149. //
  4150. // Type: string
  4151. // RequirementLevel: Recommended
  4152. // Stability: Stable
  4153. //
  4154. // Examples: Exception in thread "main" java.lang.RuntimeException: Test
  4155. // exception\n at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at
  4156. // com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at
  4157. // com.example.GenerateTrace.main(GenerateTrace.java:5)
  4158. ExceptionStacktraceKey = attribute.Key("exception.stacktrace")
  4159. // ExceptionTypeKey is the attribute Key conforming to the "exception.type"
  4160. // semantic conventions. It represents the type of the exception (its
  4161. // fully-qualified class name, if applicable). The dynamic type of the exception
  4162. // should be preferred over the static type in languages that support it.
  4163. //
  4164. // Type: string
  4165. // RequirementLevel: Recommended
  4166. // Stability: Stable
  4167. //
  4168. // Examples: "java.net.ConnectException", "OSError"
  4169. ExceptionTypeKey = attribute.Key("exception.type")
  4170. )
  4171. // ExceptionMessage returns an attribute KeyValue conforming to the
  4172. // "exception.message" semantic conventions. It represents the exception message.
  4173. func ExceptionMessage(val string) attribute.KeyValue {
  4174. return ExceptionMessageKey.String(val)
  4175. }
  4176. // ExceptionStacktrace returns an attribute KeyValue conforming to the
  4177. // "exception.stacktrace" semantic conventions. It represents a stacktrace as a
  4178. // string in the natural representation for the language runtime. The
  4179. // representation is to be determined and documented by each language SIG.
  4180. func ExceptionStacktrace(val string) attribute.KeyValue {
  4181. return ExceptionStacktraceKey.String(val)
  4182. }
  4183. // ExceptionType returns an attribute KeyValue conforming to the "exception.type"
  4184. // semantic conventions. It represents the type of the exception (its
  4185. // fully-qualified class name, if applicable). The dynamic type of the exception
  4186. // should be preferred over the static type in languages that support it.
  4187. func ExceptionType(val string) attribute.KeyValue {
  4188. return ExceptionTypeKey.String(val)
  4189. }
  4190. // Namespace: faas
  4191. const (
  4192. // FaaSColdstartKey is the attribute Key conforming to the "faas.coldstart"
  4193. // semantic conventions. It represents a boolean that is true if the serverless
  4194. // function is executed for the first time (aka cold-start).
  4195. //
  4196. // Type: boolean
  4197. // RequirementLevel: Recommended
  4198. // Stability: Development
  4199. //
  4200. // Examples:
  4201. FaaSColdstartKey = attribute.Key("faas.coldstart")
  4202. // FaaSCronKey is the attribute Key conforming to the "faas.cron" semantic
  4203. // conventions. It represents a string containing the schedule period as
  4204. // [Cron Expression].
  4205. //
  4206. // Type: string
  4207. // RequirementLevel: Recommended
  4208. // Stability: Development
  4209. //
  4210. // Examples: 0/5 * * * ? *
  4211. //
  4212. // [Cron Expression]: https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm
  4213. FaaSCronKey = attribute.Key("faas.cron")
  4214. // FaaSDocumentCollectionKey is the attribute Key conforming to the
  4215. // "faas.document.collection" semantic conventions. It represents the name of
  4216. // the source on which the triggering operation was performed. For example, in
  4217. // Cloud Storage or S3 corresponds to the bucket name, and in Cosmos DB to the
  4218. // database name.
  4219. //
  4220. // Type: string
  4221. // RequirementLevel: Recommended
  4222. // Stability: Development
  4223. //
  4224. // Examples: "myBucketName", "myDbName"
  4225. FaaSDocumentCollectionKey = attribute.Key("faas.document.collection")
  4226. // FaaSDocumentNameKey is the attribute Key conforming to the
  4227. // "faas.document.name" semantic conventions. It represents the document
  4228. // name/table subjected to the operation. For example, in Cloud Storage or S3 is
  4229. // the name of the file, and in Cosmos DB the table name.
  4230. //
  4231. // Type: string
  4232. // RequirementLevel: Recommended
  4233. // Stability: Development
  4234. //
  4235. // Examples: "myFile.txt", "myTableName"
  4236. FaaSDocumentNameKey = attribute.Key("faas.document.name")
  4237. // FaaSDocumentOperationKey is the attribute Key conforming to the
  4238. // "faas.document.operation" semantic conventions. It represents the describes
  4239. // the type of the operation that was performed on the data.
  4240. //
  4241. // Type: Enum
  4242. // RequirementLevel: Recommended
  4243. // Stability: Development
  4244. //
  4245. // Examples:
  4246. FaaSDocumentOperationKey = attribute.Key("faas.document.operation")
  4247. // FaaSDocumentTimeKey is the attribute Key conforming to the
  4248. // "faas.document.time" semantic conventions. It represents a string containing
  4249. // the time when the data was accessed in the [ISO 8601] format expressed in
  4250. // [UTC].
  4251. //
  4252. // Type: string
  4253. // RequirementLevel: Recommended
  4254. // Stability: Development
  4255. //
  4256. // Examples: 2020-01-23T13:47:06Z
  4257. //
  4258. // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
  4259. // [UTC]: https://www.w3.org/TR/NOTE-datetime
  4260. FaaSDocumentTimeKey = attribute.Key("faas.document.time")
  4261. // FaaSInstanceKey is the attribute Key conforming to the "faas.instance"
  4262. // semantic conventions. It represents the execution environment ID as a string,
  4263. // that will be potentially reused for other invocations to the same
  4264. // function/function version.
  4265. //
  4266. // Type: string
  4267. // RequirementLevel: Recommended
  4268. // Stability: Development
  4269. //
  4270. // Examples: "2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de"
  4271. // Note: - **AWS Lambda:** Use the (full) log stream name.
  4272. FaaSInstanceKey = attribute.Key("faas.instance")
  4273. // FaaSInvocationIDKey is the attribute Key conforming to the
  4274. // "faas.invocation_id" semantic conventions. It represents the invocation ID of
  4275. // the current function invocation.
  4276. //
  4277. // Type: string
  4278. // RequirementLevel: Recommended
  4279. // Stability: Development
  4280. //
  4281. // Examples: af9d5aa4-a685-4c5f-a22b-444f80b3cc28
  4282. FaaSInvocationIDKey = attribute.Key("faas.invocation_id")
  4283. // FaaSInvokedNameKey is the attribute Key conforming to the "faas.invoked_name"
  4284. // semantic conventions. It represents the name of the invoked function.
  4285. //
  4286. // Type: string
  4287. // RequirementLevel: Recommended
  4288. // Stability: Development
  4289. //
  4290. // Examples: my-function
  4291. // Note: SHOULD be equal to the `faas.name` resource attribute of the invoked
  4292. // function.
  4293. FaaSInvokedNameKey = attribute.Key("faas.invoked_name")
  4294. // FaaSInvokedProviderKey is the attribute Key conforming to the
  4295. // "faas.invoked_provider" semantic conventions. It represents the cloud
  4296. // provider of the invoked function.
  4297. //
  4298. // Type: Enum
  4299. // RequirementLevel: Recommended
  4300. // Stability: Development
  4301. //
  4302. // Examples:
  4303. // Note: SHOULD be equal to the `cloud.provider` resource attribute of the
  4304. // invoked function.
  4305. FaaSInvokedProviderKey = attribute.Key("faas.invoked_provider")
  4306. // FaaSInvokedRegionKey is the attribute Key conforming to the
  4307. // "faas.invoked_region" semantic conventions. It represents the cloud region of
  4308. // the invoked function.
  4309. //
  4310. // Type: string
  4311. // RequirementLevel: Recommended
  4312. // Stability: Development
  4313. //
  4314. // Examples: eu-central-1
  4315. // Note: SHOULD be equal to the `cloud.region` resource attribute of the invoked
  4316. // function.
  4317. FaaSInvokedRegionKey = attribute.Key("faas.invoked_region")
  4318. // FaaSMaxMemoryKey is the attribute Key conforming to the "faas.max_memory"
  4319. // semantic conventions. It represents the amount of memory available to the
  4320. // serverless function converted to Bytes.
  4321. //
  4322. // Type: int
  4323. // RequirementLevel: Recommended
  4324. // Stability: Development
  4325. //
  4326. // Note: It's recommended to set this attribute since e.g. too little memory can
  4327. // easily stop a Java AWS Lambda function from working correctly. On AWS Lambda,
  4328. // the environment variable `AWS_LAMBDA_FUNCTION_MEMORY_SIZE` provides this
  4329. // information (which must be multiplied by 1,048,576).
  4330. FaaSMaxMemoryKey = attribute.Key("faas.max_memory")
  4331. // FaaSNameKey is the attribute Key conforming to the "faas.name" semantic
  4332. // conventions. It represents the name of the single function that this runtime
  4333. // instance executes.
  4334. //
  4335. // Type: string
  4336. // RequirementLevel: Recommended
  4337. // Stability: Development
  4338. //
  4339. // Examples: "my-function", "myazurefunctionapp/some-function-name"
  4340. // Note: This is the name of the function as configured/deployed on the FaaS
  4341. // platform and is usually different from the name of the callback
  4342. // function (which may be stored in the
  4343. // [`code.namespace`/`code.function.name`]
  4344. // span attributes).
  4345. //
  4346. // For some cloud providers, the above definition is ambiguous. The following
  4347. // definition of function name MUST be used for this attribute
  4348. // (and consequently the span name) for the listed cloud providers/products:
  4349. //
  4350. // - **Azure:** The full name `<FUNCAPP>/<FUNC>`, i.e., function app name
  4351. // followed by a forward slash followed by the function name (this form
  4352. // can also be seen in the resource JSON for the function).
  4353. // This means that a span attribute MUST be used, as an Azure function
  4354. // app can host multiple functions that would usually share
  4355. // a TracerProvider (see also the `cloud.resource_id` attribute).
  4356. //
  4357. //
  4358. // [`code.namespace`/`code.function.name`]: /docs/general/attributes.md#source-code-attributes
  4359. FaaSNameKey = attribute.Key("faas.name")
  4360. // FaaSTimeKey is the attribute Key conforming to the "faas.time" semantic
  4361. // conventions. It represents a string containing the function invocation time
  4362. // in the [ISO 8601] format expressed in [UTC].
  4363. //
  4364. // Type: string
  4365. // RequirementLevel: Recommended
  4366. // Stability: Development
  4367. //
  4368. // Examples: 2020-01-23T13:47:06Z
  4369. //
  4370. // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
  4371. // [UTC]: https://www.w3.org/TR/NOTE-datetime
  4372. FaaSTimeKey = attribute.Key("faas.time")
  4373. // FaaSTriggerKey is the attribute Key conforming to the "faas.trigger" semantic
  4374. // conventions. It represents the type of the trigger which caused this function
  4375. // invocation.
  4376. //
  4377. // Type: Enum
  4378. // RequirementLevel: Recommended
  4379. // Stability: Development
  4380. //
  4381. // Examples:
  4382. FaaSTriggerKey = attribute.Key("faas.trigger")
  4383. // FaaSVersionKey is the attribute Key conforming to the "faas.version" semantic
  4384. // conventions. It represents the immutable version of the function being
  4385. // executed.
  4386. //
  4387. // Type: string
  4388. // RequirementLevel: Recommended
  4389. // Stability: Development
  4390. //
  4391. // Examples: "26", "pinkfroid-00002"
  4392. // Note: Depending on the cloud provider and platform, use:
  4393. //
  4394. // - **AWS Lambda:** The [function version]
  4395. // (an integer represented as a decimal string).
  4396. // - **Google Cloud Run (Services):** The [revision]
  4397. // (i.e., the function name plus the revision suffix).
  4398. // - **Google Cloud Functions:** The value of the
  4399. // [`K_REVISION` environment variable].
  4400. // - **Azure Functions:** Not applicable. Do not set this attribute.
  4401. //
  4402. //
  4403. // [function version]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html
  4404. // [revision]: https://cloud.google.com/run/docs/managing/revisions
  4405. // [`K_REVISION` environment variable]: https://cloud.google.com/functions/docs/env-var#runtime_environment_variables_set_automatically
  4406. FaaSVersionKey = attribute.Key("faas.version")
  4407. )
  4408. // FaaSColdstart returns an attribute KeyValue conforming to the "faas.coldstart"
  4409. // semantic conventions. It represents a boolean that is true if the serverless
  4410. // function is executed for the first time (aka cold-start).
  4411. func FaaSColdstart(val bool) attribute.KeyValue {
  4412. return FaaSColdstartKey.Bool(val)
  4413. }
  4414. // FaaSCron returns an attribute KeyValue conforming to the "faas.cron" semantic
  4415. // conventions. It represents a string containing the schedule period as
  4416. // [Cron Expression].
  4417. //
  4418. // [Cron Expression]: https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm
  4419. func FaaSCron(val string) attribute.KeyValue {
  4420. return FaaSCronKey.String(val)
  4421. }
  4422. // FaaSDocumentCollection returns an attribute KeyValue conforming to the
  4423. // "faas.document.collection" semantic conventions. It represents the name of the
  4424. // source on which the triggering operation was performed. For example, in Cloud
  4425. // Storage or S3 corresponds to the bucket name, and in Cosmos DB to the database
  4426. // name.
  4427. func FaaSDocumentCollection(val string) attribute.KeyValue {
  4428. return FaaSDocumentCollectionKey.String(val)
  4429. }
  4430. // FaaSDocumentName returns an attribute KeyValue conforming to the
  4431. // "faas.document.name" semantic conventions. It represents the document
  4432. // name/table subjected to the operation. For example, in Cloud Storage or S3 is
  4433. // the name of the file, and in Cosmos DB the table name.
  4434. func FaaSDocumentName(val string) attribute.KeyValue {
  4435. return FaaSDocumentNameKey.String(val)
  4436. }
  4437. // FaaSDocumentTime returns an attribute KeyValue conforming to the
  4438. // "faas.document.time" semantic conventions. It represents a string containing
  4439. // the time when the data was accessed in the [ISO 8601] format expressed in
  4440. // [UTC].
  4441. //
  4442. // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
  4443. // [UTC]: https://www.w3.org/TR/NOTE-datetime
  4444. func FaaSDocumentTime(val string) attribute.KeyValue {
  4445. return FaaSDocumentTimeKey.String(val)
  4446. }
  4447. // FaaSInstance returns an attribute KeyValue conforming to the "faas.instance"
  4448. // semantic conventions. It represents the execution environment ID as a string,
  4449. // that will be potentially reused for other invocations to the same
  4450. // function/function version.
  4451. func FaaSInstance(val string) attribute.KeyValue {
  4452. return FaaSInstanceKey.String(val)
  4453. }
  4454. // FaaSInvocationID returns an attribute KeyValue conforming to the
  4455. // "faas.invocation_id" semantic conventions. It represents the invocation ID of
  4456. // the current function invocation.
  4457. func FaaSInvocationID(val string) attribute.KeyValue {
  4458. return FaaSInvocationIDKey.String(val)
  4459. }
  4460. // FaaSInvokedName returns an attribute KeyValue conforming to the
  4461. // "faas.invoked_name" semantic conventions. It represents the name of the
  4462. // invoked function.
  4463. func FaaSInvokedName(val string) attribute.KeyValue {
  4464. return FaaSInvokedNameKey.String(val)
  4465. }
  4466. // FaaSInvokedRegion returns an attribute KeyValue conforming to the
  4467. // "faas.invoked_region" semantic conventions. It represents the cloud region of
  4468. // the invoked function.
  4469. func FaaSInvokedRegion(val string) attribute.KeyValue {
  4470. return FaaSInvokedRegionKey.String(val)
  4471. }
  4472. // FaaSMaxMemory returns an attribute KeyValue conforming to the
  4473. // "faas.max_memory" semantic conventions. It represents the amount of memory
  4474. // available to the serverless function converted to Bytes.
  4475. func FaaSMaxMemory(val int) attribute.KeyValue {
  4476. return FaaSMaxMemoryKey.Int(val)
  4477. }
  4478. // FaaSName returns an attribute KeyValue conforming to the "faas.name" semantic
  4479. // conventions. It represents the name of the single function that this runtime
  4480. // instance executes.
  4481. func FaaSName(val string) attribute.KeyValue {
  4482. return FaaSNameKey.String(val)
  4483. }
  4484. // FaaSTime returns an attribute KeyValue conforming to the "faas.time" semantic
  4485. // conventions. It represents a string containing the function invocation time in
  4486. // the [ISO 8601] format expressed in [UTC].
  4487. //
  4488. // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
  4489. // [UTC]: https://www.w3.org/TR/NOTE-datetime
  4490. func FaaSTime(val string) attribute.KeyValue {
  4491. return FaaSTimeKey.String(val)
  4492. }
  4493. // FaaSVersion returns an attribute KeyValue conforming to the "faas.version"
  4494. // semantic conventions. It represents the immutable version of the function
  4495. // being executed.
  4496. func FaaSVersion(val string) attribute.KeyValue {
  4497. return FaaSVersionKey.String(val)
  4498. }
  4499. // Enum values for faas.document.operation
  4500. var (
  4501. // When a new object is created.
  4502. // Stability: development
  4503. FaaSDocumentOperationInsert = FaaSDocumentOperationKey.String("insert")
  4504. // When an object is modified.
  4505. // Stability: development
  4506. FaaSDocumentOperationEdit = FaaSDocumentOperationKey.String("edit")
  4507. // When an object is deleted.
  4508. // Stability: development
  4509. FaaSDocumentOperationDelete = FaaSDocumentOperationKey.String("delete")
  4510. )
  4511. // Enum values for faas.invoked_provider
  4512. var (
  4513. // Alibaba Cloud
  4514. // Stability: development
  4515. FaaSInvokedProviderAlibabaCloud = FaaSInvokedProviderKey.String("alibaba_cloud")
  4516. // Amazon Web Services
  4517. // Stability: development
  4518. FaaSInvokedProviderAWS = FaaSInvokedProviderKey.String("aws")
  4519. // Microsoft Azure
  4520. // Stability: development
  4521. FaaSInvokedProviderAzure = FaaSInvokedProviderKey.String("azure")
  4522. // Google Cloud Platform
  4523. // Stability: development
  4524. FaaSInvokedProviderGCP = FaaSInvokedProviderKey.String("gcp")
  4525. // Tencent Cloud
  4526. // Stability: development
  4527. FaaSInvokedProviderTencentCloud = FaaSInvokedProviderKey.String("tencent_cloud")
  4528. )
  4529. // Enum values for faas.trigger
  4530. var (
  4531. // A response to some data source operation such as a database or filesystem
  4532. // read/write
  4533. // Stability: development
  4534. FaaSTriggerDatasource = FaaSTriggerKey.String("datasource")
  4535. // To provide an answer to an inbound HTTP request
  4536. // Stability: development
  4537. FaaSTriggerHTTP = FaaSTriggerKey.String("http")
  4538. // A function is set to be executed when messages are sent to a messaging system
  4539. // Stability: development
  4540. FaaSTriggerPubSub = FaaSTriggerKey.String("pubsub")
  4541. // A function is scheduled to be executed regularly
  4542. // Stability: development
  4543. FaaSTriggerTimer = FaaSTriggerKey.String("timer")
  4544. // If none of the others apply
  4545. // Stability: development
  4546. FaaSTriggerOther = FaaSTriggerKey.String("other")
  4547. )
  4548. // Namespace: feature_flag
  4549. const (
  4550. // FeatureFlagContextIDKey is the attribute Key conforming to the
  4551. // "feature_flag.context.id" semantic conventions. It represents the unique
  4552. // identifier for the flag evaluation context. For example, the targeting key.
  4553. //
  4554. // Type: string
  4555. // RequirementLevel: Recommended
  4556. // Stability: Development
  4557. //
  4558. // Examples: "5157782b-2203-4c80-a857-dbbd5e7761db"
  4559. FeatureFlagContextIDKey = attribute.Key("feature_flag.context.id")
  4560. // FeatureFlagKeyKey is the attribute Key conforming to the "feature_flag.key"
  4561. // semantic conventions. It represents the lookup key of the feature flag.
  4562. //
  4563. // Type: string
  4564. // RequirementLevel: Recommended
  4565. // Stability: Development
  4566. //
  4567. // Examples: "logo-color"
  4568. FeatureFlagKeyKey = attribute.Key("feature_flag.key")
  4569. // FeatureFlagProviderNameKey is the attribute Key conforming to the
  4570. // "feature_flag.provider.name" semantic conventions. It represents the
  4571. // identifies the feature flag provider.
  4572. //
  4573. // Type: string
  4574. // RequirementLevel: Recommended
  4575. // Stability: Development
  4576. //
  4577. // Examples: "Flag Manager"
  4578. FeatureFlagProviderNameKey = attribute.Key("feature_flag.provider.name")
  4579. // FeatureFlagResultReasonKey is the attribute Key conforming to the
  4580. // "feature_flag.result.reason" semantic conventions. It represents the reason
  4581. // code which shows how a feature flag value was determined.
  4582. //
  4583. // Type: Enum
  4584. // RequirementLevel: Recommended
  4585. // Stability: Development
  4586. //
  4587. // Examples: "static", "targeting_match", "error", "default"
  4588. FeatureFlagResultReasonKey = attribute.Key("feature_flag.result.reason")
  4589. // FeatureFlagResultValueKey is the attribute Key conforming to the
  4590. // "feature_flag.result.value" semantic conventions. It represents the evaluated
  4591. // value of the feature flag.
  4592. //
  4593. // Type: any
  4594. // RequirementLevel: Recommended
  4595. // Stability: Development
  4596. //
  4597. // Examples: "#ff0000", true, 3
  4598. // Note: With some feature flag providers, feature flag results can be quite
  4599. // large or contain private or sensitive details.
  4600. // Because of this, `feature_flag.result.variant` is often the preferred
  4601. // attribute if it is available.
  4602. //
  4603. // It may be desirable to redact or otherwise limit the size and scope of
  4604. // `feature_flag.result.value` if possible.
  4605. // Because the evaluated flag value is unstructured and may be any type, it is
  4606. // left to the instrumentation author to determine how best to achieve this.
  4607. FeatureFlagResultValueKey = attribute.Key("feature_flag.result.value")
  4608. // FeatureFlagResultVariantKey is the attribute Key conforming to the
  4609. // "feature_flag.result.variant" semantic conventions. It represents a semantic
  4610. // identifier for an evaluated flag value.
  4611. //
  4612. // Type: string
  4613. // RequirementLevel: Recommended
  4614. // Stability: Development
  4615. //
  4616. // Examples: "red", "true", "on"
  4617. // Note: A semantic identifier, commonly referred to as a variant, provides a
  4618. // means
  4619. // for referring to a value without including the value itself. This can
  4620. // provide additional context for understanding the meaning behind a value.
  4621. // For example, the variant `red` maybe be used for the value `#c05543`.
  4622. FeatureFlagResultVariantKey = attribute.Key("feature_flag.result.variant")
  4623. // FeatureFlagSetIDKey is the attribute Key conforming to the
  4624. // "feature_flag.set.id" semantic conventions. It represents the identifier of
  4625. // the [flag set] to which the feature flag belongs.
  4626. //
  4627. // Type: string
  4628. // RequirementLevel: Recommended
  4629. // Stability: Development
  4630. //
  4631. // Examples: "proj-1", "ab98sgs", "service1/dev"
  4632. //
  4633. // [flag set]: https://openfeature.dev/specification/glossary/#flag-set
  4634. FeatureFlagSetIDKey = attribute.Key("feature_flag.set.id")
  4635. // FeatureFlagVersionKey is the attribute Key conforming to the
  4636. // "feature_flag.version" semantic conventions. It represents the version of the
  4637. // ruleset used during the evaluation. This may be any stable value which
  4638. // uniquely identifies the ruleset.
  4639. //
  4640. // Type: string
  4641. // RequirementLevel: Recommended
  4642. // Stability: Development
  4643. //
  4644. // Examples: "1", "01ABCDEF"
  4645. FeatureFlagVersionKey = attribute.Key("feature_flag.version")
  4646. )
  4647. // FeatureFlagContextID returns an attribute KeyValue conforming to the
  4648. // "feature_flag.context.id" semantic conventions. It represents the unique
  4649. // identifier for the flag evaluation context. For example, the targeting key.
  4650. func FeatureFlagContextID(val string) attribute.KeyValue {
  4651. return FeatureFlagContextIDKey.String(val)
  4652. }
  4653. // FeatureFlagKey returns an attribute KeyValue conforming to the
  4654. // "feature_flag.key" semantic conventions. It represents the lookup key of the
  4655. // feature flag.
  4656. func FeatureFlagKey(val string) attribute.KeyValue {
  4657. return FeatureFlagKeyKey.String(val)
  4658. }
  4659. // FeatureFlagProviderName returns an attribute KeyValue conforming to the
  4660. // "feature_flag.provider.name" semantic conventions. It represents the
  4661. // identifies the feature flag provider.
  4662. func FeatureFlagProviderName(val string) attribute.KeyValue {
  4663. return FeatureFlagProviderNameKey.String(val)
  4664. }
  4665. // FeatureFlagResultVariant returns an attribute KeyValue conforming to the
  4666. // "feature_flag.result.variant" semantic conventions. It represents a semantic
  4667. // identifier for an evaluated flag value.
  4668. func FeatureFlagResultVariant(val string) attribute.KeyValue {
  4669. return FeatureFlagResultVariantKey.String(val)
  4670. }
  4671. // FeatureFlagSetID returns an attribute KeyValue conforming to the
  4672. // "feature_flag.set.id" semantic conventions. It represents the identifier of
  4673. // the [flag set] to which the feature flag belongs.
  4674. //
  4675. // [flag set]: https://openfeature.dev/specification/glossary/#flag-set
  4676. func FeatureFlagSetID(val string) attribute.KeyValue {
  4677. return FeatureFlagSetIDKey.String(val)
  4678. }
  4679. // FeatureFlagVersion returns an attribute KeyValue conforming to the
  4680. // "feature_flag.version" semantic conventions. It represents the version of the
  4681. // ruleset used during the evaluation. This may be any stable value which
  4682. // uniquely identifies the ruleset.
  4683. func FeatureFlagVersion(val string) attribute.KeyValue {
  4684. return FeatureFlagVersionKey.String(val)
  4685. }
  4686. // Enum values for feature_flag.result.reason
  4687. var (
  4688. // The resolved value is static (no dynamic evaluation).
  4689. // Stability: development
  4690. FeatureFlagResultReasonStatic = FeatureFlagResultReasonKey.String("static")
  4691. // The resolved value fell back to a pre-configured value (no dynamic evaluation
  4692. // occurred or dynamic evaluation yielded no result).
  4693. // Stability: development
  4694. FeatureFlagResultReasonDefault = FeatureFlagResultReasonKey.String("default")
  4695. // The resolved value was the result of a dynamic evaluation, such as a rule or
  4696. // specific user-targeting.
  4697. // Stability: development
  4698. FeatureFlagResultReasonTargetingMatch = FeatureFlagResultReasonKey.String("targeting_match")
  4699. // The resolved value was the result of pseudorandom assignment.
  4700. // Stability: development
  4701. FeatureFlagResultReasonSplit = FeatureFlagResultReasonKey.String("split")
  4702. // The resolved value was retrieved from cache.
  4703. // Stability: development
  4704. FeatureFlagResultReasonCached = FeatureFlagResultReasonKey.String("cached")
  4705. // The resolved value was the result of the flag being disabled in the
  4706. // management system.
  4707. // Stability: development
  4708. FeatureFlagResultReasonDisabled = FeatureFlagResultReasonKey.String("disabled")
  4709. // The reason for the resolved value could not be determined.
  4710. // Stability: development
  4711. FeatureFlagResultReasonUnknown = FeatureFlagResultReasonKey.String("unknown")
  4712. // The resolved value is non-authoritative or possibly out of date
  4713. // Stability: development
  4714. FeatureFlagResultReasonStale = FeatureFlagResultReasonKey.String("stale")
  4715. // The resolved value was the result of an error.
  4716. // Stability: development
  4717. FeatureFlagResultReasonError = FeatureFlagResultReasonKey.String("error")
  4718. )
  4719. // Namespace: file
  4720. const (
  4721. // FileAccessedKey is the attribute Key conforming to the "file.accessed"
  4722. // semantic conventions. It represents the time when the file was last accessed,
  4723. // in ISO 8601 format.
  4724. //
  4725. // Type: string
  4726. // RequirementLevel: Recommended
  4727. // Stability: Development
  4728. //
  4729. // Examples: "2021-01-01T12:00:00Z"
  4730. // Note: This attribute might not be supported by some file systems — NFS,
  4731. // FAT32, in embedded OS, etc.
  4732. FileAccessedKey = attribute.Key("file.accessed")
  4733. // FileAttributesKey is the attribute Key conforming to the "file.attributes"
  4734. // semantic conventions. It represents the array of file attributes.
  4735. //
  4736. // Type: string[]
  4737. // RequirementLevel: Recommended
  4738. // Stability: Development
  4739. //
  4740. // Examples: "readonly", "hidden"
  4741. // Note: Attributes names depend on the OS or file system. Here’s a
  4742. // non-exhaustive list of values expected for this attribute: `archive`,
  4743. // `compressed`, `directory`, `encrypted`, `execute`, `hidden`, `immutable`,
  4744. // `journaled`, `read`, `readonly`, `symbolic link`, `system`, `temporary`,
  4745. // `write`.
  4746. FileAttributesKey = attribute.Key("file.attributes")
  4747. // FileChangedKey is the attribute Key conforming to the "file.changed" semantic
  4748. // conventions. It represents the time when the file attributes or metadata was
  4749. // last changed, in ISO 8601 format.
  4750. //
  4751. // Type: string
  4752. // RequirementLevel: Recommended
  4753. // Stability: Development
  4754. //
  4755. // Examples: "2021-01-01T12:00:00Z"
  4756. // Note: `file.changed` captures the time when any of the file's properties or
  4757. // attributes (including the content) are changed, while `file.modified`
  4758. // captures the timestamp when the file content is modified.
  4759. FileChangedKey = attribute.Key("file.changed")
  4760. // FileCreatedKey is the attribute Key conforming to the "file.created" semantic
  4761. // conventions. It represents the time when the file was created, in ISO 8601
  4762. // format.
  4763. //
  4764. // Type: string
  4765. // RequirementLevel: Recommended
  4766. // Stability: Development
  4767. //
  4768. // Examples: "2021-01-01T12:00:00Z"
  4769. // Note: This attribute might not be supported by some file systems — NFS,
  4770. // FAT32, in embedded OS, etc.
  4771. FileCreatedKey = attribute.Key("file.created")
  4772. // FileDirectoryKey is the attribute Key conforming to the "file.directory"
  4773. // semantic conventions. It represents the directory where the file is located.
  4774. // It should include the drive letter, when appropriate.
  4775. //
  4776. // Type: string
  4777. // RequirementLevel: Recommended
  4778. // Stability: Development
  4779. //
  4780. // Examples: "/home/user", "C:\Program Files\MyApp"
  4781. FileDirectoryKey = attribute.Key("file.directory")
  4782. // FileExtensionKey is the attribute Key conforming to the "file.extension"
  4783. // semantic conventions. It represents the file extension, excluding the leading
  4784. // dot.
  4785. //
  4786. // Type: string
  4787. // RequirementLevel: Recommended
  4788. // Stability: Development
  4789. //
  4790. // Examples: "png", "gz"
  4791. // Note: When the file name has multiple extensions (example.tar.gz), only the
  4792. // last one should be captured ("gz", not "tar.gz").
  4793. FileExtensionKey = attribute.Key("file.extension")
  4794. // FileForkNameKey is the attribute Key conforming to the "file.fork_name"
  4795. // semantic conventions. It represents the name of the fork. A fork is
  4796. // additional data associated with a filesystem object.
  4797. //
  4798. // Type: string
  4799. // RequirementLevel: Recommended
  4800. // Stability: Development
  4801. //
  4802. // Examples: "Zone.Identifer"
  4803. // Note: On Linux, a resource fork is used to store additional data with a
  4804. // filesystem object. A file always has at least one fork for the data portion,
  4805. // and additional forks may exist.
  4806. // On NTFS, this is analogous to an Alternate Data Stream (ADS), and the default
  4807. // data stream for a file is just called $DATA. Zone.Identifier is commonly used
  4808. // by Windows to track contents downloaded from the Internet. An ADS is
  4809. // typically of the form: C:\path\to\filename.extension:some_fork_name, and
  4810. // some_fork_name is the value that should populate `fork_name`.
  4811. // `filename.extension` should populate `file.name`, and `extension` should
  4812. // populate `file.extension`. The full path, `file.path`, will include the fork
  4813. // name.
  4814. FileForkNameKey = attribute.Key("file.fork_name")
  4815. // FileGroupIDKey is the attribute Key conforming to the "file.group.id"
  4816. // semantic conventions. It represents the primary Group ID (GID) of the file.
  4817. //
  4818. // Type: string
  4819. // RequirementLevel: Recommended
  4820. // Stability: Development
  4821. //
  4822. // Examples: "1000"
  4823. FileGroupIDKey = attribute.Key("file.group.id")
  4824. // FileGroupNameKey is the attribute Key conforming to the "file.group.name"
  4825. // semantic conventions. It represents the primary group name of the file.
  4826. //
  4827. // Type: string
  4828. // RequirementLevel: Recommended
  4829. // Stability: Development
  4830. //
  4831. // Examples: "users"
  4832. FileGroupNameKey = attribute.Key("file.group.name")
  4833. // FileInodeKey is the attribute Key conforming to the "file.inode" semantic
  4834. // conventions. It represents the inode representing the file in the filesystem.
  4835. //
  4836. // Type: string
  4837. // RequirementLevel: Recommended
  4838. // Stability: Development
  4839. //
  4840. // Examples: "256383"
  4841. FileInodeKey = attribute.Key("file.inode")
  4842. // FileModeKey is the attribute Key conforming to the "file.mode" semantic
  4843. // conventions. It represents the mode of the file in octal representation.
  4844. //
  4845. // Type: string
  4846. // RequirementLevel: Recommended
  4847. // Stability: Development
  4848. //
  4849. // Examples: "0640"
  4850. FileModeKey = attribute.Key("file.mode")
  4851. // FileModifiedKey is the attribute Key conforming to the "file.modified"
  4852. // semantic conventions. It represents the time when the file content was last
  4853. // modified, in ISO 8601 format.
  4854. //
  4855. // Type: string
  4856. // RequirementLevel: Recommended
  4857. // Stability: Development
  4858. //
  4859. // Examples: "2021-01-01T12:00:00Z"
  4860. FileModifiedKey = attribute.Key("file.modified")
  4861. // FileNameKey is the attribute Key conforming to the "file.name" semantic
  4862. // conventions. It represents the name of the file including the extension,
  4863. // without the directory.
  4864. //
  4865. // Type: string
  4866. // RequirementLevel: Recommended
  4867. // Stability: Development
  4868. //
  4869. // Examples: "example.png"
  4870. FileNameKey = attribute.Key("file.name")
  4871. // FileOwnerIDKey is the attribute Key conforming to the "file.owner.id"
  4872. // semantic conventions. It represents the user ID (UID) or security identifier
  4873. // (SID) of the file owner.
  4874. //
  4875. // Type: string
  4876. // RequirementLevel: Recommended
  4877. // Stability: Development
  4878. //
  4879. // Examples: "1000"
  4880. FileOwnerIDKey = attribute.Key("file.owner.id")
  4881. // FileOwnerNameKey is the attribute Key conforming to the "file.owner.name"
  4882. // semantic conventions. It represents the username of the file owner.
  4883. //
  4884. // Type: string
  4885. // RequirementLevel: Recommended
  4886. // Stability: Development
  4887. //
  4888. // Examples: "root"
  4889. FileOwnerNameKey = attribute.Key("file.owner.name")
  4890. // FilePathKey is the attribute Key conforming to the "file.path" semantic
  4891. // conventions. It represents the full path to the file, including the file
  4892. // name. It should include the drive letter, when appropriate.
  4893. //
  4894. // Type: string
  4895. // RequirementLevel: Recommended
  4896. // Stability: Development
  4897. //
  4898. // Examples: "/home/alice/example.png", "C:\Program Files\MyApp\myapp.exe"
  4899. FilePathKey = attribute.Key("file.path")
  4900. // FileSizeKey is the attribute Key conforming to the "file.size" semantic
  4901. // conventions. It represents the file size in bytes.
  4902. //
  4903. // Type: int
  4904. // RequirementLevel: Recommended
  4905. // Stability: Development
  4906. //
  4907. // Examples:
  4908. FileSizeKey = attribute.Key("file.size")
  4909. // FileSymbolicLinkTargetPathKey is the attribute Key conforming to the
  4910. // "file.symbolic_link.target_path" semantic conventions. It represents the path
  4911. // to the target of a symbolic link.
  4912. //
  4913. // Type: string
  4914. // RequirementLevel: Recommended
  4915. // Stability: Development
  4916. //
  4917. // Examples: "/usr/bin/python3"
  4918. // Note: This attribute is only applicable to symbolic links.
  4919. FileSymbolicLinkTargetPathKey = attribute.Key("file.symbolic_link.target_path")
  4920. )
  4921. // FileAccessed returns an attribute KeyValue conforming to the "file.accessed"
  4922. // semantic conventions. It represents the time when the file was last accessed,
  4923. // in ISO 8601 format.
  4924. func FileAccessed(val string) attribute.KeyValue {
  4925. return FileAccessedKey.String(val)
  4926. }
  4927. // FileAttributes returns an attribute KeyValue conforming to the
  4928. // "file.attributes" semantic conventions. It represents the array of file
  4929. // attributes.
  4930. func FileAttributes(val ...string) attribute.KeyValue {
  4931. return FileAttributesKey.StringSlice(val)
  4932. }
  4933. // FileChanged returns an attribute KeyValue conforming to the "file.changed"
  4934. // semantic conventions. It represents the time when the file attributes or
  4935. // metadata was last changed, in ISO 8601 format.
  4936. func FileChanged(val string) attribute.KeyValue {
  4937. return FileChangedKey.String(val)
  4938. }
  4939. // FileCreated returns an attribute KeyValue conforming to the "file.created"
  4940. // semantic conventions. It represents the time when the file was created, in ISO
  4941. // 8601 format.
  4942. func FileCreated(val string) attribute.KeyValue {
  4943. return FileCreatedKey.String(val)
  4944. }
  4945. // FileDirectory returns an attribute KeyValue conforming to the "file.directory"
  4946. // semantic conventions. It represents the directory where the file is located.
  4947. // It should include the drive letter, when appropriate.
  4948. func FileDirectory(val string) attribute.KeyValue {
  4949. return FileDirectoryKey.String(val)
  4950. }
  4951. // FileExtension returns an attribute KeyValue conforming to the "file.extension"
  4952. // semantic conventions. It represents the file extension, excluding the leading
  4953. // dot.
  4954. func FileExtension(val string) attribute.KeyValue {
  4955. return FileExtensionKey.String(val)
  4956. }
  4957. // FileForkName returns an attribute KeyValue conforming to the "file.fork_name"
  4958. // semantic conventions. It represents the name of the fork. A fork is additional
  4959. // data associated with a filesystem object.
  4960. func FileForkName(val string) attribute.KeyValue {
  4961. return FileForkNameKey.String(val)
  4962. }
  4963. // FileGroupID returns an attribute KeyValue conforming to the "file.group.id"
  4964. // semantic conventions. It represents the primary Group ID (GID) of the file.
  4965. func FileGroupID(val string) attribute.KeyValue {
  4966. return FileGroupIDKey.String(val)
  4967. }
  4968. // FileGroupName returns an attribute KeyValue conforming to the
  4969. // "file.group.name" semantic conventions. It represents the primary group name
  4970. // of the file.
  4971. func FileGroupName(val string) attribute.KeyValue {
  4972. return FileGroupNameKey.String(val)
  4973. }
  4974. // FileInode returns an attribute KeyValue conforming to the "file.inode"
  4975. // semantic conventions. It represents the inode representing the file in the
  4976. // filesystem.
  4977. func FileInode(val string) attribute.KeyValue {
  4978. return FileInodeKey.String(val)
  4979. }
  4980. // FileMode returns an attribute KeyValue conforming to the "file.mode" semantic
  4981. // conventions. It represents the mode of the file in octal representation.
  4982. func FileMode(val string) attribute.KeyValue {
  4983. return FileModeKey.String(val)
  4984. }
  4985. // FileModified returns an attribute KeyValue conforming to the "file.modified"
  4986. // semantic conventions. It represents the time when the file content was last
  4987. // modified, in ISO 8601 format.
  4988. func FileModified(val string) attribute.KeyValue {
  4989. return FileModifiedKey.String(val)
  4990. }
  4991. // FileName returns an attribute KeyValue conforming to the "file.name" semantic
  4992. // conventions. It represents the name of the file including the extension,
  4993. // without the directory.
  4994. func FileName(val string) attribute.KeyValue {
  4995. return FileNameKey.String(val)
  4996. }
  4997. // FileOwnerID returns an attribute KeyValue conforming to the "file.owner.id"
  4998. // semantic conventions. It represents the user ID (UID) or security identifier
  4999. // (SID) of the file owner.
  5000. func FileOwnerID(val string) attribute.KeyValue {
  5001. return FileOwnerIDKey.String(val)
  5002. }
  5003. // FileOwnerName returns an attribute KeyValue conforming to the
  5004. // "file.owner.name" semantic conventions. It represents the username of the file
  5005. // owner.
  5006. func FileOwnerName(val string) attribute.KeyValue {
  5007. return FileOwnerNameKey.String(val)
  5008. }
  5009. // FilePath returns an attribute KeyValue conforming to the "file.path" semantic
  5010. // conventions. It represents the full path to the file, including the file name.
  5011. // It should include the drive letter, when appropriate.
  5012. func FilePath(val string) attribute.KeyValue {
  5013. return FilePathKey.String(val)
  5014. }
  5015. // FileSize returns an attribute KeyValue conforming to the "file.size" semantic
  5016. // conventions. It represents the file size in bytes.
  5017. func FileSize(val int) attribute.KeyValue {
  5018. return FileSizeKey.Int(val)
  5019. }
  5020. // FileSymbolicLinkTargetPath returns an attribute KeyValue conforming to the
  5021. // "file.symbolic_link.target_path" semantic conventions. It represents the path
  5022. // to the target of a symbolic link.
  5023. func FileSymbolicLinkTargetPath(val string) attribute.KeyValue {
  5024. return FileSymbolicLinkTargetPathKey.String(val)
  5025. }
  5026. // Namespace: gcp
  5027. const (
  5028. // GCPAppHubApplicationContainerKey is the attribute Key conforming to the
  5029. // "gcp.apphub.application.container" semantic conventions. It represents the
  5030. // container within GCP where the AppHub application is defined.
  5031. //
  5032. // Type: string
  5033. // RequirementLevel: Recommended
  5034. // Stability: Development
  5035. //
  5036. // Examples: "projects/my-container-project"
  5037. GCPAppHubApplicationContainerKey = attribute.Key("gcp.apphub.application.container")
  5038. // GCPAppHubApplicationIDKey is the attribute Key conforming to the
  5039. // "gcp.apphub.application.id" semantic conventions. It represents the name of
  5040. // the application as configured in AppHub.
  5041. //
  5042. // Type: string
  5043. // RequirementLevel: Recommended
  5044. // Stability: Development
  5045. //
  5046. // Examples: "my-application"
  5047. GCPAppHubApplicationIDKey = attribute.Key("gcp.apphub.application.id")
  5048. // GCPAppHubApplicationLocationKey is the attribute Key conforming to the
  5049. // "gcp.apphub.application.location" semantic conventions. It represents the GCP
  5050. // zone or region where the application is defined.
  5051. //
  5052. // Type: string
  5053. // RequirementLevel: Recommended
  5054. // Stability: Development
  5055. //
  5056. // Examples: "us-central1"
  5057. GCPAppHubApplicationLocationKey = attribute.Key("gcp.apphub.application.location")
  5058. // GCPAppHubServiceCriticalityTypeKey is the attribute Key conforming to the
  5059. // "gcp.apphub.service.criticality_type" semantic conventions. It represents the
  5060. // criticality of a service indicates its importance to the business.
  5061. //
  5062. // Type: Enum
  5063. // RequirementLevel: Recommended
  5064. // Stability: Development
  5065. //
  5066. // Examples:
  5067. // Note: [See AppHub type enum]
  5068. //
  5069. // [See AppHub type enum]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type
  5070. GCPAppHubServiceCriticalityTypeKey = attribute.Key("gcp.apphub.service.criticality_type")
  5071. // GCPAppHubServiceEnvironmentTypeKey is the attribute Key conforming to the
  5072. // "gcp.apphub.service.environment_type" semantic conventions. It represents the
  5073. // environment of a service is the stage of a software lifecycle.
  5074. //
  5075. // Type: Enum
  5076. // RequirementLevel: Recommended
  5077. // Stability: Development
  5078. //
  5079. // Examples:
  5080. // Note: [See AppHub environment type]
  5081. //
  5082. // [See AppHub environment type]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1
  5083. GCPAppHubServiceEnvironmentTypeKey = attribute.Key("gcp.apphub.service.environment_type")
  5084. // GCPAppHubServiceIDKey is the attribute Key conforming to the
  5085. // "gcp.apphub.service.id" semantic conventions. It represents the name of the
  5086. // service as configured in AppHub.
  5087. //
  5088. // Type: string
  5089. // RequirementLevel: Recommended
  5090. // Stability: Development
  5091. //
  5092. // Examples: "my-service"
  5093. GCPAppHubServiceIDKey = attribute.Key("gcp.apphub.service.id")
  5094. // GCPAppHubWorkloadCriticalityTypeKey is the attribute Key conforming to the
  5095. // "gcp.apphub.workload.criticality_type" semantic conventions. It represents
  5096. // the criticality of a workload indicates its importance to the business.
  5097. //
  5098. // Type: Enum
  5099. // RequirementLevel: Recommended
  5100. // Stability: Development
  5101. //
  5102. // Examples:
  5103. // Note: [See AppHub type enum]
  5104. //
  5105. // [See AppHub type enum]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type
  5106. GCPAppHubWorkloadCriticalityTypeKey = attribute.Key("gcp.apphub.workload.criticality_type")
  5107. // GCPAppHubWorkloadEnvironmentTypeKey is the attribute Key conforming to the
  5108. // "gcp.apphub.workload.environment_type" semantic conventions. It represents
  5109. // the environment of a workload is the stage of a software lifecycle.
  5110. //
  5111. // Type: Enum
  5112. // RequirementLevel: Recommended
  5113. // Stability: Development
  5114. //
  5115. // Examples:
  5116. // Note: [See AppHub environment type]
  5117. //
  5118. // [See AppHub environment type]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1
  5119. GCPAppHubWorkloadEnvironmentTypeKey = attribute.Key("gcp.apphub.workload.environment_type")
  5120. // GCPAppHubWorkloadIDKey is the attribute Key conforming to the
  5121. // "gcp.apphub.workload.id" semantic conventions. It represents the name of the
  5122. // workload as configured in AppHub.
  5123. //
  5124. // Type: string
  5125. // RequirementLevel: Recommended
  5126. // Stability: Development
  5127. //
  5128. // Examples: "my-workload"
  5129. GCPAppHubWorkloadIDKey = attribute.Key("gcp.apphub.workload.id")
  5130. // GCPClientServiceKey is the attribute Key conforming to the
  5131. // "gcp.client.service" semantic conventions. It represents the identifies the
  5132. // Google Cloud service for which the official client library is intended.
  5133. //
  5134. // Type: string
  5135. // RequirementLevel: Recommended
  5136. // Stability: Development
  5137. //
  5138. // Examples: "appengine", "run", "firestore", "alloydb", "spanner"
  5139. // Note: Intended to be a stable identifier for Google Cloud client libraries
  5140. // that is uniform across implementation languages. The value should be derived
  5141. // from the canonical service domain for the service; for example,
  5142. // 'foo.googleapis.com' should result in a value of 'foo'.
  5143. GCPClientServiceKey = attribute.Key("gcp.client.service")
  5144. // GCPCloudRunJobExecutionKey is the attribute Key conforming to the
  5145. // "gcp.cloud_run.job.execution" semantic conventions. It represents the name of
  5146. // the Cloud Run [execution] being run for the Job, as set by the
  5147. // [`CLOUD_RUN_EXECUTION`] environment variable.
  5148. //
  5149. // Type: string
  5150. // RequirementLevel: Recommended
  5151. // Stability: Development
  5152. //
  5153. // Examples: "job-name-xxxx", "sample-job-mdw84"
  5154. //
  5155. // [execution]: https://cloud.google.com/run/docs/managing/job-executions
  5156. // [`CLOUD_RUN_EXECUTION`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
  5157. GCPCloudRunJobExecutionKey = attribute.Key("gcp.cloud_run.job.execution")
  5158. // GCPCloudRunJobTaskIndexKey is the attribute Key conforming to the
  5159. // "gcp.cloud_run.job.task_index" semantic conventions. It represents the index
  5160. // for a task within an execution as provided by the [`CLOUD_RUN_TASK_INDEX`]
  5161. // environment variable.
  5162. //
  5163. // Type: int
  5164. // RequirementLevel: Recommended
  5165. // Stability: Development
  5166. //
  5167. // Examples: 0, 1
  5168. //
  5169. // [`CLOUD_RUN_TASK_INDEX`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
  5170. GCPCloudRunJobTaskIndexKey = attribute.Key("gcp.cloud_run.job.task_index")
  5171. // GCPGCEInstanceHostnameKey is the attribute Key conforming to the
  5172. // "gcp.gce.instance.hostname" semantic conventions. It represents the hostname
  5173. // of a GCE instance. This is the full value of the default or [custom hostname]
  5174. // .
  5175. //
  5176. // Type: string
  5177. // RequirementLevel: Recommended
  5178. // Stability: Development
  5179. //
  5180. // Examples: "my-host1234.example.com",
  5181. // "sample-vm.us-west1-b.c.my-project.internal"
  5182. //
  5183. // [custom hostname]: https://cloud.google.com/compute/docs/instances/custom-hostname-vm
  5184. GCPGCEInstanceHostnameKey = attribute.Key("gcp.gce.instance.hostname")
  5185. // GCPGCEInstanceNameKey is the attribute Key conforming to the
  5186. // "gcp.gce.instance.name" semantic conventions. It represents the instance name
  5187. // of a GCE instance. This is the value provided by `host.name`, the visible
  5188. // name of the instance in the Cloud Console UI, and the prefix for the default
  5189. // hostname of the instance as defined by the [default internal DNS name].
  5190. //
  5191. // Type: string
  5192. // RequirementLevel: Recommended
  5193. // Stability: Development
  5194. //
  5195. // Examples: "instance-1", "my-vm-name"
  5196. //
  5197. // [default internal DNS name]: https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names
  5198. GCPGCEInstanceNameKey = attribute.Key("gcp.gce.instance.name")
  5199. )
  5200. // GCPAppHubApplicationContainer returns an attribute KeyValue conforming to the
  5201. // "gcp.apphub.application.container" semantic conventions. It represents the
  5202. // container within GCP where the AppHub application is defined.
  5203. func GCPAppHubApplicationContainer(val string) attribute.KeyValue {
  5204. return GCPAppHubApplicationContainerKey.String(val)
  5205. }
  5206. // GCPAppHubApplicationID returns an attribute KeyValue conforming to the
  5207. // "gcp.apphub.application.id" semantic conventions. It represents the name of
  5208. // the application as configured in AppHub.
  5209. func GCPAppHubApplicationID(val string) attribute.KeyValue {
  5210. return GCPAppHubApplicationIDKey.String(val)
  5211. }
  5212. // GCPAppHubApplicationLocation returns an attribute KeyValue conforming to the
  5213. // "gcp.apphub.application.location" semantic conventions. It represents the GCP
  5214. // zone or region where the application is defined.
  5215. func GCPAppHubApplicationLocation(val string) attribute.KeyValue {
  5216. return GCPAppHubApplicationLocationKey.String(val)
  5217. }
  5218. // GCPAppHubServiceID returns an attribute KeyValue conforming to the
  5219. // "gcp.apphub.service.id" semantic conventions. It represents the name of the
  5220. // service as configured in AppHub.
  5221. func GCPAppHubServiceID(val string) attribute.KeyValue {
  5222. return GCPAppHubServiceIDKey.String(val)
  5223. }
  5224. // GCPAppHubWorkloadID returns an attribute KeyValue conforming to the
  5225. // "gcp.apphub.workload.id" semantic conventions. It represents the name of the
  5226. // workload as configured in AppHub.
  5227. func GCPAppHubWorkloadID(val string) attribute.KeyValue {
  5228. return GCPAppHubWorkloadIDKey.String(val)
  5229. }
  5230. // GCPClientService returns an attribute KeyValue conforming to the
  5231. // "gcp.client.service" semantic conventions. It represents the identifies the
  5232. // Google Cloud service for which the official client library is intended.
  5233. func GCPClientService(val string) attribute.KeyValue {
  5234. return GCPClientServiceKey.String(val)
  5235. }
  5236. // GCPCloudRunJobExecution returns an attribute KeyValue conforming to the
  5237. // "gcp.cloud_run.job.execution" semantic conventions. It represents the name of
  5238. // the Cloud Run [execution] being run for the Job, as set by the
  5239. // [`CLOUD_RUN_EXECUTION`] environment variable.
  5240. //
  5241. // [execution]: https://cloud.google.com/run/docs/managing/job-executions
  5242. // [`CLOUD_RUN_EXECUTION`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
  5243. func GCPCloudRunJobExecution(val string) attribute.KeyValue {
  5244. return GCPCloudRunJobExecutionKey.String(val)
  5245. }
  5246. // GCPCloudRunJobTaskIndex returns an attribute KeyValue conforming to the
  5247. // "gcp.cloud_run.job.task_index" semantic conventions. It represents the index
  5248. // for a task within an execution as provided by the [`CLOUD_RUN_TASK_INDEX`]
  5249. // environment variable.
  5250. //
  5251. // [`CLOUD_RUN_TASK_INDEX`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
  5252. func GCPCloudRunJobTaskIndex(val int) attribute.KeyValue {
  5253. return GCPCloudRunJobTaskIndexKey.Int(val)
  5254. }
  5255. // GCPGCEInstanceHostname returns an attribute KeyValue conforming to the
  5256. // "gcp.gce.instance.hostname" semantic conventions. It represents the hostname
  5257. // of a GCE instance. This is the full value of the default or [custom hostname]
  5258. // .
  5259. //
  5260. // [custom hostname]: https://cloud.google.com/compute/docs/instances/custom-hostname-vm
  5261. func GCPGCEInstanceHostname(val string) attribute.KeyValue {
  5262. return GCPGCEInstanceHostnameKey.String(val)
  5263. }
  5264. // GCPGCEInstanceName returns an attribute KeyValue conforming to the
  5265. // "gcp.gce.instance.name" semantic conventions. It represents the instance name
  5266. // of a GCE instance. This is the value provided by `host.name`, the visible name
  5267. // of the instance in the Cloud Console UI, and the prefix for the default
  5268. // hostname of the instance as defined by the [default internal DNS name].
  5269. //
  5270. // [default internal DNS name]: https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names
  5271. func GCPGCEInstanceName(val string) attribute.KeyValue {
  5272. return GCPGCEInstanceNameKey.String(val)
  5273. }
  5274. // Enum values for gcp.apphub.service.criticality_type
  5275. var (
  5276. // Mission critical service.
  5277. // Stability: development
  5278. GCPAppHubServiceCriticalityTypeMissionCritical = GCPAppHubServiceCriticalityTypeKey.String("MISSION_CRITICAL")
  5279. // High impact.
  5280. // Stability: development
  5281. GCPAppHubServiceCriticalityTypeHigh = GCPAppHubServiceCriticalityTypeKey.String("HIGH")
  5282. // Medium impact.
  5283. // Stability: development
  5284. GCPAppHubServiceCriticalityTypeMedium = GCPAppHubServiceCriticalityTypeKey.String("MEDIUM")
  5285. // Low impact.
  5286. // Stability: development
  5287. GCPAppHubServiceCriticalityTypeLow = GCPAppHubServiceCriticalityTypeKey.String("LOW")
  5288. )
  5289. // Enum values for gcp.apphub.service.environment_type
  5290. var (
  5291. // Production environment.
  5292. // Stability: development
  5293. GCPAppHubServiceEnvironmentTypeProduction = GCPAppHubServiceEnvironmentTypeKey.String("PRODUCTION")
  5294. // Staging environment.
  5295. // Stability: development
  5296. GCPAppHubServiceEnvironmentTypeStaging = GCPAppHubServiceEnvironmentTypeKey.String("STAGING")
  5297. // Test environment.
  5298. // Stability: development
  5299. GCPAppHubServiceEnvironmentTypeTest = GCPAppHubServiceEnvironmentTypeKey.String("TEST")
  5300. // Development environment.
  5301. // Stability: development
  5302. GCPAppHubServiceEnvironmentTypeDevelopment = GCPAppHubServiceEnvironmentTypeKey.String("DEVELOPMENT")
  5303. )
  5304. // Enum values for gcp.apphub.workload.criticality_type
  5305. var (
  5306. // Mission critical service.
  5307. // Stability: development
  5308. GCPAppHubWorkloadCriticalityTypeMissionCritical = GCPAppHubWorkloadCriticalityTypeKey.String("MISSION_CRITICAL")
  5309. // High impact.
  5310. // Stability: development
  5311. GCPAppHubWorkloadCriticalityTypeHigh = GCPAppHubWorkloadCriticalityTypeKey.String("HIGH")
  5312. // Medium impact.
  5313. // Stability: development
  5314. GCPAppHubWorkloadCriticalityTypeMedium = GCPAppHubWorkloadCriticalityTypeKey.String("MEDIUM")
  5315. // Low impact.
  5316. // Stability: development
  5317. GCPAppHubWorkloadCriticalityTypeLow = GCPAppHubWorkloadCriticalityTypeKey.String("LOW")
  5318. )
  5319. // Enum values for gcp.apphub.workload.environment_type
  5320. var (
  5321. // Production environment.
  5322. // Stability: development
  5323. GCPAppHubWorkloadEnvironmentTypeProduction = GCPAppHubWorkloadEnvironmentTypeKey.String("PRODUCTION")
  5324. // Staging environment.
  5325. // Stability: development
  5326. GCPAppHubWorkloadEnvironmentTypeStaging = GCPAppHubWorkloadEnvironmentTypeKey.String("STAGING")
  5327. // Test environment.
  5328. // Stability: development
  5329. GCPAppHubWorkloadEnvironmentTypeTest = GCPAppHubWorkloadEnvironmentTypeKey.String("TEST")
  5330. // Development environment.
  5331. // Stability: development
  5332. GCPAppHubWorkloadEnvironmentTypeDevelopment = GCPAppHubWorkloadEnvironmentTypeKey.String("DEVELOPMENT")
  5333. )
  5334. // Namespace: gen_ai
  5335. const (
  5336. // GenAIAgentDescriptionKey is the attribute Key conforming to the
  5337. // "gen_ai.agent.description" semantic conventions. It represents the free-form
  5338. // description of the GenAI agent provided by the application.
  5339. //
  5340. // Type: string
  5341. // RequirementLevel: Recommended
  5342. // Stability: Development
  5343. //
  5344. // Examples: "Helps with math problems", "Generates fiction stories"
  5345. GenAIAgentDescriptionKey = attribute.Key("gen_ai.agent.description")
  5346. // GenAIAgentIDKey is the attribute Key conforming to the "gen_ai.agent.id"
  5347. // semantic conventions. It represents the unique identifier of the GenAI agent.
  5348. //
  5349. // Type: string
  5350. // RequirementLevel: Recommended
  5351. // Stability: Development
  5352. //
  5353. // Examples: "asst_5j66UpCpwteGg4YSxUnt7lPY"
  5354. GenAIAgentIDKey = attribute.Key("gen_ai.agent.id")
  5355. // GenAIAgentNameKey is the attribute Key conforming to the "gen_ai.agent.name"
  5356. // semantic conventions. It represents the human-readable name of the GenAI
  5357. // agent provided by the application.
  5358. //
  5359. // Type: string
  5360. // RequirementLevel: Recommended
  5361. // Stability: Development
  5362. //
  5363. // Examples: "Math Tutor", "Fiction Writer"
  5364. GenAIAgentNameKey = attribute.Key("gen_ai.agent.name")
  5365. // GenAIConversationIDKey is the attribute Key conforming to the
  5366. // "gen_ai.conversation.id" semantic conventions. It represents the unique
  5367. // identifier for a conversation (session, thread), used to store and correlate
  5368. // messages within this conversation.
  5369. //
  5370. // Type: string
  5371. // RequirementLevel: Recommended
  5372. // Stability: Development
  5373. //
  5374. // Examples: "conv_5j66UpCpwteGg4YSxUnt7lPY"
  5375. GenAIConversationIDKey = attribute.Key("gen_ai.conversation.id")
  5376. // GenAIDataSourceIDKey is the attribute Key conforming to the
  5377. // "gen_ai.data_source.id" semantic conventions. It represents the data source
  5378. // identifier.
  5379. //
  5380. // Type: string
  5381. // RequirementLevel: Recommended
  5382. // Stability: Development
  5383. //
  5384. // Examples: "H7STPQYOND"
  5385. // Note: Data sources are used by AI agents and RAG applications to store
  5386. // grounding data. A data source may be an external database, object store,
  5387. // document collection, website, or any other storage system used by the GenAI
  5388. // agent or application. The `gen_ai.data_source.id` SHOULD match the identifier
  5389. // used by the GenAI system rather than a name specific to the external storage,
  5390. // such as a database or object store. Semantic conventions referencing
  5391. // `gen_ai.data_source.id` MAY also leverage additional attributes, such as
  5392. // `db.*`, to further identify and describe the data source.
  5393. GenAIDataSourceIDKey = attribute.Key("gen_ai.data_source.id")
  5394. // GenAIOpenAIRequestServiceTierKey is the attribute Key conforming to the
  5395. // "gen_ai.openai.request.service_tier" semantic conventions. It represents the
  5396. // service tier requested. May be a specific tier, default, or auto.
  5397. //
  5398. // Type: Enum
  5399. // RequirementLevel: Recommended
  5400. // Stability: Development
  5401. //
  5402. // Examples: "auto", "default"
  5403. GenAIOpenAIRequestServiceTierKey = attribute.Key("gen_ai.openai.request.service_tier")
  5404. // GenAIOpenAIResponseServiceTierKey is the attribute Key conforming to the
  5405. // "gen_ai.openai.response.service_tier" semantic conventions. It represents the
  5406. // service tier used for the response.
  5407. //
  5408. // Type: string
  5409. // RequirementLevel: Recommended
  5410. // Stability: Development
  5411. //
  5412. // Examples: "scale", "default"
  5413. GenAIOpenAIResponseServiceTierKey = attribute.Key("gen_ai.openai.response.service_tier")
  5414. // GenAIOpenAIResponseSystemFingerprintKey is the attribute Key conforming to
  5415. // the "gen_ai.openai.response.system_fingerprint" semantic conventions. It
  5416. // represents a fingerprint to track any eventual change in the Generative AI
  5417. // environment.
  5418. //
  5419. // Type: string
  5420. // RequirementLevel: Recommended
  5421. // Stability: Development
  5422. //
  5423. // Examples: "fp_44709d6fcb"
  5424. GenAIOpenAIResponseSystemFingerprintKey = attribute.Key("gen_ai.openai.response.system_fingerprint")
  5425. // GenAIOperationNameKey is the attribute Key conforming to the
  5426. // "gen_ai.operation.name" semantic conventions. It represents the name of the
  5427. // operation being performed.
  5428. //
  5429. // Type: Enum
  5430. // RequirementLevel: Recommended
  5431. // Stability: Development
  5432. //
  5433. // Examples:
  5434. // Note: If one of the predefined values applies, but specific system uses a
  5435. // different name it's RECOMMENDED to document it in the semantic conventions
  5436. // for specific GenAI system and use system-specific name in the
  5437. // instrumentation. If a different name is not documented, instrumentation
  5438. // libraries SHOULD use applicable predefined value.
  5439. GenAIOperationNameKey = attribute.Key("gen_ai.operation.name")
  5440. // GenAIOutputTypeKey is the attribute Key conforming to the
  5441. // "gen_ai.output.type" semantic conventions. It represents the represents the
  5442. // content type requested by the client.
  5443. //
  5444. // Type: Enum
  5445. // RequirementLevel: Recommended
  5446. // Stability: Development
  5447. //
  5448. // Examples:
  5449. // Note: This attribute SHOULD be used when the client requests output of a
  5450. // specific type. The model may return zero or more outputs of this type.
  5451. // This attribute specifies the output modality and not the actual output
  5452. // format. For example, if an image is requested, the actual output could be a
  5453. // URL pointing to an image file.
  5454. // Additional output format details may be recorded in the future in the
  5455. // `gen_ai.output.{type}.*` attributes.
  5456. GenAIOutputTypeKey = attribute.Key("gen_ai.output.type")
  5457. // GenAIRequestChoiceCountKey is the attribute Key conforming to the
  5458. // "gen_ai.request.choice.count" semantic conventions. It represents the target
  5459. // number of candidate completions to return.
  5460. //
  5461. // Type: int
  5462. // RequirementLevel: Recommended
  5463. // Stability: Development
  5464. //
  5465. // Examples: 3
  5466. GenAIRequestChoiceCountKey = attribute.Key("gen_ai.request.choice.count")
  5467. // GenAIRequestEncodingFormatsKey is the attribute Key conforming to the
  5468. // "gen_ai.request.encoding_formats" semantic conventions. It represents the
  5469. // encoding formats requested in an embeddings operation, if specified.
  5470. //
  5471. // Type: string[]
  5472. // RequirementLevel: Recommended
  5473. // Stability: Development
  5474. //
  5475. // Examples: "base64"], ["float", "binary"
  5476. // Note: In some GenAI systems the encoding formats are called embedding types.
  5477. // Also, some GenAI systems only accept a single format per request.
  5478. GenAIRequestEncodingFormatsKey = attribute.Key("gen_ai.request.encoding_formats")
  5479. // GenAIRequestFrequencyPenaltyKey is the attribute Key conforming to the
  5480. // "gen_ai.request.frequency_penalty" semantic conventions. It represents the
  5481. // frequency penalty setting for the GenAI request.
  5482. //
  5483. // Type: double
  5484. // RequirementLevel: Recommended
  5485. // Stability: Development
  5486. //
  5487. // Examples: 0.1
  5488. GenAIRequestFrequencyPenaltyKey = attribute.Key("gen_ai.request.frequency_penalty")
  5489. // GenAIRequestMaxTokensKey is the attribute Key conforming to the
  5490. // "gen_ai.request.max_tokens" semantic conventions. It represents the maximum
  5491. // number of tokens the model generates for a request.
  5492. //
  5493. // Type: int
  5494. // RequirementLevel: Recommended
  5495. // Stability: Development
  5496. //
  5497. // Examples: 100
  5498. GenAIRequestMaxTokensKey = attribute.Key("gen_ai.request.max_tokens")
  5499. // GenAIRequestModelKey is the attribute Key conforming to the
  5500. // "gen_ai.request.model" semantic conventions. It represents the name of the
  5501. // GenAI model a request is being made to.
  5502. //
  5503. // Type: string
  5504. // RequirementLevel: Recommended
  5505. // Stability: Development
  5506. //
  5507. // Examples: gpt-4
  5508. GenAIRequestModelKey = attribute.Key("gen_ai.request.model")
  5509. // GenAIRequestPresencePenaltyKey is the attribute Key conforming to the
  5510. // "gen_ai.request.presence_penalty" semantic conventions. It represents the
  5511. // presence penalty setting for the GenAI request.
  5512. //
  5513. // Type: double
  5514. // RequirementLevel: Recommended
  5515. // Stability: Development
  5516. //
  5517. // Examples: 0.1
  5518. GenAIRequestPresencePenaltyKey = attribute.Key("gen_ai.request.presence_penalty")
  5519. // GenAIRequestSeedKey is the attribute Key conforming to the
  5520. // "gen_ai.request.seed" semantic conventions. It represents the requests with
  5521. // same seed value more likely to return same result.
  5522. //
  5523. // Type: int
  5524. // RequirementLevel: Recommended
  5525. // Stability: Development
  5526. //
  5527. // Examples: 100
  5528. GenAIRequestSeedKey = attribute.Key("gen_ai.request.seed")
  5529. // GenAIRequestStopSequencesKey is the attribute Key conforming to the
  5530. // "gen_ai.request.stop_sequences" semantic conventions. It represents the list
  5531. // of sequences that the model will use to stop generating further tokens.
  5532. //
  5533. // Type: string[]
  5534. // RequirementLevel: Recommended
  5535. // Stability: Development
  5536. //
  5537. // Examples: "forest", "lived"
  5538. GenAIRequestStopSequencesKey = attribute.Key("gen_ai.request.stop_sequences")
  5539. // GenAIRequestTemperatureKey is the attribute Key conforming to the
  5540. // "gen_ai.request.temperature" semantic conventions. It represents the
  5541. // temperature setting for the GenAI request.
  5542. //
  5543. // Type: double
  5544. // RequirementLevel: Recommended
  5545. // Stability: Development
  5546. //
  5547. // Examples: 0.0
  5548. GenAIRequestTemperatureKey = attribute.Key("gen_ai.request.temperature")
  5549. // GenAIRequestTopKKey is the attribute Key conforming to the
  5550. // "gen_ai.request.top_k" semantic conventions. It represents the top_k sampling
  5551. // setting for the GenAI request.
  5552. //
  5553. // Type: double
  5554. // RequirementLevel: Recommended
  5555. // Stability: Development
  5556. //
  5557. // Examples: 1.0
  5558. GenAIRequestTopKKey = attribute.Key("gen_ai.request.top_k")
  5559. // GenAIRequestTopPKey is the attribute Key conforming to the
  5560. // "gen_ai.request.top_p" semantic conventions. It represents the top_p sampling
  5561. // setting for the GenAI request.
  5562. //
  5563. // Type: double
  5564. // RequirementLevel: Recommended
  5565. // Stability: Development
  5566. //
  5567. // Examples: 1.0
  5568. GenAIRequestTopPKey = attribute.Key("gen_ai.request.top_p")
  5569. // GenAIResponseFinishReasonsKey is the attribute Key conforming to the
  5570. // "gen_ai.response.finish_reasons" semantic conventions. It represents the
  5571. // array of reasons the model stopped generating tokens, corresponding to each
  5572. // generation received.
  5573. //
  5574. // Type: string[]
  5575. // RequirementLevel: Recommended
  5576. // Stability: Development
  5577. //
  5578. // Examples: "stop"], ["stop", "length"
  5579. GenAIResponseFinishReasonsKey = attribute.Key("gen_ai.response.finish_reasons")
  5580. // GenAIResponseIDKey is the attribute Key conforming to the
  5581. // "gen_ai.response.id" semantic conventions. It represents the unique
  5582. // identifier for the completion.
  5583. //
  5584. // Type: string
  5585. // RequirementLevel: Recommended
  5586. // Stability: Development
  5587. //
  5588. // Examples: "chatcmpl-123"
  5589. GenAIResponseIDKey = attribute.Key("gen_ai.response.id")
  5590. // GenAIResponseModelKey is the attribute Key conforming to the
  5591. // "gen_ai.response.model" semantic conventions. It represents the name of the
  5592. // model that generated the response.
  5593. //
  5594. // Type: string
  5595. // RequirementLevel: Recommended
  5596. // Stability: Development
  5597. //
  5598. // Examples: "gpt-4-0613"
  5599. GenAIResponseModelKey = attribute.Key("gen_ai.response.model")
  5600. // GenAISystemKey is the attribute Key conforming to the "gen_ai.system"
  5601. // semantic conventions. It represents the Generative AI product as identified
  5602. // by the client or server instrumentation.
  5603. //
  5604. // Type: Enum
  5605. // RequirementLevel: Recommended
  5606. // Stability: Development
  5607. //
  5608. // Examples: openai
  5609. // Note: The `gen_ai.system` describes a family of GenAI models with specific
  5610. // model identified
  5611. // by `gen_ai.request.model` and `gen_ai.response.model` attributes.
  5612. //
  5613. // The actual GenAI product may differ from the one identified by the client.
  5614. // Multiple systems, including Azure OpenAI and Gemini, are accessible by OpenAI
  5615. // client
  5616. // libraries. In such cases, the `gen_ai.system` is set to `openai` based on the
  5617. // instrumentation's best knowledge, instead of the actual system. The
  5618. // `server.address`
  5619. // attribute may help identify the actual system in use for `openai`.
  5620. //
  5621. // For custom model, a custom friendly name SHOULD be used.
  5622. // If none of these options apply, the `gen_ai.system` SHOULD be set to `_OTHER`
  5623. // .
  5624. GenAISystemKey = attribute.Key("gen_ai.system")
  5625. // GenAITokenTypeKey is the attribute Key conforming to the "gen_ai.token.type"
  5626. // semantic conventions. It represents the type of token being counted.
  5627. //
  5628. // Type: Enum
  5629. // RequirementLevel: Recommended
  5630. // Stability: Development
  5631. //
  5632. // Examples: "input", "output"
  5633. GenAITokenTypeKey = attribute.Key("gen_ai.token.type")
  5634. // GenAIToolCallIDKey is the attribute Key conforming to the
  5635. // "gen_ai.tool.call.id" semantic conventions. It represents the tool call
  5636. // identifier.
  5637. //
  5638. // Type: string
  5639. // RequirementLevel: Recommended
  5640. // Stability: Development
  5641. //
  5642. // Examples: "call_mszuSIzqtI65i1wAUOE8w5H4"
  5643. GenAIToolCallIDKey = attribute.Key("gen_ai.tool.call.id")
  5644. // GenAIToolDescriptionKey is the attribute Key conforming to the
  5645. // "gen_ai.tool.description" semantic conventions. It represents the tool
  5646. // description.
  5647. //
  5648. // Type: string
  5649. // RequirementLevel: Recommended
  5650. // Stability: Development
  5651. //
  5652. // Examples: "Multiply two numbers"
  5653. GenAIToolDescriptionKey = attribute.Key("gen_ai.tool.description")
  5654. // GenAIToolNameKey is the attribute Key conforming to the "gen_ai.tool.name"
  5655. // semantic conventions. It represents the name of the tool utilized by the
  5656. // agent.
  5657. //
  5658. // Type: string
  5659. // RequirementLevel: Recommended
  5660. // Stability: Development
  5661. //
  5662. // Examples: "Flights"
  5663. GenAIToolNameKey = attribute.Key("gen_ai.tool.name")
  5664. // GenAIToolTypeKey is the attribute Key conforming to the "gen_ai.tool.type"
  5665. // semantic conventions. It represents the type of the tool utilized by the
  5666. // agent.
  5667. //
  5668. // Type: string
  5669. // RequirementLevel: Recommended
  5670. // Stability: Development
  5671. //
  5672. // Examples: "function", "extension", "datastore"
  5673. // Note: Extension: A tool executed on the agent-side to directly call external
  5674. // APIs, bridging the gap between the agent and real-world systems.
  5675. // Agent-side operations involve actions that are performed by the agent on the
  5676. // server or within the agent's controlled environment.
  5677. // Function: A tool executed on the client-side, where the agent generates
  5678. // parameters for a predefined function, and the client executes the logic.
  5679. // Client-side operations are actions taken on the user's end or within the
  5680. // client application.
  5681. // Datastore: A tool used by the agent to access and query structured or
  5682. // unstructured external data for retrieval-augmented tasks or knowledge
  5683. // updates.
  5684. GenAIToolTypeKey = attribute.Key("gen_ai.tool.type")
  5685. // GenAIUsageInputTokensKey is the attribute Key conforming to the
  5686. // "gen_ai.usage.input_tokens" semantic conventions. It represents the number of
  5687. // tokens used in the GenAI input (prompt).
  5688. //
  5689. // Type: int
  5690. // RequirementLevel: Recommended
  5691. // Stability: Development
  5692. //
  5693. // Examples: 100
  5694. GenAIUsageInputTokensKey = attribute.Key("gen_ai.usage.input_tokens")
  5695. // GenAIUsageOutputTokensKey is the attribute Key conforming to the
  5696. // "gen_ai.usage.output_tokens" semantic conventions. It represents the number
  5697. // of tokens used in the GenAI response (completion).
  5698. //
  5699. // Type: int
  5700. // RequirementLevel: Recommended
  5701. // Stability: Development
  5702. //
  5703. // Examples: 180
  5704. GenAIUsageOutputTokensKey = attribute.Key("gen_ai.usage.output_tokens")
  5705. )
  5706. // GenAIAgentDescription returns an attribute KeyValue conforming to the
  5707. // "gen_ai.agent.description" semantic conventions. It represents the free-form
  5708. // description of the GenAI agent provided by the application.
  5709. func GenAIAgentDescription(val string) attribute.KeyValue {
  5710. return GenAIAgentDescriptionKey.String(val)
  5711. }
  5712. // GenAIAgentID returns an attribute KeyValue conforming to the "gen_ai.agent.id"
  5713. // semantic conventions. It represents the unique identifier of the GenAI agent.
  5714. func GenAIAgentID(val string) attribute.KeyValue {
  5715. return GenAIAgentIDKey.String(val)
  5716. }
  5717. // GenAIAgentName returns an attribute KeyValue conforming to the
  5718. // "gen_ai.agent.name" semantic conventions. It represents the human-readable
  5719. // name of the GenAI agent provided by the application.
  5720. func GenAIAgentName(val string) attribute.KeyValue {
  5721. return GenAIAgentNameKey.String(val)
  5722. }
  5723. // GenAIConversationID returns an attribute KeyValue conforming to the
  5724. // "gen_ai.conversation.id" semantic conventions. It represents the unique
  5725. // identifier for a conversation (session, thread), used to store and correlate
  5726. // messages within this conversation.
  5727. func GenAIConversationID(val string) attribute.KeyValue {
  5728. return GenAIConversationIDKey.String(val)
  5729. }
  5730. // GenAIDataSourceID returns an attribute KeyValue conforming to the
  5731. // "gen_ai.data_source.id" semantic conventions. It represents the data source
  5732. // identifier.
  5733. func GenAIDataSourceID(val string) attribute.KeyValue {
  5734. return GenAIDataSourceIDKey.String(val)
  5735. }
  5736. // GenAIOpenAIResponseServiceTier returns an attribute KeyValue conforming to the
  5737. // "gen_ai.openai.response.service_tier" semantic conventions. It represents the
  5738. // service tier used for the response.
  5739. func GenAIOpenAIResponseServiceTier(val string) attribute.KeyValue {
  5740. return GenAIOpenAIResponseServiceTierKey.String(val)
  5741. }
  5742. // GenAIOpenAIResponseSystemFingerprint returns an attribute KeyValue conforming
  5743. // to the "gen_ai.openai.response.system_fingerprint" semantic conventions. It
  5744. // represents a fingerprint to track any eventual change in the Generative AI
  5745. // environment.
  5746. func GenAIOpenAIResponseSystemFingerprint(val string) attribute.KeyValue {
  5747. return GenAIOpenAIResponseSystemFingerprintKey.String(val)
  5748. }
  5749. // GenAIRequestChoiceCount returns an attribute KeyValue conforming to the
  5750. // "gen_ai.request.choice.count" semantic conventions. It represents the target
  5751. // number of candidate completions to return.
  5752. func GenAIRequestChoiceCount(val int) attribute.KeyValue {
  5753. return GenAIRequestChoiceCountKey.Int(val)
  5754. }
  5755. // GenAIRequestEncodingFormats returns an attribute KeyValue conforming to the
  5756. // "gen_ai.request.encoding_formats" semantic conventions. It represents the
  5757. // encoding formats requested in an embeddings operation, if specified.
  5758. func GenAIRequestEncodingFormats(val ...string) attribute.KeyValue {
  5759. return GenAIRequestEncodingFormatsKey.StringSlice(val)
  5760. }
  5761. // GenAIRequestFrequencyPenalty returns an attribute KeyValue conforming to the
  5762. // "gen_ai.request.frequency_penalty" semantic conventions. It represents the
  5763. // frequency penalty setting for the GenAI request.
  5764. func GenAIRequestFrequencyPenalty(val float64) attribute.KeyValue {
  5765. return GenAIRequestFrequencyPenaltyKey.Float64(val)
  5766. }
  5767. // GenAIRequestMaxTokens returns an attribute KeyValue conforming to the
  5768. // "gen_ai.request.max_tokens" semantic conventions. It represents the maximum
  5769. // number of tokens the model generates for a request.
  5770. func GenAIRequestMaxTokens(val int) attribute.KeyValue {
  5771. return GenAIRequestMaxTokensKey.Int(val)
  5772. }
  5773. // GenAIRequestModel returns an attribute KeyValue conforming to the
  5774. // "gen_ai.request.model" semantic conventions. It represents the name of the
  5775. // GenAI model a request is being made to.
  5776. func GenAIRequestModel(val string) attribute.KeyValue {
  5777. return GenAIRequestModelKey.String(val)
  5778. }
  5779. // GenAIRequestPresencePenalty returns an attribute KeyValue conforming to the
  5780. // "gen_ai.request.presence_penalty" semantic conventions. It represents the
  5781. // presence penalty setting for the GenAI request.
  5782. func GenAIRequestPresencePenalty(val float64) attribute.KeyValue {
  5783. return GenAIRequestPresencePenaltyKey.Float64(val)
  5784. }
  5785. // GenAIRequestSeed returns an attribute KeyValue conforming to the
  5786. // "gen_ai.request.seed" semantic conventions. It represents the requests with
  5787. // same seed value more likely to return same result.
  5788. func GenAIRequestSeed(val int) attribute.KeyValue {
  5789. return GenAIRequestSeedKey.Int(val)
  5790. }
  5791. // GenAIRequestStopSequences returns an attribute KeyValue conforming to the
  5792. // "gen_ai.request.stop_sequences" semantic conventions. It represents the list
  5793. // of sequences that the model will use to stop generating further tokens.
  5794. func GenAIRequestStopSequences(val ...string) attribute.KeyValue {
  5795. return GenAIRequestStopSequencesKey.StringSlice(val)
  5796. }
  5797. // GenAIRequestTemperature returns an attribute KeyValue conforming to the
  5798. // "gen_ai.request.temperature" semantic conventions. It represents the
  5799. // temperature setting for the GenAI request.
  5800. func GenAIRequestTemperature(val float64) attribute.KeyValue {
  5801. return GenAIRequestTemperatureKey.Float64(val)
  5802. }
  5803. // GenAIRequestTopK returns an attribute KeyValue conforming to the
  5804. // "gen_ai.request.top_k" semantic conventions. It represents the top_k sampling
  5805. // setting for the GenAI request.
  5806. func GenAIRequestTopK(val float64) attribute.KeyValue {
  5807. return GenAIRequestTopKKey.Float64(val)
  5808. }
  5809. // GenAIRequestTopP returns an attribute KeyValue conforming to the
  5810. // "gen_ai.request.top_p" semantic conventions. It represents the top_p sampling
  5811. // setting for the GenAI request.
  5812. func GenAIRequestTopP(val float64) attribute.KeyValue {
  5813. return GenAIRequestTopPKey.Float64(val)
  5814. }
  5815. // GenAIResponseFinishReasons returns an attribute KeyValue conforming to the
  5816. // "gen_ai.response.finish_reasons" semantic conventions. It represents the array
  5817. // of reasons the model stopped generating tokens, corresponding to each
  5818. // generation received.
  5819. func GenAIResponseFinishReasons(val ...string) attribute.KeyValue {
  5820. return GenAIResponseFinishReasonsKey.StringSlice(val)
  5821. }
  5822. // GenAIResponseID returns an attribute KeyValue conforming to the
  5823. // "gen_ai.response.id" semantic conventions. It represents the unique identifier
  5824. // for the completion.
  5825. func GenAIResponseID(val string) attribute.KeyValue {
  5826. return GenAIResponseIDKey.String(val)
  5827. }
  5828. // GenAIResponseModel returns an attribute KeyValue conforming to the
  5829. // "gen_ai.response.model" semantic conventions. It represents the name of the
  5830. // model that generated the response.
  5831. func GenAIResponseModel(val string) attribute.KeyValue {
  5832. return GenAIResponseModelKey.String(val)
  5833. }
  5834. // GenAIToolCallID returns an attribute KeyValue conforming to the
  5835. // "gen_ai.tool.call.id" semantic conventions. It represents the tool call
  5836. // identifier.
  5837. func GenAIToolCallID(val string) attribute.KeyValue {
  5838. return GenAIToolCallIDKey.String(val)
  5839. }
  5840. // GenAIToolDescription returns an attribute KeyValue conforming to the
  5841. // "gen_ai.tool.description" semantic conventions. It represents the tool
  5842. // description.
  5843. func GenAIToolDescription(val string) attribute.KeyValue {
  5844. return GenAIToolDescriptionKey.String(val)
  5845. }
  5846. // GenAIToolName returns an attribute KeyValue conforming to the
  5847. // "gen_ai.tool.name" semantic conventions. It represents the name of the tool
  5848. // utilized by the agent.
  5849. func GenAIToolName(val string) attribute.KeyValue {
  5850. return GenAIToolNameKey.String(val)
  5851. }
  5852. // GenAIToolType returns an attribute KeyValue conforming to the
  5853. // "gen_ai.tool.type" semantic conventions. It represents the type of the tool
  5854. // utilized by the agent.
  5855. func GenAIToolType(val string) attribute.KeyValue {
  5856. return GenAIToolTypeKey.String(val)
  5857. }
  5858. // GenAIUsageInputTokens returns an attribute KeyValue conforming to the
  5859. // "gen_ai.usage.input_tokens" semantic conventions. It represents the number of
  5860. // tokens used in the GenAI input (prompt).
  5861. func GenAIUsageInputTokens(val int) attribute.KeyValue {
  5862. return GenAIUsageInputTokensKey.Int(val)
  5863. }
  5864. // GenAIUsageOutputTokens returns an attribute KeyValue conforming to the
  5865. // "gen_ai.usage.output_tokens" semantic conventions. It represents the number of
  5866. // tokens used in the GenAI response (completion).
  5867. func GenAIUsageOutputTokens(val int) attribute.KeyValue {
  5868. return GenAIUsageOutputTokensKey.Int(val)
  5869. }
  5870. // Enum values for gen_ai.openai.request.service_tier
  5871. var (
  5872. // The system will utilize scale tier credits until they are exhausted.
  5873. // Stability: development
  5874. GenAIOpenAIRequestServiceTierAuto = GenAIOpenAIRequestServiceTierKey.String("auto")
  5875. // The system will utilize the default scale tier.
  5876. // Stability: development
  5877. GenAIOpenAIRequestServiceTierDefault = GenAIOpenAIRequestServiceTierKey.String("default")
  5878. )
  5879. // Enum values for gen_ai.operation.name
  5880. var (
  5881. // Chat completion operation such as [OpenAI Chat API]
  5882. // Stability: development
  5883. //
  5884. // [OpenAI Chat API]: https://platform.openai.com/docs/api-reference/chat
  5885. GenAIOperationNameChat = GenAIOperationNameKey.String("chat")
  5886. // Multimodal content generation operation such as [Gemini Generate Content]
  5887. // Stability: development
  5888. //
  5889. // [Gemini Generate Content]: https://ai.google.dev/api/generate-content
  5890. GenAIOperationNameGenerateContent = GenAIOperationNameKey.String("generate_content")
  5891. // Text completions operation such as [OpenAI Completions API (Legacy)]
  5892. // Stability: development
  5893. //
  5894. // [OpenAI Completions API (Legacy)]: https://platform.openai.com/docs/api-reference/completions
  5895. GenAIOperationNameTextCompletion = GenAIOperationNameKey.String("text_completion")
  5896. // Embeddings operation such as [OpenAI Create embeddings API]
  5897. // Stability: development
  5898. //
  5899. // [OpenAI Create embeddings API]: https://platform.openai.com/docs/api-reference/embeddings/create
  5900. GenAIOperationNameEmbeddings = GenAIOperationNameKey.String("embeddings")
  5901. // Create GenAI agent
  5902. // Stability: development
  5903. GenAIOperationNameCreateAgent = GenAIOperationNameKey.String("create_agent")
  5904. // Invoke GenAI agent
  5905. // Stability: development
  5906. GenAIOperationNameInvokeAgent = GenAIOperationNameKey.String("invoke_agent")
  5907. // Execute a tool
  5908. // Stability: development
  5909. GenAIOperationNameExecuteTool = GenAIOperationNameKey.String("execute_tool")
  5910. )
  5911. // Enum values for gen_ai.output.type
  5912. var (
  5913. // Plain text
  5914. // Stability: development
  5915. GenAIOutputTypeText = GenAIOutputTypeKey.String("text")
  5916. // JSON object with known or unknown schema
  5917. // Stability: development
  5918. GenAIOutputTypeJSON = GenAIOutputTypeKey.String("json")
  5919. // Image
  5920. // Stability: development
  5921. GenAIOutputTypeImage = GenAIOutputTypeKey.String("image")
  5922. // Speech
  5923. // Stability: development
  5924. GenAIOutputTypeSpeech = GenAIOutputTypeKey.String("speech")
  5925. )
  5926. // Enum values for gen_ai.system
  5927. var (
  5928. // OpenAI
  5929. // Stability: development
  5930. GenAISystemOpenAI = GenAISystemKey.String("openai")
  5931. // Any Google generative AI endpoint
  5932. // Stability: development
  5933. GenAISystemGCPGenAI = GenAISystemKey.String("gcp.gen_ai")
  5934. // Vertex AI
  5935. // Stability: development
  5936. GenAISystemGCPVertexAI = GenAISystemKey.String("gcp.vertex_ai")
  5937. // Gemini
  5938. // Stability: development
  5939. GenAISystemGCPGemini = GenAISystemKey.String("gcp.gemini")
  5940. // Deprecated: Use 'gcp.vertex_ai' instead.
  5941. GenAISystemVertexAI = GenAISystemKey.String("vertex_ai")
  5942. // Deprecated: Use 'gcp.gemini' instead.
  5943. GenAISystemGemini = GenAISystemKey.String("gemini")
  5944. // Anthropic
  5945. // Stability: development
  5946. GenAISystemAnthropic = GenAISystemKey.String("anthropic")
  5947. // Cohere
  5948. // Stability: development
  5949. GenAISystemCohere = GenAISystemKey.String("cohere")
  5950. // Azure AI Inference
  5951. // Stability: development
  5952. GenAISystemAzAIInference = GenAISystemKey.String("az.ai.inference")
  5953. // Azure OpenAI
  5954. // Stability: development
  5955. GenAISystemAzAIOpenAI = GenAISystemKey.String("az.ai.openai")
  5956. // IBM Watsonx AI
  5957. // Stability: development
  5958. GenAISystemIBMWatsonxAI = GenAISystemKey.String("ibm.watsonx.ai")
  5959. // AWS Bedrock
  5960. // Stability: development
  5961. GenAISystemAWSBedrock = GenAISystemKey.String("aws.bedrock")
  5962. // Perplexity
  5963. // Stability: development
  5964. GenAISystemPerplexity = GenAISystemKey.String("perplexity")
  5965. // xAI
  5966. // Stability: development
  5967. GenAISystemXai = GenAISystemKey.String("xai")
  5968. // DeepSeek
  5969. // Stability: development
  5970. GenAISystemDeepseek = GenAISystemKey.String("deepseek")
  5971. // Groq
  5972. // Stability: development
  5973. GenAISystemGroq = GenAISystemKey.String("groq")
  5974. // Mistral AI
  5975. // Stability: development
  5976. GenAISystemMistralAI = GenAISystemKey.String("mistral_ai")
  5977. )
  5978. // Enum values for gen_ai.token.type
  5979. var (
  5980. // Input tokens (prompt, input, etc.)
  5981. // Stability: development
  5982. GenAITokenTypeInput = GenAITokenTypeKey.String("input")
  5983. // Deprecated: Replaced by `output`.
  5984. GenAITokenTypeCompletion = GenAITokenTypeKey.String("output")
  5985. // Output tokens (completion, response, etc.)
  5986. // Stability: development
  5987. GenAITokenTypeOutput = GenAITokenTypeKey.String("output")
  5988. )
  5989. // Namespace: geo
  5990. const (
  5991. // GeoContinentCodeKey is the attribute Key conforming to the
  5992. // "geo.continent.code" semantic conventions. It represents the two-letter code
  5993. // representing continent’s name.
  5994. //
  5995. // Type: Enum
  5996. // RequirementLevel: Recommended
  5997. // Stability: Development
  5998. //
  5999. // Examples:
  6000. GeoContinentCodeKey = attribute.Key("geo.continent.code")
  6001. // GeoCountryISOCodeKey is the attribute Key conforming to the
  6002. // "geo.country.iso_code" semantic conventions. It represents the two-letter ISO
  6003. // Country Code ([ISO 3166-1 alpha2]).
  6004. //
  6005. // Type: string
  6006. // RequirementLevel: Recommended
  6007. // Stability: Development
  6008. //
  6009. // Examples: "CA"
  6010. //
  6011. // [ISO 3166-1 alpha2]: https://wikipedia.org/wiki/ISO_3166-1#Codes
  6012. GeoCountryISOCodeKey = attribute.Key("geo.country.iso_code")
  6013. // GeoLocalityNameKey is the attribute Key conforming to the "geo.locality.name"
  6014. // semantic conventions. It represents the locality name. Represents the name of
  6015. // a city, town, village, or similar populated place.
  6016. //
  6017. // Type: string
  6018. // RequirementLevel: Recommended
  6019. // Stability: Development
  6020. //
  6021. // Examples: "Montreal", "Berlin"
  6022. GeoLocalityNameKey = attribute.Key("geo.locality.name")
  6023. // GeoLocationLatKey is the attribute Key conforming to the "geo.location.lat"
  6024. // semantic conventions. It represents the latitude of the geo location in
  6025. // [WGS84].
  6026. //
  6027. // Type: double
  6028. // RequirementLevel: Recommended
  6029. // Stability: Development
  6030. //
  6031. // Examples: 45.505918
  6032. //
  6033. // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
  6034. GeoLocationLatKey = attribute.Key("geo.location.lat")
  6035. // GeoLocationLonKey is the attribute Key conforming to the "geo.location.lon"
  6036. // semantic conventions. It represents the longitude of the geo location in
  6037. // [WGS84].
  6038. //
  6039. // Type: double
  6040. // RequirementLevel: Recommended
  6041. // Stability: Development
  6042. //
  6043. // Examples: -73.61483
  6044. //
  6045. // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
  6046. GeoLocationLonKey = attribute.Key("geo.location.lon")
  6047. // GeoPostalCodeKey is the attribute Key conforming to the "geo.postal_code"
  6048. // semantic conventions. It represents the postal code associated with the
  6049. // location. Values appropriate for this field may also be known as a postcode
  6050. // or ZIP code and will vary widely from country to country.
  6051. //
  6052. // Type: string
  6053. // RequirementLevel: Recommended
  6054. // Stability: Development
  6055. //
  6056. // Examples: "94040"
  6057. GeoPostalCodeKey = attribute.Key("geo.postal_code")
  6058. // GeoRegionISOCodeKey is the attribute Key conforming to the
  6059. // "geo.region.iso_code" semantic conventions. It represents the region ISO code
  6060. // ([ISO 3166-2]).
  6061. //
  6062. // Type: string
  6063. // RequirementLevel: Recommended
  6064. // Stability: Development
  6065. //
  6066. // Examples: "CA-QC"
  6067. //
  6068. // [ISO 3166-2]: https://wikipedia.org/wiki/ISO_3166-2
  6069. GeoRegionISOCodeKey = attribute.Key("geo.region.iso_code")
  6070. )
  6071. // GeoCountryISOCode returns an attribute KeyValue conforming to the
  6072. // "geo.country.iso_code" semantic conventions. It represents the two-letter ISO
  6073. // Country Code ([ISO 3166-1 alpha2]).
  6074. //
  6075. // [ISO 3166-1 alpha2]: https://wikipedia.org/wiki/ISO_3166-1#Codes
  6076. func GeoCountryISOCode(val string) attribute.KeyValue {
  6077. return GeoCountryISOCodeKey.String(val)
  6078. }
  6079. // GeoLocalityName returns an attribute KeyValue conforming to the
  6080. // "geo.locality.name" semantic conventions. It represents the locality name.
  6081. // Represents the name of a city, town, village, or similar populated place.
  6082. func GeoLocalityName(val string) attribute.KeyValue {
  6083. return GeoLocalityNameKey.String(val)
  6084. }
  6085. // GeoLocationLat returns an attribute KeyValue conforming to the
  6086. // "geo.location.lat" semantic conventions. It represents the latitude of the geo
  6087. // location in [WGS84].
  6088. //
  6089. // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
  6090. func GeoLocationLat(val float64) attribute.KeyValue {
  6091. return GeoLocationLatKey.Float64(val)
  6092. }
  6093. // GeoLocationLon returns an attribute KeyValue conforming to the
  6094. // "geo.location.lon" semantic conventions. It represents the longitude of the
  6095. // geo location in [WGS84].
  6096. //
  6097. // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
  6098. func GeoLocationLon(val float64) attribute.KeyValue {
  6099. return GeoLocationLonKey.Float64(val)
  6100. }
  6101. // GeoPostalCode returns an attribute KeyValue conforming to the
  6102. // "geo.postal_code" semantic conventions. It represents the postal code
  6103. // associated with the location. Values appropriate for this field may also be
  6104. // known as a postcode or ZIP code and will vary widely from country to country.
  6105. func GeoPostalCode(val string) attribute.KeyValue {
  6106. return GeoPostalCodeKey.String(val)
  6107. }
  6108. // GeoRegionISOCode returns an attribute KeyValue conforming to the
  6109. // "geo.region.iso_code" semantic conventions. It represents the region ISO code
  6110. // ([ISO 3166-2]).
  6111. //
  6112. // [ISO 3166-2]: https://wikipedia.org/wiki/ISO_3166-2
  6113. func GeoRegionISOCode(val string) attribute.KeyValue {
  6114. return GeoRegionISOCodeKey.String(val)
  6115. }
  6116. // Enum values for geo.continent.code
  6117. var (
  6118. // Africa
  6119. // Stability: development
  6120. GeoContinentCodeAf = GeoContinentCodeKey.String("AF")
  6121. // Antarctica
  6122. // Stability: development
  6123. GeoContinentCodeAn = GeoContinentCodeKey.String("AN")
  6124. // Asia
  6125. // Stability: development
  6126. GeoContinentCodeAs = GeoContinentCodeKey.String("AS")
  6127. // Europe
  6128. // Stability: development
  6129. GeoContinentCodeEu = GeoContinentCodeKey.String("EU")
  6130. // North America
  6131. // Stability: development
  6132. GeoContinentCodeNa = GeoContinentCodeKey.String("NA")
  6133. // Oceania
  6134. // Stability: development
  6135. GeoContinentCodeOc = GeoContinentCodeKey.String("OC")
  6136. // South America
  6137. // Stability: development
  6138. GeoContinentCodeSa = GeoContinentCodeKey.String("SA")
  6139. )
  6140. // Namespace: go
  6141. const (
  6142. // GoMemoryTypeKey is the attribute Key conforming to the "go.memory.type"
  6143. // semantic conventions. It represents the type of memory.
  6144. //
  6145. // Type: Enum
  6146. // RequirementLevel: Recommended
  6147. // Stability: Development
  6148. //
  6149. // Examples: "other", "stack"
  6150. GoMemoryTypeKey = attribute.Key("go.memory.type")
  6151. )
  6152. // Enum values for go.memory.type
  6153. var (
  6154. // Memory allocated from the heap that is reserved for stack space, whether or
  6155. // not it is currently in-use.
  6156. // Stability: development
  6157. GoMemoryTypeStack = GoMemoryTypeKey.String("stack")
  6158. // Memory used by the Go runtime, excluding other categories of memory usage
  6159. // described in this enumeration.
  6160. // Stability: development
  6161. GoMemoryTypeOther = GoMemoryTypeKey.String("other")
  6162. )
  6163. // Namespace: graphql
  6164. const (
  6165. // GraphQLDocumentKey is the attribute Key conforming to the "graphql.document"
  6166. // semantic conventions. It represents the GraphQL document being executed.
  6167. //
  6168. // Type: string
  6169. // RequirementLevel: Recommended
  6170. // Stability: Development
  6171. //
  6172. // Examples: query findBookById { bookById(id: ?) { name } }
  6173. // Note: The value may be sanitized to exclude sensitive information.
  6174. GraphQLDocumentKey = attribute.Key("graphql.document")
  6175. // GraphQLOperationNameKey is the attribute Key conforming to the
  6176. // "graphql.operation.name" semantic conventions. It represents the name of the
  6177. // operation being executed.
  6178. //
  6179. // Type: string
  6180. // RequirementLevel: Recommended
  6181. // Stability: Development
  6182. //
  6183. // Examples: findBookById
  6184. GraphQLOperationNameKey = attribute.Key("graphql.operation.name")
  6185. // GraphQLOperationTypeKey is the attribute Key conforming to the
  6186. // "graphql.operation.type" semantic conventions. It represents the type of the
  6187. // operation being executed.
  6188. //
  6189. // Type: Enum
  6190. // RequirementLevel: Recommended
  6191. // Stability: Development
  6192. //
  6193. // Examples: "query", "mutation", "subscription"
  6194. GraphQLOperationTypeKey = attribute.Key("graphql.operation.type")
  6195. )
  6196. // GraphQLDocument returns an attribute KeyValue conforming to the
  6197. // "graphql.document" semantic conventions. It represents the GraphQL document
  6198. // being executed.
  6199. func GraphQLDocument(val string) attribute.KeyValue {
  6200. return GraphQLDocumentKey.String(val)
  6201. }
  6202. // GraphQLOperationName returns an attribute KeyValue conforming to the
  6203. // "graphql.operation.name" semantic conventions. It represents the name of the
  6204. // operation being executed.
  6205. func GraphQLOperationName(val string) attribute.KeyValue {
  6206. return GraphQLOperationNameKey.String(val)
  6207. }
  6208. // Enum values for graphql.operation.type
  6209. var (
  6210. // GraphQL query
  6211. // Stability: development
  6212. GraphQLOperationTypeQuery = GraphQLOperationTypeKey.String("query")
  6213. // GraphQL mutation
  6214. // Stability: development
  6215. GraphQLOperationTypeMutation = GraphQLOperationTypeKey.String("mutation")
  6216. // GraphQL subscription
  6217. // Stability: development
  6218. GraphQLOperationTypeSubscription = GraphQLOperationTypeKey.String("subscription")
  6219. )
  6220. // Namespace: heroku
  6221. const (
  6222. // HerokuAppIDKey is the attribute Key conforming to the "heroku.app.id"
  6223. // semantic conventions. It represents the unique identifier for the
  6224. // application.
  6225. //
  6226. // Type: string
  6227. // RequirementLevel: Recommended
  6228. // Stability: Development
  6229. //
  6230. // Examples: "2daa2797-e42b-4624-9322-ec3f968df4da"
  6231. HerokuAppIDKey = attribute.Key("heroku.app.id")
  6232. // HerokuReleaseCommitKey is the attribute Key conforming to the
  6233. // "heroku.release.commit" semantic conventions. It represents the commit hash
  6234. // for the current release.
  6235. //
  6236. // Type: string
  6237. // RequirementLevel: Recommended
  6238. // Stability: Development
  6239. //
  6240. // Examples: "e6134959463efd8966b20e75b913cafe3f5ec"
  6241. HerokuReleaseCommitKey = attribute.Key("heroku.release.commit")
  6242. // HerokuReleaseCreationTimestampKey is the attribute Key conforming to the
  6243. // "heroku.release.creation_timestamp" semantic conventions. It represents the
  6244. // time and date the release was created.
  6245. //
  6246. // Type: string
  6247. // RequirementLevel: Recommended
  6248. // Stability: Development
  6249. //
  6250. // Examples: "2022-10-23T18:00:42Z"
  6251. HerokuReleaseCreationTimestampKey = attribute.Key("heroku.release.creation_timestamp")
  6252. )
  6253. // HerokuAppID returns an attribute KeyValue conforming to the "heroku.app.id"
  6254. // semantic conventions. It represents the unique identifier for the application.
  6255. func HerokuAppID(val string) attribute.KeyValue {
  6256. return HerokuAppIDKey.String(val)
  6257. }
  6258. // HerokuReleaseCommit returns an attribute KeyValue conforming to the
  6259. // "heroku.release.commit" semantic conventions. It represents the commit hash
  6260. // for the current release.
  6261. func HerokuReleaseCommit(val string) attribute.KeyValue {
  6262. return HerokuReleaseCommitKey.String(val)
  6263. }
  6264. // HerokuReleaseCreationTimestamp returns an attribute KeyValue conforming to the
  6265. // "heroku.release.creation_timestamp" semantic conventions. It represents the
  6266. // time and date the release was created.
  6267. func HerokuReleaseCreationTimestamp(val string) attribute.KeyValue {
  6268. return HerokuReleaseCreationTimestampKey.String(val)
  6269. }
  6270. // Namespace: host
  6271. const (
  6272. // HostArchKey is the attribute Key conforming to the "host.arch" semantic
  6273. // conventions. It represents the CPU architecture the host system is running
  6274. // on.
  6275. //
  6276. // Type: Enum
  6277. // RequirementLevel: Recommended
  6278. // Stability: Development
  6279. //
  6280. // Examples:
  6281. HostArchKey = attribute.Key("host.arch")
  6282. // HostCPUCacheL2SizeKey is the attribute Key conforming to the
  6283. // "host.cpu.cache.l2.size" semantic conventions. It represents the amount of
  6284. // level 2 memory cache available to the processor (in Bytes).
  6285. //
  6286. // Type: int
  6287. // RequirementLevel: Recommended
  6288. // Stability: Development
  6289. //
  6290. // Examples: 12288000
  6291. HostCPUCacheL2SizeKey = attribute.Key("host.cpu.cache.l2.size")
  6292. // HostCPUFamilyKey is the attribute Key conforming to the "host.cpu.family"
  6293. // semantic conventions. It represents the family or generation of the CPU.
  6294. //
  6295. // Type: string
  6296. // RequirementLevel: Recommended
  6297. // Stability: Development
  6298. //
  6299. // Examples: "6", "PA-RISC 1.1e"
  6300. HostCPUFamilyKey = attribute.Key("host.cpu.family")
  6301. // HostCPUModelIDKey is the attribute Key conforming to the "host.cpu.model.id"
  6302. // semantic conventions. It represents the model identifier. It provides more
  6303. // granular information about the CPU, distinguishing it from other CPUs within
  6304. // the same family.
  6305. //
  6306. // Type: string
  6307. // RequirementLevel: Recommended
  6308. // Stability: Development
  6309. //
  6310. // Examples: "6", "9000/778/B180L"
  6311. HostCPUModelIDKey = attribute.Key("host.cpu.model.id")
  6312. // HostCPUModelNameKey is the attribute Key conforming to the
  6313. // "host.cpu.model.name" semantic conventions. It represents the model
  6314. // designation of the processor.
  6315. //
  6316. // Type: string
  6317. // RequirementLevel: Recommended
  6318. // Stability: Development
  6319. //
  6320. // Examples: "11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz"
  6321. HostCPUModelNameKey = attribute.Key("host.cpu.model.name")
  6322. // HostCPUSteppingKey is the attribute Key conforming to the "host.cpu.stepping"
  6323. // semantic conventions. It represents the stepping or core revisions.
  6324. //
  6325. // Type: string
  6326. // RequirementLevel: Recommended
  6327. // Stability: Development
  6328. //
  6329. // Examples: "1", "r1p1"
  6330. HostCPUSteppingKey = attribute.Key("host.cpu.stepping")
  6331. // HostCPUVendorIDKey is the attribute Key conforming to the
  6332. // "host.cpu.vendor.id" semantic conventions. It represents the processor
  6333. // manufacturer identifier. A maximum 12-character string.
  6334. //
  6335. // Type: string
  6336. // RequirementLevel: Recommended
  6337. // Stability: Development
  6338. //
  6339. // Examples: "GenuineIntel"
  6340. // Note: [CPUID] command returns the vendor ID string in EBX, EDX and ECX
  6341. // registers. Writing these to memory in this order results in a 12-character
  6342. // string.
  6343. //
  6344. // [CPUID]: https://wiki.osdev.org/CPUID
  6345. HostCPUVendorIDKey = attribute.Key("host.cpu.vendor.id")
  6346. // HostIDKey is the attribute Key conforming to the "host.id" semantic
  6347. // conventions. It represents the unique host ID. For Cloud, this must be the
  6348. // instance_id assigned by the cloud provider. For non-containerized systems,
  6349. // this should be the `machine-id`. See the table below for the sources to use
  6350. // to determine the `machine-id` based on operating system.
  6351. //
  6352. // Type: string
  6353. // RequirementLevel: Recommended
  6354. // Stability: Development
  6355. //
  6356. // Examples: "fdbf79e8af94cb7f9e8df36789187052"
  6357. HostIDKey = attribute.Key("host.id")
  6358. // HostImageIDKey is the attribute Key conforming to the "host.image.id"
  6359. // semantic conventions. It represents the VM image ID or host OS image ID. For
  6360. // Cloud, this value is from the provider.
  6361. //
  6362. // Type: string
  6363. // RequirementLevel: Recommended
  6364. // Stability: Development
  6365. //
  6366. // Examples: "ami-07b06b442921831e5"
  6367. HostImageIDKey = attribute.Key("host.image.id")
  6368. // HostImageNameKey is the attribute Key conforming to the "host.image.name"
  6369. // semantic conventions. It represents the name of the VM image or OS install
  6370. // the host was instantiated from.
  6371. //
  6372. // Type: string
  6373. // RequirementLevel: Recommended
  6374. // Stability: Development
  6375. //
  6376. // Examples: "infra-ami-eks-worker-node-7d4ec78312", "CentOS-8-x86_64-1905"
  6377. HostImageNameKey = attribute.Key("host.image.name")
  6378. // HostImageVersionKey is the attribute Key conforming to the
  6379. // "host.image.version" semantic conventions. It represents the version string
  6380. // of the VM image or host OS as defined in [Version Attributes].
  6381. //
  6382. // Type: string
  6383. // RequirementLevel: Recommended
  6384. // Stability: Development
  6385. //
  6386. // Examples: "0.1"
  6387. //
  6388. // [Version Attributes]: /docs/resource/README.md#version-attributes
  6389. HostImageVersionKey = attribute.Key("host.image.version")
  6390. // HostIPKey is the attribute Key conforming to the "host.ip" semantic
  6391. // conventions. It represents the available IP addresses of the host, excluding
  6392. // loopback interfaces.
  6393. //
  6394. // Type: string[]
  6395. // RequirementLevel: Recommended
  6396. // Stability: Development
  6397. //
  6398. // Examples: "192.168.1.140", "fe80::abc2:4a28:737a:609e"
  6399. // Note: IPv4 Addresses MUST be specified in dotted-quad notation. IPv6
  6400. // addresses MUST be specified in the [RFC 5952] format.
  6401. //
  6402. // [RFC 5952]: https://www.rfc-editor.org/rfc/rfc5952.html
  6403. HostIPKey = attribute.Key("host.ip")
  6404. // HostMacKey is the attribute Key conforming to the "host.mac" semantic
  6405. // conventions. It represents the available MAC addresses of the host, excluding
  6406. // loopback interfaces.
  6407. //
  6408. // Type: string[]
  6409. // RequirementLevel: Recommended
  6410. // Stability: Development
  6411. //
  6412. // Examples: "AC-DE-48-23-45-67", "AC-DE-48-23-45-67-01-9F"
  6413. // Note: MAC Addresses MUST be represented in [IEEE RA hexadecimal form]: as
  6414. // hyphen-separated octets in uppercase hexadecimal form from most to least
  6415. // significant.
  6416. //
  6417. // [IEEE RA hexadecimal form]: https://standards.ieee.org/wp-content/uploads/import/documents/tutorials/eui.pdf
  6418. HostMacKey = attribute.Key("host.mac")
  6419. // HostNameKey is the attribute Key conforming to the "host.name" semantic
  6420. // conventions. It represents the name of the host. On Unix systems, it may
  6421. // contain what the hostname command returns, or the fully qualified hostname,
  6422. // or another name specified by the user.
  6423. //
  6424. // Type: string
  6425. // RequirementLevel: Recommended
  6426. // Stability: Development
  6427. //
  6428. // Examples: "opentelemetry-test"
  6429. HostNameKey = attribute.Key("host.name")
  6430. // HostTypeKey is the attribute Key conforming to the "host.type" semantic
  6431. // conventions. It represents the type of host. For Cloud, this must be the
  6432. // machine type.
  6433. //
  6434. // Type: string
  6435. // RequirementLevel: Recommended
  6436. // Stability: Development
  6437. //
  6438. // Examples: "n1-standard-1"
  6439. HostTypeKey = attribute.Key("host.type")
  6440. )
  6441. // HostCPUCacheL2Size returns an attribute KeyValue conforming to the
  6442. // "host.cpu.cache.l2.size" semantic conventions. It represents the amount of
  6443. // level 2 memory cache available to the processor (in Bytes).
  6444. func HostCPUCacheL2Size(val int) attribute.KeyValue {
  6445. return HostCPUCacheL2SizeKey.Int(val)
  6446. }
  6447. // HostCPUFamily returns an attribute KeyValue conforming to the
  6448. // "host.cpu.family" semantic conventions. It represents the family or generation
  6449. // of the CPU.
  6450. func HostCPUFamily(val string) attribute.KeyValue {
  6451. return HostCPUFamilyKey.String(val)
  6452. }
  6453. // HostCPUModelID returns an attribute KeyValue conforming to the
  6454. // "host.cpu.model.id" semantic conventions. It represents the model identifier.
  6455. // It provides more granular information about the CPU, distinguishing it from
  6456. // other CPUs within the same family.
  6457. func HostCPUModelID(val string) attribute.KeyValue {
  6458. return HostCPUModelIDKey.String(val)
  6459. }
  6460. // HostCPUModelName returns an attribute KeyValue conforming to the
  6461. // "host.cpu.model.name" semantic conventions. It represents the model
  6462. // designation of the processor.
  6463. func HostCPUModelName(val string) attribute.KeyValue {
  6464. return HostCPUModelNameKey.String(val)
  6465. }
  6466. // HostCPUStepping returns an attribute KeyValue conforming to the
  6467. // "host.cpu.stepping" semantic conventions. It represents the stepping or core
  6468. // revisions.
  6469. func HostCPUStepping(val string) attribute.KeyValue {
  6470. return HostCPUSteppingKey.String(val)
  6471. }
  6472. // HostCPUVendorID returns an attribute KeyValue conforming to the
  6473. // "host.cpu.vendor.id" semantic conventions. It represents the processor
  6474. // manufacturer identifier. A maximum 12-character string.
  6475. func HostCPUVendorID(val string) attribute.KeyValue {
  6476. return HostCPUVendorIDKey.String(val)
  6477. }
  6478. // HostID returns an attribute KeyValue conforming to the "host.id" semantic
  6479. // conventions. It represents the unique host ID. For Cloud, this must be the
  6480. // instance_id assigned by the cloud provider. For non-containerized systems,
  6481. // this should be the `machine-id`. See the table below for the sources to use to
  6482. // determine the `machine-id` based on operating system.
  6483. func HostID(val string) attribute.KeyValue {
  6484. return HostIDKey.String(val)
  6485. }
  6486. // HostImageID returns an attribute KeyValue conforming to the "host.image.id"
  6487. // semantic conventions. It represents the VM image ID or host OS image ID. For
  6488. // Cloud, this value is from the provider.
  6489. func HostImageID(val string) attribute.KeyValue {
  6490. return HostImageIDKey.String(val)
  6491. }
  6492. // HostImageName returns an attribute KeyValue conforming to the
  6493. // "host.image.name" semantic conventions. It represents the name of the VM image
  6494. // or OS install the host was instantiated from.
  6495. func HostImageName(val string) attribute.KeyValue {
  6496. return HostImageNameKey.String(val)
  6497. }
  6498. // HostImageVersion returns an attribute KeyValue conforming to the
  6499. // "host.image.version" semantic conventions. It represents the version string of
  6500. // the VM image or host OS as defined in [Version Attributes].
  6501. //
  6502. // [Version Attributes]: /docs/resource/README.md#version-attributes
  6503. func HostImageVersion(val string) attribute.KeyValue {
  6504. return HostImageVersionKey.String(val)
  6505. }
  6506. // HostIP returns an attribute KeyValue conforming to the "host.ip" semantic
  6507. // conventions. It represents the available IP addresses of the host, excluding
  6508. // loopback interfaces.
  6509. func HostIP(val ...string) attribute.KeyValue {
  6510. return HostIPKey.StringSlice(val)
  6511. }
  6512. // HostMac returns an attribute KeyValue conforming to the "host.mac" semantic
  6513. // conventions. It represents the available MAC addresses of the host, excluding
  6514. // loopback interfaces.
  6515. func HostMac(val ...string) attribute.KeyValue {
  6516. return HostMacKey.StringSlice(val)
  6517. }
  6518. // HostName returns an attribute KeyValue conforming to the "host.name" semantic
  6519. // conventions. It represents the name of the host. On Unix systems, it may
  6520. // contain what the hostname command returns, or the fully qualified hostname, or
  6521. // another name specified by the user.
  6522. func HostName(val string) attribute.KeyValue {
  6523. return HostNameKey.String(val)
  6524. }
  6525. // HostType returns an attribute KeyValue conforming to the "host.type" semantic
  6526. // conventions. It represents the type of host. For Cloud, this must be the
  6527. // machine type.
  6528. func HostType(val string) attribute.KeyValue {
  6529. return HostTypeKey.String(val)
  6530. }
  6531. // Enum values for host.arch
  6532. var (
  6533. // AMD64
  6534. // Stability: development
  6535. HostArchAMD64 = HostArchKey.String("amd64")
  6536. // ARM32
  6537. // Stability: development
  6538. HostArchARM32 = HostArchKey.String("arm32")
  6539. // ARM64
  6540. // Stability: development
  6541. HostArchARM64 = HostArchKey.String("arm64")
  6542. // Itanium
  6543. // Stability: development
  6544. HostArchIA64 = HostArchKey.String("ia64")
  6545. // 32-bit PowerPC
  6546. // Stability: development
  6547. HostArchPPC32 = HostArchKey.String("ppc32")
  6548. // 64-bit PowerPC
  6549. // Stability: development
  6550. HostArchPPC64 = HostArchKey.String("ppc64")
  6551. // IBM z/Architecture
  6552. // Stability: development
  6553. HostArchS390x = HostArchKey.String("s390x")
  6554. // 32-bit x86
  6555. // Stability: development
  6556. HostArchX86 = HostArchKey.String("x86")
  6557. )
  6558. // Namespace: http
  6559. const (
  6560. // HTTPConnectionStateKey is the attribute Key conforming to the
  6561. // "http.connection.state" semantic conventions. It represents the state of the
  6562. // HTTP connection in the HTTP connection pool.
  6563. //
  6564. // Type: Enum
  6565. // RequirementLevel: Recommended
  6566. // Stability: Development
  6567. //
  6568. // Examples: "active", "idle"
  6569. HTTPConnectionStateKey = attribute.Key("http.connection.state")
  6570. // HTTPRequestBodySizeKey is the attribute Key conforming to the
  6571. // "http.request.body.size" semantic conventions. It represents the size of the
  6572. // request payload body in bytes. This is the number of bytes transferred
  6573. // excluding headers and is often, but not always, present as the
  6574. // [Content-Length] header. For requests using transport encoding, this should
  6575. // be the compressed size.
  6576. //
  6577. // Type: int
  6578. // RequirementLevel: Recommended
  6579. // Stability: Development
  6580. //
  6581. // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
  6582. HTTPRequestBodySizeKey = attribute.Key("http.request.body.size")
  6583. // HTTPRequestMethodKey is the attribute Key conforming to the
  6584. // "http.request.method" semantic conventions. It represents the HTTP request
  6585. // method.
  6586. //
  6587. // Type: Enum
  6588. // RequirementLevel: Recommended
  6589. // Stability: Stable
  6590. //
  6591. // Examples: "GET", "POST", "HEAD"
  6592. // Note: HTTP request method value SHOULD be "known" to the instrumentation.
  6593. // By default, this convention defines "known" methods as the ones listed in
  6594. // [RFC9110]
  6595. // and the PATCH method defined in [RFC5789].
  6596. //
  6597. // If the HTTP request method is not known to instrumentation, it MUST set the
  6598. // `http.request.method` attribute to `_OTHER`.
  6599. //
  6600. // If the HTTP instrumentation could end up converting valid HTTP request
  6601. // methods to `_OTHER`, then it MUST provide a way to override
  6602. // the list of known HTTP methods. If this override is done via environment
  6603. // variable, then the environment variable MUST be named
  6604. // OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of
  6605. // case-sensitive known HTTP methods
  6606. // (this list MUST be a full override of the default known method, it is not a
  6607. // list of known methods in addition to the defaults).
  6608. //
  6609. // HTTP method names are case-sensitive and `http.request.method` attribute
  6610. // value MUST match a known HTTP method name exactly.
  6611. // Instrumentations for specific web frameworks that consider HTTP methods to be
  6612. // case insensitive, SHOULD populate a canonical equivalent.
  6613. // Tracing instrumentations that do so, MUST also set
  6614. // `http.request.method_original` to the original value.
  6615. //
  6616. // [RFC9110]: https://www.rfc-editor.org/rfc/rfc9110.html#name-methods
  6617. // [RFC5789]: https://www.rfc-editor.org/rfc/rfc5789.html
  6618. HTTPRequestMethodKey = attribute.Key("http.request.method")
  6619. // HTTPRequestMethodOriginalKey is the attribute Key conforming to the
  6620. // "http.request.method_original" semantic conventions. It represents the
  6621. // original HTTP method sent by the client in the request line.
  6622. //
  6623. // Type: string
  6624. // RequirementLevel: Recommended
  6625. // Stability: Stable
  6626. //
  6627. // Examples: "GeT", "ACL", "foo"
  6628. HTTPRequestMethodOriginalKey = attribute.Key("http.request.method_original")
  6629. // HTTPRequestResendCountKey is the attribute Key conforming to the
  6630. // "http.request.resend_count" semantic conventions. It represents the ordinal
  6631. // number of request resending attempt (for any reason, including redirects).
  6632. //
  6633. // Type: int
  6634. // RequirementLevel: Recommended
  6635. // Stability: Stable
  6636. //
  6637. // Note: The resend count SHOULD be updated each time an HTTP request gets
  6638. // resent by the client, regardless of what was the cause of the resending (e.g.
  6639. // redirection, authorization failure, 503 Server Unavailable, network issues,
  6640. // or any other).
  6641. HTTPRequestResendCountKey = attribute.Key("http.request.resend_count")
  6642. // HTTPRequestSizeKey is the attribute Key conforming to the "http.request.size"
  6643. // semantic conventions. It represents the total size of the request in bytes.
  6644. // This should be the total number of bytes sent over the wire, including the
  6645. // request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers, and request
  6646. // body if any.
  6647. //
  6648. // Type: int
  6649. // RequirementLevel: Recommended
  6650. // Stability: Development
  6651. HTTPRequestSizeKey = attribute.Key("http.request.size")
  6652. // HTTPResponseBodySizeKey is the attribute Key conforming to the
  6653. // "http.response.body.size" semantic conventions. It represents the size of the
  6654. // response payload body in bytes. This is the number of bytes transferred
  6655. // excluding headers and is often, but not always, present as the
  6656. // [Content-Length] header. For requests using transport encoding, this should
  6657. // be the compressed size.
  6658. //
  6659. // Type: int
  6660. // RequirementLevel: Recommended
  6661. // Stability: Development
  6662. //
  6663. // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
  6664. HTTPResponseBodySizeKey = attribute.Key("http.response.body.size")
  6665. // HTTPResponseSizeKey is the attribute Key conforming to the
  6666. // "http.response.size" semantic conventions. It represents the total size of
  6667. // the response in bytes. This should be the total number of bytes sent over the
  6668. // wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3),
  6669. // headers, and response body and trailers if any.
  6670. //
  6671. // Type: int
  6672. // RequirementLevel: Recommended
  6673. // Stability: Development
  6674. HTTPResponseSizeKey = attribute.Key("http.response.size")
  6675. // HTTPResponseStatusCodeKey is the attribute Key conforming to the
  6676. // "http.response.status_code" semantic conventions. It represents the
  6677. // [HTTP response status code].
  6678. //
  6679. // Type: int
  6680. // RequirementLevel: Recommended
  6681. // Stability: Stable
  6682. //
  6683. // Examples: 200
  6684. //
  6685. // [HTTP response status code]: https://tools.ietf.org/html/rfc7231#section-6
  6686. HTTPResponseStatusCodeKey = attribute.Key("http.response.status_code")
  6687. // HTTPRouteKey is the attribute Key conforming to the "http.route" semantic
  6688. // conventions. It represents the matched route, that is, the path template in
  6689. // the format used by the respective server framework.
  6690. //
  6691. // Type: string
  6692. // RequirementLevel: Recommended
  6693. // Stability: Stable
  6694. //
  6695. // Examples: "/users/:userID?", "{controller}/{action}/{id?}"
  6696. // Note: MUST NOT be populated when this is not supported by the HTTP server
  6697. // framework as the route attribute should have low-cardinality and the URI path
  6698. // can NOT substitute it.
  6699. // SHOULD include the [application root] if there is one.
  6700. //
  6701. // [application root]: /docs/http/http-spans.md#http-server-definitions
  6702. HTTPRouteKey = attribute.Key("http.route")
  6703. )
  6704. // HTTPRequestBodySize returns an attribute KeyValue conforming to the
  6705. // "http.request.body.size" semantic conventions. It represents the size of the
  6706. // request payload body in bytes. This is the number of bytes transferred
  6707. // excluding headers and is often, but not always, present as the
  6708. // [Content-Length] header. For requests using transport encoding, this should be
  6709. // the compressed size.
  6710. //
  6711. // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
  6712. func HTTPRequestBodySize(val int) attribute.KeyValue {
  6713. return HTTPRequestBodySizeKey.Int(val)
  6714. }
  6715. // HTTPRequestMethodOriginal returns an attribute KeyValue conforming to the
  6716. // "http.request.method_original" semantic conventions. It represents the
  6717. // original HTTP method sent by the client in the request line.
  6718. func HTTPRequestMethodOriginal(val string) attribute.KeyValue {
  6719. return HTTPRequestMethodOriginalKey.String(val)
  6720. }
  6721. // HTTPRequestResendCount returns an attribute KeyValue conforming to the
  6722. // "http.request.resend_count" semantic conventions. It represents the ordinal
  6723. // number of request resending attempt (for any reason, including redirects).
  6724. func HTTPRequestResendCount(val int) attribute.KeyValue {
  6725. return HTTPRequestResendCountKey.Int(val)
  6726. }
  6727. // HTTPRequestSize returns an attribute KeyValue conforming to the
  6728. // "http.request.size" semantic conventions. It represents the total size of the
  6729. // request in bytes. This should be the total number of bytes sent over the wire,
  6730. // including the request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers,
  6731. // and request body if any.
  6732. func HTTPRequestSize(val int) attribute.KeyValue {
  6733. return HTTPRequestSizeKey.Int(val)
  6734. }
  6735. // HTTPResponseBodySize returns an attribute KeyValue conforming to the
  6736. // "http.response.body.size" semantic conventions. It represents the size of the
  6737. // response payload body in bytes. This is the number of bytes transferred
  6738. // excluding headers and is often, but not always, present as the
  6739. // [Content-Length] header. For requests using transport encoding, this should be
  6740. // the compressed size.
  6741. //
  6742. // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
  6743. func HTTPResponseBodySize(val int) attribute.KeyValue {
  6744. return HTTPResponseBodySizeKey.Int(val)
  6745. }
  6746. // HTTPResponseSize returns an attribute KeyValue conforming to the
  6747. // "http.response.size" semantic conventions. It represents the total size of the
  6748. // response in bytes. This should be the total number of bytes sent over the
  6749. // wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3),
  6750. // headers, and response body and trailers if any.
  6751. func HTTPResponseSize(val int) attribute.KeyValue {
  6752. return HTTPResponseSizeKey.Int(val)
  6753. }
  6754. // HTTPResponseStatusCode returns an attribute KeyValue conforming to the
  6755. // "http.response.status_code" semantic conventions. It represents the
  6756. // [HTTP response status code].
  6757. //
  6758. // [HTTP response status code]: https://tools.ietf.org/html/rfc7231#section-6
  6759. func HTTPResponseStatusCode(val int) attribute.KeyValue {
  6760. return HTTPResponseStatusCodeKey.Int(val)
  6761. }
  6762. // HTTPRoute returns an attribute KeyValue conforming to the "http.route"
  6763. // semantic conventions. It represents the matched route, that is, the path
  6764. // template in the format used by the respective server framework.
  6765. func HTTPRoute(val string) attribute.KeyValue {
  6766. return HTTPRouteKey.String(val)
  6767. }
  6768. // Enum values for http.connection.state
  6769. var (
  6770. // active state.
  6771. // Stability: development
  6772. HTTPConnectionStateActive = HTTPConnectionStateKey.String("active")
  6773. // idle state.
  6774. // Stability: development
  6775. HTTPConnectionStateIdle = HTTPConnectionStateKey.String("idle")
  6776. )
  6777. // Enum values for http.request.method
  6778. var (
  6779. // CONNECT method.
  6780. // Stability: stable
  6781. HTTPRequestMethodConnect = HTTPRequestMethodKey.String("CONNECT")
  6782. // DELETE method.
  6783. // Stability: stable
  6784. HTTPRequestMethodDelete = HTTPRequestMethodKey.String("DELETE")
  6785. // GET method.
  6786. // Stability: stable
  6787. HTTPRequestMethodGet = HTTPRequestMethodKey.String("GET")
  6788. // HEAD method.
  6789. // Stability: stable
  6790. HTTPRequestMethodHead = HTTPRequestMethodKey.String("HEAD")
  6791. // OPTIONS method.
  6792. // Stability: stable
  6793. HTTPRequestMethodOptions = HTTPRequestMethodKey.String("OPTIONS")
  6794. // PATCH method.
  6795. // Stability: stable
  6796. HTTPRequestMethodPatch = HTTPRequestMethodKey.String("PATCH")
  6797. // POST method.
  6798. // Stability: stable
  6799. HTTPRequestMethodPost = HTTPRequestMethodKey.String("POST")
  6800. // PUT method.
  6801. // Stability: stable
  6802. HTTPRequestMethodPut = HTTPRequestMethodKey.String("PUT")
  6803. // TRACE method.
  6804. // Stability: stable
  6805. HTTPRequestMethodTrace = HTTPRequestMethodKey.String("TRACE")
  6806. // Any HTTP method that the instrumentation has no prior knowledge of.
  6807. // Stability: stable
  6808. HTTPRequestMethodOther = HTTPRequestMethodKey.String("_OTHER")
  6809. )
  6810. // Namespace: hw
  6811. const (
  6812. // HwIDKey is the attribute Key conforming to the "hw.id" semantic conventions.
  6813. // It represents an identifier for the hardware component, unique within the
  6814. // monitored host.
  6815. //
  6816. // Type: string
  6817. // RequirementLevel: Recommended
  6818. // Stability: Development
  6819. //
  6820. // Examples: "win32battery_battery_testsysa33_1"
  6821. HwIDKey = attribute.Key("hw.id")
  6822. // HwNameKey is the attribute Key conforming to the "hw.name" semantic
  6823. // conventions. It represents an easily-recognizable name for the hardware
  6824. // component.
  6825. //
  6826. // Type: string
  6827. // RequirementLevel: Recommended
  6828. // Stability: Development
  6829. //
  6830. // Examples: "eth0"
  6831. HwNameKey = attribute.Key("hw.name")
  6832. // HwParentKey is the attribute Key conforming to the "hw.parent" semantic
  6833. // conventions. It represents the unique identifier of the parent component
  6834. // (typically the `hw.id` attribute of the enclosure, or disk controller).
  6835. //
  6836. // Type: string
  6837. // RequirementLevel: Recommended
  6838. // Stability: Development
  6839. //
  6840. // Examples: "dellStorage_perc_0"
  6841. HwParentKey = attribute.Key("hw.parent")
  6842. // HwStateKey is the attribute Key conforming to the "hw.state" semantic
  6843. // conventions. It represents the current state of the component.
  6844. //
  6845. // Type: Enum
  6846. // RequirementLevel: Recommended
  6847. // Stability: Development
  6848. //
  6849. // Examples:
  6850. HwStateKey = attribute.Key("hw.state")
  6851. // HwTypeKey is the attribute Key conforming to the "hw.type" semantic
  6852. // conventions. It represents the type of the component.
  6853. //
  6854. // Type: Enum
  6855. // RequirementLevel: Recommended
  6856. // Stability: Development
  6857. //
  6858. // Examples:
  6859. // Note: Describes the category of the hardware component for which `hw.state`
  6860. // is being reported. For example, `hw.type=temperature` along with
  6861. // `hw.state=degraded` would indicate that the temperature of the hardware
  6862. // component has been reported as `degraded`.
  6863. HwTypeKey = attribute.Key("hw.type")
  6864. )
  6865. // HwID returns an attribute KeyValue conforming to the "hw.id" semantic
  6866. // conventions. It represents an identifier for the hardware component, unique
  6867. // within the monitored host.
  6868. func HwID(val string) attribute.KeyValue {
  6869. return HwIDKey.String(val)
  6870. }
  6871. // HwName returns an attribute KeyValue conforming to the "hw.name" semantic
  6872. // conventions. It represents an easily-recognizable name for the hardware
  6873. // component.
  6874. func HwName(val string) attribute.KeyValue {
  6875. return HwNameKey.String(val)
  6876. }
  6877. // HwParent returns an attribute KeyValue conforming to the "hw.parent" semantic
  6878. // conventions. It represents the unique identifier of the parent component
  6879. // (typically the `hw.id` attribute of the enclosure, or disk controller).
  6880. func HwParent(val string) attribute.KeyValue {
  6881. return HwParentKey.String(val)
  6882. }
  6883. // Enum values for hw.state
  6884. var (
  6885. // Ok
  6886. // Stability: development
  6887. HwStateOk = HwStateKey.String("ok")
  6888. // Degraded
  6889. // Stability: development
  6890. HwStateDegraded = HwStateKey.String("degraded")
  6891. // Failed
  6892. // Stability: development
  6893. HwStateFailed = HwStateKey.String("failed")
  6894. )
  6895. // Enum values for hw.type
  6896. var (
  6897. // Battery
  6898. // Stability: development
  6899. HwTypeBattery = HwTypeKey.String("battery")
  6900. // CPU
  6901. // Stability: development
  6902. HwTypeCPU = HwTypeKey.String("cpu")
  6903. // Disk controller
  6904. // Stability: development
  6905. HwTypeDiskController = HwTypeKey.String("disk_controller")
  6906. // Enclosure
  6907. // Stability: development
  6908. HwTypeEnclosure = HwTypeKey.String("enclosure")
  6909. // Fan
  6910. // Stability: development
  6911. HwTypeFan = HwTypeKey.String("fan")
  6912. // GPU
  6913. // Stability: development
  6914. HwTypeGpu = HwTypeKey.String("gpu")
  6915. // Logical disk
  6916. // Stability: development
  6917. HwTypeLogicalDisk = HwTypeKey.String("logical_disk")
  6918. // Memory
  6919. // Stability: development
  6920. HwTypeMemory = HwTypeKey.String("memory")
  6921. // Network
  6922. // Stability: development
  6923. HwTypeNetwork = HwTypeKey.String("network")
  6924. // Physical disk
  6925. // Stability: development
  6926. HwTypePhysicalDisk = HwTypeKey.String("physical_disk")
  6927. // Power supply
  6928. // Stability: development
  6929. HwTypePowerSupply = HwTypeKey.String("power_supply")
  6930. // Tape drive
  6931. // Stability: development
  6932. HwTypeTapeDrive = HwTypeKey.String("tape_drive")
  6933. // Temperature
  6934. // Stability: development
  6935. HwTypeTemperature = HwTypeKey.String("temperature")
  6936. // Voltage
  6937. // Stability: development
  6938. HwTypeVoltage = HwTypeKey.String("voltage")
  6939. )
  6940. // Namespace: ios
  6941. const (
  6942. // IOSAppStateKey is the attribute Key conforming to the "ios.app.state"
  6943. // semantic conventions. It represents the this attribute represents the state
  6944. // of the application.
  6945. //
  6946. // Type: Enum
  6947. // RequirementLevel: Recommended
  6948. // Stability: Development
  6949. //
  6950. // Examples:
  6951. // Note: The iOS lifecycle states are defined in the
  6952. // [UIApplicationDelegate documentation], and from which the `OS terminology`
  6953. // column values are derived.
  6954. //
  6955. // [UIApplicationDelegate documentation]: https://developer.apple.com/documentation/uikit/uiapplicationdelegate
  6956. IOSAppStateKey = attribute.Key("ios.app.state")
  6957. )
  6958. // Enum values for ios.app.state
  6959. var (
  6960. // The app has become `active`. Associated with UIKit notification
  6961. // `applicationDidBecomeActive`.
  6962. //
  6963. // Stability: development
  6964. IOSAppStateActive = IOSAppStateKey.String("active")
  6965. // The app is now `inactive`. Associated with UIKit notification
  6966. // `applicationWillResignActive`.
  6967. //
  6968. // Stability: development
  6969. IOSAppStateInactive = IOSAppStateKey.String("inactive")
  6970. // The app is now in the background. This value is associated with UIKit
  6971. // notification `applicationDidEnterBackground`.
  6972. //
  6973. // Stability: development
  6974. IOSAppStateBackground = IOSAppStateKey.String("background")
  6975. // The app is now in the foreground. This value is associated with UIKit
  6976. // notification `applicationWillEnterForeground`.
  6977. //
  6978. // Stability: development
  6979. IOSAppStateForeground = IOSAppStateKey.String("foreground")
  6980. // The app is about to terminate. Associated with UIKit notification
  6981. // `applicationWillTerminate`.
  6982. //
  6983. // Stability: development
  6984. IOSAppStateTerminate = IOSAppStateKey.String("terminate")
  6985. )
  6986. // Namespace: k8s
  6987. const (
  6988. // K8SClusterNameKey is the attribute Key conforming to the "k8s.cluster.name"
  6989. // semantic conventions. It represents the name of the cluster.
  6990. //
  6991. // Type: string
  6992. // RequirementLevel: Recommended
  6993. // Stability: Development
  6994. //
  6995. // Examples: "opentelemetry-cluster"
  6996. K8SClusterNameKey = attribute.Key("k8s.cluster.name")
  6997. // K8SClusterUIDKey is the attribute Key conforming to the "k8s.cluster.uid"
  6998. // semantic conventions. It represents a pseudo-ID for the cluster, set to the
  6999. // UID of the `kube-system` namespace.
  7000. //
  7001. // Type: string
  7002. // RequirementLevel: Recommended
  7003. // Stability: Development
  7004. //
  7005. // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
  7006. // Note: K8s doesn't have support for obtaining a cluster ID. If this is ever
  7007. // added, we will recommend collecting the `k8s.cluster.uid` through the
  7008. // official APIs. In the meantime, we are able to use the `uid` of the
  7009. // `kube-system` namespace as a proxy for cluster ID. Read on for the
  7010. // rationale.
  7011. //
  7012. // Every object created in a K8s cluster is assigned a distinct UID. The
  7013. // `kube-system` namespace is used by Kubernetes itself and will exist
  7014. // for the lifetime of the cluster. Using the `uid` of the `kube-system`
  7015. // namespace is a reasonable proxy for the K8s ClusterID as it will only
  7016. // change if the cluster is rebuilt. Furthermore, Kubernetes UIDs are
  7017. // UUIDs as standardized by
  7018. // [ISO/IEC 9834-8 and ITU-T X.667].
  7019. // Which states:
  7020. //
  7021. // > If generated according to one of the mechanisms defined in Rec.
  7022. // > ITU-T X.667 | ISO/IEC 9834-8, a UUID is either guaranteed to be
  7023. // > different from all other UUIDs generated before 3603 A.D., or is
  7024. // > extremely likely to be different (depending on the mechanism chosen).
  7025. //
  7026. // Therefore, UIDs between clusters should be extremely unlikely to
  7027. // conflict.
  7028. //
  7029. // [ISO/IEC 9834-8 and ITU-T X.667]: https://www.itu.int/ITU-T/studygroups/com17/oid.html
  7030. K8SClusterUIDKey = attribute.Key("k8s.cluster.uid")
  7031. // K8SContainerNameKey is the attribute Key conforming to the
  7032. // "k8s.container.name" semantic conventions. It represents the name of the
  7033. // Container from Pod specification, must be unique within a Pod. Container
  7034. // runtime usually uses different globally unique name (`container.name`).
  7035. //
  7036. // Type: string
  7037. // RequirementLevel: Recommended
  7038. // Stability: Development
  7039. //
  7040. // Examples: "redis"
  7041. K8SContainerNameKey = attribute.Key("k8s.container.name")
  7042. // K8SContainerRestartCountKey is the attribute Key conforming to the
  7043. // "k8s.container.restart_count" semantic conventions. It represents the number
  7044. // of times the container was restarted. This attribute can be used to identify
  7045. // a particular container (running or stopped) within a container spec.
  7046. //
  7047. // Type: int
  7048. // RequirementLevel: Recommended
  7049. // Stability: Development
  7050. //
  7051. // Examples:
  7052. K8SContainerRestartCountKey = attribute.Key("k8s.container.restart_count")
  7053. // K8SContainerStatusLastTerminatedReasonKey is the attribute Key conforming to
  7054. // the "k8s.container.status.last_terminated_reason" semantic conventions. It
  7055. // represents the last terminated reason of the Container.
  7056. //
  7057. // Type: string
  7058. // RequirementLevel: Recommended
  7059. // Stability: Development
  7060. //
  7061. // Examples: "Evicted", "Error"
  7062. K8SContainerStatusLastTerminatedReasonKey = attribute.Key("k8s.container.status.last_terminated_reason")
  7063. // K8SCronJobNameKey is the attribute Key conforming to the "k8s.cronjob.name"
  7064. // semantic conventions. It represents the name of the CronJob.
  7065. //
  7066. // Type: string
  7067. // RequirementLevel: Recommended
  7068. // Stability: Development
  7069. //
  7070. // Examples: "opentelemetry"
  7071. K8SCronJobNameKey = attribute.Key("k8s.cronjob.name")
  7072. // K8SCronJobUIDKey is the attribute Key conforming to the "k8s.cronjob.uid"
  7073. // semantic conventions. It represents the UID of the CronJob.
  7074. //
  7075. // Type: string
  7076. // RequirementLevel: Recommended
  7077. // Stability: Development
  7078. //
  7079. // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
  7080. K8SCronJobUIDKey = attribute.Key("k8s.cronjob.uid")
  7081. // K8SDaemonSetNameKey is the attribute Key conforming to the
  7082. // "k8s.daemonset.name" semantic conventions. It represents the name of the
  7083. // DaemonSet.
  7084. //
  7085. // Type: string
  7086. // RequirementLevel: Recommended
  7087. // Stability: Development
  7088. //
  7089. // Examples: "opentelemetry"
  7090. K8SDaemonSetNameKey = attribute.Key("k8s.daemonset.name")
  7091. // K8SDaemonSetUIDKey is the attribute Key conforming to the "k8s.daemonset.uid"
  7092. // semantic conventions. It represents the UID of the DaemonSet.
  7093. //
  7094. // Type: string
  7095. // RequirementLevel: Recommended
  7096. // Stability: Development
  7097. //
  7098. // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
  7099. K8SDaemonSetUIDKey = attribute.Key("k8s.daemonset.uid")
  7100. // K8SDeploymentNameKey is the attribute Key conforming to the
  7101. // "k8s.deployment.name" semantic conventions. It represents the name of the
  7102. // Deployment.
  7103. //
  7104. // Type: string
  7105. // RequirementLevel: Recommended
  7106. // Stability: Development
  7107. //
  7108. // Examples: "opentelemetry"
  7109. K8SDeploymentNameKey = attribute.Key("k8s.deployment.name")
  7110. // K8SDeploymentUIDKey is the attribute Key conforming to the
  7111. // "k8s.deployment.uid" semantic conventions. It represents the UID of the
  7112. // Deployment.
  7113. //
  7114. // Type: string
  7115. // RequirementLevel: Recommended
  7116. // Stability: Development
  7117. //
  7118. // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
  7119. K8SDeploymentUIDKey = attribute.Key("k8s.deployment.uid")
  7120. // K8SHPANameKey is the attribute Key conforming to the "k8s.hpa.name" semantic
  7121. // conventions. It represents the name of the horizontal pod autoscaler.
  7122. //
  7123. // Type: string
  7124. // RequirementLevel: Recommended
  7125. // Stability: Development
  7126. //
  7127. // Examples: "opentelemetry"
  7128. K8SHPANameKey = attribute.Key("k8s.hpa.name")
  7129. // K8SHPAUIDKey is the attribute Key conforming to the "k8s.hpa.uid" semantic
  7130. // conventions. It represents the UID of the horizontal pod autoscaler.
  7131. //
  7132. // Type: string
  7133. // RequirementLevel: Recommended
  7134. // Stability: Development
  7135. //
  7136. // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
  7137. K8SHPAUIDKey = attribute.Key("k8s.hpa.uid")
  7138. // K8SJobNameKey is the attribute Key conforming to the "k8s.job.name" semantic
  7139. // conventions. It represents the name of the Job.
  7140. //
  7141. // Type: string
  7142. // RequirementLevel: Recommended
  7143. // Stability: Development
  7144. //
  7145. // Examples: "opentelemetry"
  7146. K8SJobNameKey = attribute.Key("k8s.job.name")
  7147. // K8SJobUIDKey is the attribute Key conforming to the "k8s.job.uid" semantic
  7148. // conventions. It represents the UID of the Job.
  7149. //
  7150. // Type: string
  7151. // RequirementLevel: Recommended
  7152. // Stability: Development
  7153. //
  7154. // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
  7155. K8SJobUIDKey = attribute.Key("k8s.job.uid")
  7156. // K8SNamespaceNameKey is the attribute Key conforming to the
  7157. // "k8s.namespace.name" semantic conventions. It represents the name of the
  7158. // namespace that the pod is running in.
  7159. //
  7160. // Type: string
  7161. // RequirementLevel: Recommended
  7162. // Stability: Development
  7163. //
  7164. // Examples: "default"
  7165. K8SNamespaceNameKey = attribute.Key("k8s.namespace.name")
  7166. // K8SNamespacePhaseKey is the attribute Key conforming to the
  7167. // "k8s.namespace.phase" semantic conventions. It represents the phase of the
  7168. // K8s namespace.
  7169. //
  7170. // Type: Enum
  7171. // RequirementLevel: Recommended
  7172. // Stability: Development
  7173. //
  7174. // Examples: "active", "terminating"
  7175. // Note: This attribute aligns with the `phase` field of the
  7176. // [K8s NamespaceStatus]
  7177. //
  7178. // [K8s NamespaceStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#namespacestatus-v1-core
  7179. K8SNamespacePhaseKey = attribute.Key("k8s.namespace.phase")
  7180. // K8SNodeNameKey is the attribute Key conforming to the "k8s.node.name"
  7181. // semantic conventions. It represents the name of the Node.
  7182. //
  7183. // Type: string
  7184. // RequirementLevel: Recommended
  7185. // Stability: Development
  7186. //
  7187. // Examples: "node-1"
  7188. K8SNodeNameKey = attribute.Key("k8s.node.name")
  7189. // K8SNodeUIDKey is the attribute Key conforming to the "k8s.node.uid" semantic
  7190. // conventions. It represents the UID of the Node.
  7191. //
  7192. // Type: string
  7193. // RequirementLevel: Recommended
  7194. // Stability: Development
  7195. //
  7196. // Examples: "1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2"
  7197. K8SNodeUIDKey = attribute.Key("k8s.node.uid")
  7198. // K8SPodNameKey is the attribute Key conforming to the "k8s.pod.name" semantic
  7199. // conventions. It represents the name of the Pod.
  7200. //
  7201. // Type: string
  7202. // RequirementLevel: Recommended
  7203. // Stability: Development
  7204. //
  7205. // Examples: "opentelemetry-pod-autoconf"
  7206. K8SPodNameKey = attribute.Key("k8s.pod.name")
  7207. // K8SPodUIDKey is the attribute Key conforming to the "k8s.pod.uid" semantic
  7208. // conventions. It represents the UID of the Pod.
  7209. //
  7210. // Type: string
  7211. // RequirementLevel: Recommended
  7212. // Stability: Development
  7213. //
  7214. // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
  7215. K8SPodUIDKey = attribute.Key("k8s.pod.uid")
  7216. // K8SReplicaSetNameKey is the attribute Key conforming to the
  7217. // "k8s.replicaset.name" semantic conventions. It represents the name of the
  7218. // ReplicaSet.
  7219. //
  7220. // Type: string
  7221. // RequirementLevel: Recommended
  7222. // Stability: Development
  7223. //
  7224. // Examples: "opentelemetry"
  7225. K8SReplicaSetNameKey = attribute.Key("k8s.replicaset.name")
  7226. // K8SReplicaSetUIDKey is the attribute Key conforming to the
  7227. // "k8s.replicaset.uid" semantic conventions. It represents the UID of the
  7228. // ReplicaSet.
  7229. //
  7230. // Type: string
  7231. // RequirementLevel: Recommended
  7232. // Stability: Development
  7233. //
  7234. // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
  7235. K8SReplicaSetUIDKey = attribute.Key("k8s.replicaset.uid")
  7236. // K8SReplicationControllerNameKey is the attribute Key conforming to the
  7237. // "k8s.replicationcontroller.name" semantic conventions. It represents the name
  7238. // of the replication controller.
  7239. //
  7240. // Type: string
  7241. // RequirementLevel: Recommended
  7242. // Stability: Development
  7243. //
  7244. // Examples: "opentelemetry"
  7245. K8SReplicationControllerNameKey = attribute.Key("k8s.replicationcontroller.name")
  7246. // K8SReplicationControllerUIDKey is the attribute Key conforming to the
  7247. // "k8s.replicationcontroller.uid" semantic conventions. It represents the UID
  7248. // of the replication controller.
  7249. //
  7250. // Type: string
  7251. // RequirementLevel: Recommended
  7252. // Stability: Development
  7253. //
  7254. // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
  7255. K8SReplicationControllerUIDKey = attribute.Key("k8s.replicationcontroller.uid")
  7256. // K8SResourceQuotaNameKey is the attribute Key conforming to the
  7257. // "k8s.resourcequota.name" semantic conventions. It represents the name of the
  7258. // resource quota.
  7259. //
  7260. // Type: string
  7261. // RequirementLevel: Recommended
  7262. // Stability: Development
  7263. //
  7264. // Examples: "opentelemetry"
  7265. K8SResourceQuotaNameKey = attribute.Key("k8s.resourcequota.name")
  7266. // K8SResourceQuotaUIDKey is the attribute Key conforming to the
  7267. // "k8s.resourcequota.uid" semantic conventions. It represents the UID of the
  7268. // resource quota.
  7269. //
  7270. // Type: string
  7271. // RequirementLevel: Recommended
  7272. // Stability: Development
  7273. //
  7274. // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
  7275. K8SResourceQuotaUIDKey = attribute.Key("k8s.resourcequota.uid")
  7276. // K8SStatefulSetNameKey is the attribute Key conforming to the
  7277. // "k8s.statefulset.name" semantic conventions. It represents the name of the
  7278. // StatefulSet.
  7279. //
  7280. // Type: string
  7281. // RequirementLevel: Recommended
  7282. // Stability: Development
  7283. //
  7284. // Examples: "opentelemetry"
  7285. K8SStatefulSetNameKey = attribute.Key("k8s.statefulset.name")
  7286. // K8SStatefulSetUIDKey is the attribute Key conforming to the
  7287. // "k8s.statefulset.uid" semantic conventions. It represents the UID of the
  7288. // StatefulSet.
  7289. //
  7290. // Type: string
  7291. // RequirementLevel: Recommended
  7292. // Stability: Development
  7293. //
  7294. // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
  7295. K8SStatefulSetUIDKey = attribute.Key("k8s.statefulset.uid")
  7296. // K8SVolumeNameKey is the attribute Key conforming to the "k8s.volume.name"
  7297. // semantic conventions. It represents the name of the K8s volume.
  7298. //
  7299. // Type: string
  7300. // RequirementLevel: Recommended
  7301. // Stability: Development
  7302. //
  7303. // Examples: "volume0"
  7304. K8SVolumeNameKey = attribute.Key("k8s.volume.name")
  7305. // K8SVolumeTypeKey is the attribute Key conforming to the "k8s.volume.type"
  7306. // semantic conventions. It represents the type of the K8s volume.
  7307. //
  7308. // Type: Enum
  7309. // RequirementLevel: Recommended
  7310. // Stability: Development
  7311. //
  7312. // Examples: "emptyDir", "persistentVolumeClaim"
  7313. K8SVolumeTypeKey = attribute.Key("k8s.volume.type")
  7314. )
  7315. // K8SClusterName returns an attribute KeyValue conforming to the
  7316. // "k8s.cluster.name" semantic conventions. It represents the name of the
  7317. // cluster.
  7318. func K8SClusterName(val string) attribute.KeyValue {
  7319. return K8SClusterNameKey.String(val)
  7320. }
  7321. // K8SClusterUID returns an attribute KeyValue conforming to the
  7322. // "k8s.cluster.uid" semantic conventions. It represents a pseudo-ID for the
  7323. // cluster, set to the UID of the `kube-system` namespace.
  7324. func K8SClusterUID(val string) attribute.KeyValue {
  7325. return K8SClusterUIDKey.String(val)
  7326. }
  7327. // K8SContainerName returns an attribute KeyValue conforming to the
  7328. // "k8s.container.name" semantic conventions. It represents the name of the
  7329. // Container from Pod specification, must be unique within a Pod. Container
  7330. // runtime usually uses different globally unique name (`container.name`).
  7331. func K8SContainerName(val string) attribute.KeyValue {
  7332. return K8SContainerNameKey.String(val)
  7333. }
  7334. // K8SContainerRestartCount returns an attribute KeyValue conforming to the
  7335. // "k8s.container.restart_count" semantic conventions. It represents the number
  7336. // of times the container was restarted. This attribute can be used to identify a
  7337. // particular container (running or stopped) within a container spec.
  7338. func K8SContainerRestartCount(val int) attribute.KeyValue {
  7339. return K8SContainerRestartCountKey.Int(val)
  7340. }
  7341. // K8SContainerStatusLastTerminatedReason returns an attribute KeyValue
  7342. // conforming to the "k8s.container.status.last_terminated_reason" semantic
  7343. // conventions. It represents the last terminated reason of the Container.
  7344. func K8SContainerStatusLastTerminatedReason(val string) attribute.KeyValue {
  7345. return K8SContainerStatusLastTerminatedReasonKey.String(val)
  7346. }
  7347. // K8SCronJobName returns an attribute KeyValue conforming to the
  7348. // "k8s.cronjob.name" semantic conventions. It represents the name of the
  7349. // CronJob.
  7350. func K8SCronJobName(val string) attribute.KeyValue {
  7351. return K8SCronJobNameKey.String(val)
  7352. }
  7353. // K8SCronJobUID returns an attribute KeyValue conforming to the
  7354. // "k8s.cronjob.uid" semantic conventions. It represents the UID of the CronJob.
  7355. func K8SCronJobUID(val string) attribute.KeyValue {
  7356. return K8SCronJobUIDKey.String(val)
  7357. }
  7358. // K8SDaemonSetName returns an attribute KeyValue conforming to the
  7359. // "k8s.daemonset.name" semantic conventions. It represents the name of the
  7360. // DaemonSet.
  7361. func K8SDaemonSetName(val string) attribute.KeyValue {
  7362. return K8SDaemonSetNameKey.String(val)
  7363. }
  7364. // K8SDaemonSetUID returns an attribute KeyValue conforming to the
  7365. // "k8s.daemonset.uid" semantic conventions. It represents the UID of the
  7366. // DaemonSet.
  7367. func K8SDaemonSetUID(val string) attribute.KeyValue {
  7368. return K8SDaemonSetUIDKey.String(val)
  7369. }
  7370. // K8SDeploymentName returns an attribute KeyValue conforming to the
  7371. // "k8s.deployment.name" semantic conventions. It represents the name of the
  7372. // Deployment.
  7373. func K8SDeploymentName(val string) attribute.KeyValue {
  7374. return K8SDeploymentNameKey.String(val)
  7375. }
  7376. // K8SDeploymentUID returns an attribute KeyValue conforming to the
  7377. // "k8s.deployment.uid" semantic conventions. It represents the UID of the
  7378. // Deployment.
  7379. func K8SDeploymentUID(val string) attribute.KeyValue {
  7380. return K8SDeploymentUIDKey.String(val)
  7381. }
  7382. // K8SHPAName returns an attribute KeyValue conforming to the "k8s.hpa.name"
  7383. // semantic conventions. It represents the name of the horizontal pod autoscaler.
  7384. func K8SHPAName(val string) attribute.KeyValue {
  7385. return K8SHPANameKey.String(val)
  7386. }
  7387. // K8SHPAUID returns an attribute KeyValue conforming to the "k8s.hpa.uid"
  7388. // semantic conventions. It represents the UID of the horizontal pod autoscaler.
  7389. func K8SHPAUID(val string) attribute.KeyValue {
  7390. return K8SHPAUIDKey.String(val)
  7391. }
  7392. // K8SJobName returns an attribute KeyValue conforming to the "k8s.job.name"
  7393. // semantic conventions. It represents the name of the Job.
  7394. func K8SJobName(val string) attribute.KeyValue {
  7395. return K8SJobNameKey.String(val)
  7396. }
  7397. // K8SJobUID returns an attribute KeyValue conforming to the "k8s.job.uid"
  7398. // semantic conventions. It represents the UID of the Job.
  7399. func K8SJobUID(val string) attribute.KeyValue {
  7400. return K8SJobUIDKey.String(val)
  7401. }
  7402. // K8SNamespaceName returns an attribute KeyValue conforming to the
  7403. // "k8s.namespace.name" semantic conventions. It represents the name of the
  7404. // namespace that the pod is running in.
  7405. func K8SNamespaceName(val string) attribute.KeyValue {
  7406. return K8SNamespaceNameKey.String(val)
  7407. }
  7408. // K8SNodeName returns an attribute KeyValue conforming to the "k8s.node.name"
  7409. // semantic conventions. It represents the name of the Node.
  7410. func K8SNodeName(val string) attribute.KeyValue {
  7411. return K8SNodeNameKey.String(val)
  7412. }
  7413. // K8SNodeUID returns an attribute KeyValue conforming to the "k8s.node.uid"
  7414. // semantic conventions. It represents the UID of the Node.
  7415. func K8SNodeUID(val string) attribute.KeyValue {
  7416. return K8SNodeUIDKey.String(val)
  7417. }
  7418. // K8SPodName returns an attribute KeyValue conforming to the "k8s.pod.name"
  7419. // semantic conventions. It represents the name of the Pod.
  7420. func K8SPodName(val string) attribute.KeyValue {
  7421. return K8SPodNameKey.String(val)
  7422. }
  7423. // K8SPodUID returns an attribute KeyValue conforming to the "k8s.pod.uid"
  7424. // semantic conventions. It represents the UID of the Pod.
  7425. func K8SPodUID(val string) attribute.KeyValue {
  7426. return K8SPodUIDKey.String(val)
  7427. }
  7428. // K8SReplicaSetName returns an attribute KeyValue conforming to the
  7429. // "k8s.replicaset.name" semantic conventions. It represents the name of the
  7430. // ReplicaSet.
  7431. func K8SReplicaSetName(val string) attribute.KeyValue {
  7432. return K8SReplicaSetNameKey.String(val)
  7433. }
  7434. // K8SReplicaSetUID returns an attribute KeyValue conforming to the
  7435. // "k8s.replicaset.uid" semantic conventions. It represents the UID of the
  7436. // ReplicaSet.
  7437. func K8SReplicaSetUID(val string) attribute.KeyValue {
  7438. return K8SReplicaSetUIDKey.String(val)
  7439. }
  7440. // K8SReplicationControllerName returns an attribute KeyValue conforming to the
  7441. // "k8s.replicationcontroller.name" semantic conventions. It represents the name
  7442. // of the replication controller.
  7443. func K8SReplicationControllerName(val string) attribute.KeyValue {
  7444. return K8SReplicationControllerNameKey.String(val)
  7445. }
  7446. // K8SReplicationControllerUID returns an attribute KeyValue conforming to the
  7447. // "k8s.replicationcontroller.uid" semantic conventions. It represents the UID of
  7448. // the replication controller.
  7449. func K8SReplicationControllerUID(val string) attribute.KeyValue {
  7450. return K8SReplicationControllerUIDKey.String(val)
  7451. }
  7452. // K8SResourceQuotaName returns an attribute KeyValue conforming to the
  7453. // "k8s.resourcequota.name" semantic conventions. It represents the name of the
  7454. // resource quota.
  7455. func K8SResourceQuotaName(val string) attribute.KeyValue {
  7456. return K8SResourceQuotaNameKey.String(val)
  7457. }
  7458. // K8SResourceQuotaUID returns an attribute KeyValue conforming to the
  7459. // "k8s.resourcequota.uid" semantic conventions. It represents the UID of the
  7460. // resource quota.
  7461. func K8SResourceQuotaUID(val string) attribute.KeyValue {
  7462. return K8SResourceQuotaUIDKey.String(val)
  7463. }
  7464. // K8SStatefulSetName returns an attribute KeyValue conforming to the
  7465. // "k8s.statefulset.name" semantic conventions. It represents the name of the
  7466. // StatefulSet.
  7467. func K8SStatefulSetName(val string) attribute.KeyValue {
  7468. return K8SStatefulSetNameKey.String(val)
  7469. }
  7470. // K8SStatefulSetUID returns an attribute KeyValue conforming to the
  7471. // "k8s.statefulset.uid" semantic conventions. It represents the UID of the
  7472. // StatefulSet.
  7473. func K8SStatefulSetUID(val string) attribute.KeyValue {
  7474. return K8SStatefulSetUIDKey.String(val)
  7475. }
  7476. // K8SVolumeName returns an attribute KeyValue conforming to the
  7477. // "k8s.volume.name" semantic conventions. It represents the name of the K8s
  7478. // volume.
  7479. func K8SVolumeName(val string) attribute.KeyValue {
  7480. return K8SVolumeNameKey.String(val)
  7481. }
  7482. // Enum values for k8s.namespace.phase
  7483. var (
  7484. // Active namespace phase as described by [K8s API]
  7485. // Stability: development
  7486. //
  7487. // [K8s API]: https://pkg.go.dev/k8s.io/api@v0.31.3/core/v1#NamespacePhase
  7488. K8SNamespacePhaseActive = K8SNamespacePhaseKey.String("active")
  7489. // Terminating namespace phase as described by [K8s API]
  7490. // Stability: development
  7491. //
  7492. // [K8s API]: https://pkg.go.dev/k8s.io/api@v0.31.3/core/v1#NamespacePhase
  7493. K8SNamespacePhaseTerminating = K8SNamespacePhaseKey.String("terminating")
  7494. )
  7495. // Enum values for k8s.volume.type
  7496. var (
  7497. // A [persistentVolumeClaim] volume
  7498. // Stability: development
  7499. //
  7500. // [persistentVolumeClaim]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#persistentvolumeclaim
  7501. K8SVolumeTypePersistentVolumeClaim = K8SVolumeTypeKey.String("persistentVolumeClaim")
  7502. // A [configMap] volume
  7503. // Stability: development
  7504. //
  7505. // [configMap]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#configmap
  7506. K8SVolumeTypeConfigMap = K8SVolumeTypeKey.String("configMap")
  7507. // A [downwardAPI] volume
  7508. // Stability: development
  7509. //
  7510. // [downwardAPI]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#downwardapi
  7511. K8SVolumeTypeDownwardAPI = K8SVolumeTypeKey.String("downwardAPI")
  7512. // An [emptyDir] volume
  7513. // Stability: development
  7514. //
  7515. // [emptyDir]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#emptydir
  7516. K8SVolumeTypeEmptyDir = K8SVolumeTypeKey.String("emptyDir")
  7517. // A [secret] volume
  7518. // Stability: development
  7519. //
  7520. // [secret]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#secret
  7521. K8SVolumeTypeSecret = K8SVolumeTypeKey.String("secret")
  7522. // A [local] volume
  7523. // Stability: development
  7524. //
  7525. // [local]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#local
  7526. K8SVolumeTypeLocal = K8SVolumeTypeKey.String("local")
  7527. )
  7528. // Namespace: linux
  7529. const (
  7530. // LinuxMemorySlabStateKey is the attribute Key conforming to the
  7531. // "linux.memory.slab.state" semantic conventions. It represents the Linux Slab
  7532. // memory state.
  7533. //
  7534. // Type: Enum
  7535. // RequirementLevel: Recommended
  7536. // Stability: Development
  7537. //
  7538. // Examples: "reclaimable", "unreclaimable"
  7539. LinuxMemorySlabStateKey = attribute.Key("linux.memory.slab.state")
  7540. )
  7541. // Enum values for linux.memory.slab.state
  7542. var (
  7543. // reclaimable
  7544. // Stability: development
  7545. LinuxMemorySlabStateReclaimable = LinuxMemorySlabStateKey.String("reclaimable")
  7546. // unreclaimable
  7547. // Stability: development
  7548. LinuxMemorySlabStateUnreclaimable = LinuxMemorySlabStateKey.String("unreclaimable")
  7549. )
  7550. // Namespace: log
  7551. const (
  7552. // LogFileNameKey is the attribute Key conforming to the "log.file.name"
  7553. // semantic conventions. It represents the basename of the file.
  7554. //
  7555. // Type: string
  7556. // RequirementLevel: Recommended
  7557. // Stability: Development
  7558. //
  7559. // Examples: "audit.log"
  7560. LogFileNameKey = attribute.Key("log.file.name")
  7561. // LogFileNameResolvedKey is the attribute Key conforming to the
  7562. // "log.file.name_resolved" semantic conventions. It represents the basename of
  7563. // the file, with symlinks resolved.
  7564. //
  7565. // Type: string
  7566. // RequirementLevel: Recommended
  7567. // Stability: Development
  7568. //
  7569. // Examples: "uuid.log"
  7570. LogFileNameResolvedKey = attribute.Key("log.file.name_resolved")
  7571. // LogFilePathKey is the attribute Key conforming to the "log.file.path"
  7572. // semantic conventions. It represents the full path to the file.
  7573. //
  7574. // Type: string
  7575. // RequirementLevel: Recommended
  7576. // Stability: Development
  7577. //
  7578. // Examples: "/var/log/mysql/audit.log"
  7579. LogFilePathKey = attribute.Key("log.file.path")
  7580. // LogFilePathResolvedKey is the attribute Key conforming to the
  7581. // "log.file.path_resolved" semantic conventions. It represents the full path to
  7582. // the file, with symlinks resolved.
  7583. //
  7584. // Type: string
  7585. // RequirementLevel: Recommended
  7586. // Stability: Development
  7587. //
  7588. // Examples: "/var/lib/docker/uuid.log"
  7589. LogFilePathResolvedKey = attribute.Key("log.file.path_resolved")
  7590. // LogIostreamKey is the attribute Key conforming to the "log.iostream" semantic
  7591. // conventions. It represents the stream associated with the log. See below for
  7592. // a list of well-known values.
  7593. //
  7594. // Type: Enum
  7595. // RequirementLevel: Recommended
  7596. // Stability: Development
  7597. //
  7598. // Examples:
  7599. LogIostreamKey = attribute.Key("log.iostream")
  7600. // LogRecordOriginalKey is the attribute Key conforming to the
  7601. // "log.record.original" semantic conventions. It represents the complete
  7602. // original Log Record.
  7603. //
  7604. // Type: string
  7605. // RequirementLevel: Recommended
  7606. // Stability: Development
  7607. //
  7608. // Examples: "77 <86>1 2015-08-06T21:58:59.694Z 192.168.2.133 inactive - - -
  7609. // Something happened", "[INFO] 8/3/24 12:34:56 Something happened"
  7610. // Note: This value MAY be added when processing a Log Record which was
  7611. // originally transmitted as a string or equivalent data type AND the Body field
  7612. // of the Log Record does not contain the same value. (e.g. a syslog or a log
  7613. // record read from a file.)
  7614. LogRecordOriginalKey = attribute.Key("log.record.original")
  7615. // LogRecordUIDKey is the attribute Key conforming to the "log.record.uid"
  7616. // semantic conventions. It represents a unique identifier for the Log Record.
  7617. //
  7618. // Type: string
  7619. // RequirementLevel: Recommended
  7620. // Stability: Development
  7621. //
  7622. // Examples: "01ARZ3NDEKTSV4RRFFQ69G5FAV"
  7623. // Note: If an id is provided, other log records with the same id will be
  7624. // considered duplicates and can be removed safely. This means, that two
  7625. // distinguishable log records MUST have different values.
  7626. // The id MAY be an
  7627. // [Universally Unique Lexicographically Sortable Identifier (ULID)], but other
  7628. // identifiers (e.g. UUID) may be used as needed.
  7629. //
  7630. // [Universally Unique Lexicographically Sortable Identifier (ULID)]: https://github.com/ulid/spec
  7631. LogRecordUIDKey = attribute.Key("log.record.uid")
  7632. )
  7633. // LogFileName returns an attribute KeyValue conforming to the "log.file.name"
  7634. // semantic conventions. It represents the basename of the file.
  7635. func LogFileName(val string) attribute.KeyValue {
  7636. return LogFileNameKey.String(val)
  7637. }
  7638. // LogFileNameResolved returns an attribute KeyValue conforming to the
  7639. // "log.file.name_resolved" semantic conventions. It represents the basename of
  7640. // the file, with symlinks resolved.
  7641. func LogFileNameResolved(val string) attribute.KeyValue {
  7642. return LogFileNameResolvedKey.String(val)
  7643. }
  7644. // LogFilePath returns an attribute KeyValue conforming to the "log.file.path"
  7645. // semantic conventions. It represents the full path to the file.
  7646. func LogFilePath(val string) attribute.KeyValue {
  7647. return LogFilePathKey.String(val)
  7648. }
  7649. // LogFilePathResolved returns an attribute KeyValue conforming to the
  7650. // "log.file.path_resolved" semantic conventions. It represents the full path to
  7651. // the file, with symlinks resolved.
  7652. func LogFilePathResolved(val string) attribute.KeyValue {
  7653. return LogFilePathResolvedKey.String(val)
  7654. }
  7655. // LogRecordOriginal returns an attribute KeyValue conforming to the
  7656. // "log.record.original" semantic conventions. It represents the complete
  7657. // original Log Record.
  7658. func LogRecordOriginal(val string) attribute.KeyValue {
  7659. return LogRecordOriginalKey.String(val)
  7660. }
  7661. // LogRecordUID returns an attribute KeyValue conforming to the "log.record.uid"
  7662. // semantic conventions. It represents a unique identifier for the Log Record.
  7663. func LogRecordUID(val string) attribute.KeyValue {
  7664. return LogRecordUIDKey.String(val)
  7665. }
  7666. // Enum values for log.iostream
  7667. var (
  7668. // Logs from stdout stream
  7669. // Stability: development
  7670. LogIostreamStdout = LogIostreamKey.String("stdout")
  7671. // Events from stderr stream
  7672. // Stability: development
  7673. LogIostreamStderr = LogIostreamKey.String("stderr")
  7674. )
  7675. // Namespace: messaging
  7676. const (
  7677. // MessagingBatchMessageCountKey is the attribute Key conforming to the
  7678. // "messaging.batch.message_count" semantic conventions. It represents the
  7679. // number of messages sent, received, or processed in the scope of the batching
  7680. // operation.
  7681. //
  7682. // Type: int
  7683. // RequirementLevel: Recommended
  7684. // Stability: Development
  7685. //
  7686. // Examples: 0, 1, 2
  7687. // Note: Instrumentations SHOULD NOT set `messaging.batch.message_count` on
  7688. // spans that operate with a single message. When a messaging client library
  7689. // supports both batch and single-message API for the same operation,
  7690. // instrumentations SHOULD use `messaging.batch.message_count` for batching APIs
  7691. // and SHOULD NOT use it for single-message APIs.
  7692. MessagingBatchMessageCountKey = attribute.Key("messaging.batch.message_count")
  7693. // MessagingClientIDKey is the attribute Key conforming to the
  7694. // "messaging.client.id" semantic conventions. It represents a unique identifier
  7695. // for the client that consumes or produces a message.
  7696. //
  7697. // Type: string
  7698. // RequirementLevel: Recommended
  7699. // Stability: Development
  7700. //
  7701. // Examples: "client-5", "myhost@8742@s8083jm"
  7702. MessagingClientIDKey = attribute.Key("messaging.client.id")
  7703. // MessagingConsumerGroupNameKey is the attribute Key conforming to the
  7704. // "messaging.consumer.group.name" semantic conventions. It represents the name
  7705. // of the consumer group with which a consumer is associated.
  7706. //
  7707. // Type: string
  7708. // RequirementLevel: Recommended
  7709. // Stability: Development
  7710. //
  7711. // Examples: "my-group", "indexer"
  7712. // Note: Semantic conventions for individual messaging systems SHOULD document
  7713. // whether `messaging.consumer.group.name` is applicable and what it means in
  7714. // the context of that system.
  7715. MessagingConsumerGroupNameKey = attribute.Key("messaging.consumer.group.name")
  7716. // MessagingDestinationAnonymousKey is the attribute Key conforming to the
  7717. // "messaging.destination.anonymous" semantic conventions. It represents a
  7718. // boolean that is true if the message destination is anonymous (could be
  7719. // unnamed or have auto-generated name).
  7720. //
  7721. // Type: boolean
  7722. // RequirementLevel: Recommended
  7723. // Stability: Development
  7724. //
  7725. // Examples:
  7726. MessagingDestinationAnonymousKey = attribute.Key("messaging.destination.anonymous")
  7727. // MessagingDestinationNameKey is the attribute Key conforming to the
  7728. // "messaging.destination.name" semantic conventions. It represents the message
  7729. // destination name.
  7730. //
  7731. // Type: string
  7732. // RequirementLevel: Recommended
  7733. // Stability: Development
  7734. //
  7735. // Examples: "MyQueue", "MyTopic"
  7736. // Note: Destination name SHOULD uniquely identify a specific queue, topic or
  7737. // other entity within the broker. If
  7738. // the broker doesn't have such notion, the destination name SHOULD uniquely
  7739. // identify the broker.
  7740. MessagingDestinationNameKey = attribute.Key("messaging.destination.name")
  7741. // MessagingDestinationPartitionIDKey is the attribute Key conforming to the
  7742. // "messaging.destination.partition.id" semantic conventions. It represents the
  7743. // identifier of the partition messages are sent to or received from, unique
  7744. // within the `messaging.destination.name`.
  7745. //
  7746. // Type: string
  7747. // RequirementLevel: Recommended
  7748. // Stability: Development
  7749. //
  7750. // Examples: 1
  7751. MessagingDestinationPartitionIDKey = attribute.Key("messaging.destination.partition.id")
  7752. // MessagingDestinationSubscriptionNameKey is the attribute Key conforming to
  7753. // the "messaging.destination.subscription.name" semantic conventions. It
  7754. // represents the name of the destination subscription from which a message is
  7755. // consumed.
  7756. //
  7757. // Type: string
  7758. // RequirementLevel: Recommended
  7759. // Stability: Development
  7760. //
  7761. // Examples: "subscription-a"
  7762. // Note: Semantic conventions for individual messaging systems SHOULD document
  7763. // whether `messaging.destination.subscription.name` is applicable and what it
  7764. // means in the context of that system.
  7765. MessagingDestinationSubscriptionNameKey = attribute.Key("messaging.destination.subscription.name")
  7766. // MessagingDestinationTemplateKey is the attribute Key conforming to the
  7767. // "messaging.destination.template" semantic conventions. It represents the low
  7768. // cardinality representation of the messaging destination name.
  7769. //
  7770. // Type: string
  7771. // RequirementLevel: Recommended
  7772. // Stability: Development
  7773. //
  7774. // Examples: "/customers/{customerId}"
  7775. // Note: Destination names could be constructed from templates. An example would
  7776. // be a destination name involving a user name or product id. Although the
  7777. // destination name in this case is of high cardinality, the underlying template
  7778. // is of low cardinality and can be effectively used for grouping and
  7779. // aggregation.
  7780. MessagingDestinationTemplateKey = attribute.Key("messaging.destination.template")
  7781. // MessagingDestinationTemporaryKey is the attribute Key conforming to the
  7782. // "messaging.destination.temporary" semantic conventions. It represents a
  7783. // boolean that is true if the message destination is temporary and might not
  7784. // exist anymore after messages are processed.
  7785. //
  7786. // Type: boolean
  7787. // RequirementLevel: Recommended
  7788. // Stability: Development
  7789. //
  7790. // Examples:
  7791. MessagingDestinationTemporaryKey = attribute.Key("messaging.destination.temporary")
  7792. // MessagingEventHubsMessageEnqueuedTimeKey is the attribute Key conforming to
  7793. // the "messaging.eventhubs.message.enqueued_time" semantic conventions. It
  7794. // represents the UTC epoch seconds at which the message has been accepted and
  7795. // stored in the entity.
  7796. //
  7797. // Type: int
  7798. // RequirementLevel: Recommended
  7799. // Stability: Development
  7800. MessagingEventHubsMessageEnqueuedTimeKey = attribute.Key("messaging.eventhubs.message.enqueued_time")
  7801. // MessagingGCPPubSubMessageAckDeadlineKey is the attribute Key conforming to
  7802. // the "messaging.gcp_pubsub.message.ack_deadline" semantic conventions. It
  7803. // represents the ack deadline in seconds set for the modify ack deadline
  7804. // request.
  7805. //
  7806. // Type: int
  7807. // RequirementLevel: Recommended
  7808. // Stability: Development
  7809. MessagingGCPPubSubMessageAckDeadlineKey = attribute.Key("messaging.gcp_pubsub.message.ack_deadline")
  7810. // MessagingGCPPubSubMessageAckIDKey is the attribute Key conforming to the
  7811. // "messaging.gcp_pubsub.message.ack_id" semantic conventions. It represents the
  7812. // ack id for a given message.
  7813. //
  7814. // Type: string
  7815. // RequirementLevel: Recommended
  7816. // Stability: Development
  7817. //
  7818. // Examples: ack_id
  7819. MessagingGCPPubSubMessageAckIDKey = attribute.Key("messaging.gcp_pubsub.message.ack_id")
  7820. // MessagingGCPPubSubMessageDeliveryAttemptKey is the attribute Key conforming
  7821. // to the "messaging.gcp_pubsub.message.delivery_attempt" semantic conventions.
  7822. // It represents the delivery attempt for a given message.
  7823. //
  7824. // Type: int
  7825. // RequirementLevel: Recommended
  7826. // Stability: Development
  7827. MessagingGCPPubSubMessageDeliveryAttemptKey = attribute.Key("messaging.gcp_pubsub.message.delivery_attempt")
  7828. // MessagingGCPPubSubMessageOrderingKeyKey is the attribute Key conforming to
  7829. // the "messaging.gcp_pubsub.message.ordering_key" semantic conventions. It
  7830. // represents the ordering key for a given message. If the attribute is not
  7831. // present, the message does not have an ordering key.
  7832. //
  7833. // Type: string
  7834. // RequirementLevel: Recommended
  7835. // Stability: Development
  7836. //
  7837. // Examples: ordering_key
  7838. MessagingGCPPubSubMessageOrderingKeyKey = attribute.Key("messaging.gcp_pubsub.message.ordering_key")
  7839. // MessagingKafkaMessageKeyKey is the attribute Key conforming to the
  7840. // "messaging.kafka.message.key" semantic conventions. It represents the message
  7841. // keys in Kafka are used for grouping alike messages to ensure they're
  7842. // processed on the same partition. They differ from `messaging.message.id` in
  7843. // that they're not unique. If the key is `null`, the attribute MUST NOT be set.
  7844. //
  7845. // Type: string
  7846. // RequirementLevel: Recommended
  7847. // Stability: Development
  7848. //
  7849. // Examples: myKey
  7850. // Note: If the key type is not string, it's string representation has to be
  7851. // supplied for the attribute. If the key has no unambiguous, canonical string
  7852. // form, don't include its value.
  7853. MessagingKafkaMessageKeyKey = attribute.Key("messaging.kafka.message.key")
  7854. // MessagingKafkaMessageTombstoneKey is the attribute Key conforming to the
  7855. // "messaging.kafka.message.tombstone" semantic conventions. It represents a
  7856. // boolean that is true if the message is a tombstone.
  7857. //
  7858. // Type: boolean
  7859. // RequirementLevel: Recommended
  7860. // Stability: Development
  7861. //
  7862. // Examples:
  7863. MessagingKafkaMessageTombstoneKey = attribute.Key("messaging.kafka.message.tombstone")
  7864. // MessagingKafkaOffsetKey is the attribute Key conforming to the
  7865. // "messaging.kafka.offset" semantic conventions. It represents the offset of a
  7866. // record in the corresponding Kafka partition.
  7867. //
  7868. // Type: int
  7869. // RequirementLevel: Recommended
  7870. // Stability: Development
  7871. MessagingKafkaOffsetKey = attribute.Key("messaging.kafka.offset")
  7872. // MessagingMessageBodySizeKey is the attribute Key conforming to the
  7873. // "messaging.message.body.size" semantic conventions. It represents the size of
  7874. // the message body in bytes.
  7875. //
  7876. // Type: int
  7877. // RequirementLevel: Recommended
  7878. // Stability: Development
  7879. //
  7880. // Note: This can refer to both the compressed or uncompressed body size. If
  7881. // both sizes are known, the uncompressed
  7882. // body size should be used.
  7883. MessagingMessageBodySizeKey = attribute.Key("messaging.message.body.size")
  7884. // MessagingMessageConversationIDKey is the attribute Key conforming to the
  7885. // "messaging.message.conversation_id" semantic conventions. It represents the
  7886. // conversation ID identifying the conversation to which the message belongs,
  7887. // represented as a string. Sometimes called "Correlation ID".
  7888. //
  7889. // Type: string
  7890. // RequirementLevel: Recommended
  7891. // Stability: Development
  7892. //
  7893. // Examples: MyConversationId
  7894. MessagingMessageConversationIDKey = attribute.Key("messaging.message.conversation_id")
  7895. // MessagingMessageEnvelopeSizeKey is the attribute Key conforming to the
  7896. // "messaging.message.envelope.size" semantic conventions. It represents the
  7897. // size of the message body and metadata in bytes.
  7898. //
  7899. // Type: int
  7900. // RequirementLevel: Recommended
  7901. // Stability: Development
  7902. //
  7903. // Note: This can refer to both the compressed or uncompressed size. If both
  7904. // sizes are known, the uncompressed
  7905. // size should be used.
  7906. MessagingMessageEnvelopeSizeKey = attribute.Key("messaging.message.envelope.size")
  7907. // MessagingMessageIDKey is the attribute Key conforming to the
  7908. // "messaging.message.id" semantic conventions. It represents a value used by
  7909. // the messaging system as an identifier for the message, represented as a
  7910. // string.
  7911. //
  7912. // Type: string
  7913. // RequirementLevel: Recommended
  7914. // Stability: Development
  7915. //
  7916. // Examples: 452a7c7c7c7048c2f887f61572b18fc2
  7917. MessagingMessageIDKey = attribute.Key("messaging.message.id")
  7918. // MessagingOperationNameKey is the attribute Key conforming to the
  7919. // "messaging.operation.name" semantic conventions. It represents the
  7920. // system-specific name of the messaging operation.
  7921. //
  7922. // Type: string
  7923. // RequirementLevel: Recommended
  7924. // Stability: Development
  7925. //
  7926. // Examples: "ack", "nack", "send"
  7927. MessagingOperationNameKey = attribute.Key("messaging.operation.name")
  7928. // MessagingOperationTypeKey is the attribute Key conforming to the
  7929. // "messaging.operation.type" semantic conventions. It represents a string
  7930. // identifying the type of the messaging operation.
  7931. //
  7932. // Type: Enum
  7933. // RequirementLevel: Recommended
  7934. // Stability: Development
  7935. //
  7936. // Examples:
  7937. // Note: If a custom value is used, it MUST be of low cardinality.
  7938. MessagingOperationTypeKey = attribute.Key("messaging.operation.type")
  7939. // MessagingRabbitMQDestinationRoutingKeyKey is the attribute Key conforming to
  7940. // the "messaging.rabbitmq.destination.routing_key" semantic conventions. It
  7941. // represents the rabbitMQ message routing key.
  7942. //
  7943. // Type: string
  7944. // RequirementLevel: Recommended
  7945. // Stability: Development
  7946. //
  7947. // Examples: myKey
  7948. MessagingRabbitMQDestinationRoutingKeyKey = attribute.Key("messaging.rabbitmq.destination.routing_key")
  7949. // MessagingRabbitMQMessageDeliveryTagKey is the attribute Key conforming to the
  7950. // "messaging.rabbitmq.message.delivery_tag" semantic conventions. It represents
  7951. // the rabbitMQ message delivery tag.
  7952. //
  7953. // Type: int
  7954. // RequirementLevel: Recommended
  7955. // Stability: Development
  7956. MessagingRabbitMQMessageDeliveryTagKey = attribute.Key("messaging.rabbitmq.message.delivery_tag")
  7957. // MessagingRocketMQConsumptionModelKey is the attribute Key conforming to the
  7958. // "messaging.rocketmq.consumption_model" semantic conventions. It represents
  7959. // the model of message consumption. This only applies to consumer spans.
  7960. //
  7961. // Type: Enum
  7962. // RequirementLevel: Recommended
  7963. // Stability: Development
  7964. //
  7965. // Examples:
  7966. MessagingRocketMQConsumptionModelKey = attribute.Key("messaging.rocketmq.consumption_model")
  7967. // MessagingRocketMQMessageDelayTimeLevelKey is the attribute Key conforming to
  7968. // the "messaging.rocketmq.message.delay_time_level" semantic conventions. It
  7969. // represents the delay time level for delay message, which determines the
  7970. // message delay time.
  7971. //
  7972. // Type: int
  7973. // RequirementLevel: Recommended
  7974. // Stability: Development
  7975. MessagingRocketMQMessageDelayTimeLevelKey = attribute.Key("messaging.rocketmq.message.delay_time_level")
  7976. // MessagingRocketMQMessageDeliveryTimestampKey is the attribute Key conforming
  7977. // to the "messaging.rocketmq.message.delivery_timestamp" semantic conventions.
  7978. // It represents the timestamp in milliseconds that the delay message is
  7979. // expected to be delivered to consumer.
  7980. //
  7981. // Type: int
  7982. // RequirementLevel: Recommended
  7983. // Stability: Development
  7984. MessagingRocketMQMessageDeliveryTimestampKey = attribute.Key("messaging.rocketmq.message.delivery_timestamp")
  7985. // MessagingRocketMQMessageGroupKey is the attribute Key conforming to the
  7986. // "messaging.rocketmq.message.group" semantic conventions. It represents the it
  7987. // is essential for FIFO message. Messages that belong to the same message group
  7988. // are always processed one by one within the same consumer group.
  7989. //
  7990. // Type: string
  7991. // RequirementLevel: Recommended
  7992. // Stability: Development
  7993. //
  7994. // Examples: myMessageGroup
  7995. MessagingRocketMQMessageGroupKey = attribute.Key("messaging.rocketmq.message.group")
  7996. // MessagingRocketMQMessageKeysKey is the attribute Key conforming to the
  7997. // "messaging.rocketmq.message.keys" semantic conventions. It represents the
  7998. // key(s) of message, another way to mark message besides message id.
  7999. //
  8000. // Type: string[]
  8001. // RequirementLevel: Recommended
  8002. // Stability: Development
  8003. //
  8004. // Examples: "keyA", "keyB"
  8005. MessagingRocketMQMessageKeysKey = attribute.Key("messaging.rocketmq.message.keys")
  8006. // MessagingRocketMQMessageTagKey is the attribute Key conforming to the
  8007. // "messaging.rocketmq.message.tag" semantic conventions. It represents the
  8008. // secondary classifier of message besides topic.
  8009. //
  8010. // Type: string
  8011. // RequirementLevel: Recommended
  8012. // Stability: Development
  8013. //
  8014. // Examples: tagA
  8015. MessagingRocketMQMessageTagKey = attribute.Key("messaging.rocketmq.message.tag")
  8016. // MessagingRocketMQMessageTypeKey is the attribute Key conforming to the
  8017. // "messaging.rocketmq.message.type" semantic conventions. It represents the
  8018. // type of message.
  8019. //
  8020. // Type: Enum
  8021. // RequirementLevel: Recommended
  8022. // Stability: Development
  8023. //
  8024. // Examples:
  8025. MessagingRocketMQMessageTypeKey = attribute.Key("messaging.rocketmq.message.type")
  8026. // MessagingRocketMQNamespaceKey is the attribute Key conforming to the
  8027. // "messaging.rocketmq.namespace" semantic conventions. It represents the
  8028. // namespace of RocketMQ resources, resources in different namespaces are
  8029. // individual.
  8030. //
  8031. // Type: string
  8032. // RequirementLevel: Recommended
  8033. // Stability: Development
  8034. //
  8035. // Examples: myNamespace
  8036. MessagingRocketMQNamespaceKey = attribute.Key("messaging.rocketmq.namespace")
  8037. // MessagingServiceBusDispositionStatusKey is the attribute Key conforming to
  8038. // the "messaging.servicebus.disposition_status" semantic conventions. It
  8039. // represents the describes the [settlement type].
  8040. //
  8041. // Type: Enum
  8042. // RequirementLevel: Recommended
  8043. // Stability: Development
  8044. //
  8045. // Examples:
  8046. //
  8047. // [settlement type]: https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock
  8048. MessagingServiceBusDispositionStatusKey = attribute.Key("messaging.servicebus.disposition_status")
  8049. // MessagingServiceBusMessageDeliveryCountKey is the attribute Key conforming to
  8050. // the "messaging.servicebus.message.delivery_count" semantic conventions. It
  8051. // represents the number of deliveries that have been attempted for this
  8052. // message.
  8053. //
  8054. // Type: int
  8055. // RequirementLevel: Recommended
  8056. // Stability: Development
  8057. MessagingServiceBusMessageDeliveryCountKey = attribute.Key("messaging.servicebus.message.delivery_count")
  8058. // MessagingServiceBusMessageEnqueuedTimeKey is the attribute Key conforming to
  8059. // the "messaging.servicebus.message.enqueued_time" semantic conventions. It
  8060. // represents the UTC epoch seconds at which the message has been accepted and
  8061. // stored in the entity.
  8062. //
  8063. // Type: int
  8064. // RequirementLevel: Recommended
  8065. // Stability: Development
  8066. MessagingServiceBusMessageEnqueuedTimeKey = attribute.Key("messaging.servicebus.message.enqueued_time")
  8067. // MessagingSystemKey is the attribute Key conforming to the "messaging.system"
  8068. // semantic conventions. It represents the messaging system as identified by the
  8069. // client instrumentation.
  8070. //
  8071. // Type: Enum
  8072. // RequirementLevel: Recommended
  8073. // Stability: Development
  8074. //
  8075. // Examples:
  8076. // Note: The actual messaging system may differ from the one known by the
  8077. // client. For example, when using Kafka client libraries to communicate with
  8078. // Azure Event Hubs, the `messaging.system` is set to `kafka` based on the
  8079. // instrumentation's best knowledge.
  8080. MessagingSystemKey = attribute.Key("messaging.system")
  8081. )
  8082. // MessagingBatchMessageCount returns an attribute KeyValue conforming to the
  8083. // "messaging.batch.message_count" semantic conventions. It represents the number
  8084. // of messages sent, received, or processed in the scope of the batching
  8085. // operation.
  8086. func MessagingBatchMessageCount(val int) attribute.KeyValue {
  8087. return MessagingBatchMessageCountKey.Int(val)
  8088. }
  8089. // MessagingClientID returns an attribute KeyValue conforming to the
  8090. // "messaging.client.id" semantic conventions. It represents a unique identifier
  8091. // for the client that consumes or produces a message.
  8092. func MessagingClientID(val string) attribute.KeyValue {
  8093. return MessagingClientIDKey.String(val)
  8094. }
  8095. // MessagingConsumerGroupName returns an attribute KeyValue conforming to the
  8096. // "messaging.consumer.group.name" semantic conventions. It represents the name
  8097. // of the consumer group with which a consumer is associated.
  8098. func MessagingConsumerGroupName(val string) attribute.KeyValue {
  8099. return MessagingConsumerGroupNameKey.String(val)
  8100. }
  8101. // MessagingDestinationAnonymous returns an attribute KeyValue conforming to the
  8102. // "messaging.destination.anonymous" semantic conventions. It represents a
  8103. // boolean that is true if the message destination is anonymous (could be unnamed
  8104. // or have auto-generated name).
  8105. func MessagingDestinationAnonymous(val bool) attribute.KeyValue {
  8106. return MessagingDestinationAnonymousKey.Bool(val)
  8107. }
  8108. // MessagingDestinationName returns an attribute KeyValue conforming to the
  8109. // "messaging.destination.name" semantic conventions. It represents the message
  8110. // destination name.
  8111. func MessagingDestinationName(val string) attribute.KeyValue {
  8112. return MessagingDestinationNameKey.String(val)
  8113. }
  8114. // MessagingDestinationPartitionID returns an attribute KeyValue conforming to
  8115. // the "messaging.destination.partition.id" semantic conventions. It represents
  8116. // the identifier of the partition messages are sent to or received from, unique
  8117. // within the `messaging.destination.name`.
  8118. func MessagingDestinationPartitionID(val string) attribute.KeyValue {
  8119. return MessagingDestinationPartitionIDKey.String(val)
  8120. }
  8121. // MessagingDestinationSubscriptionName returns an attribute KeyValue conforming
  8122. // to the "messaging.destination.subscription.name" semantic conventions. It
  8123. // represents the name of the destination subscription from which a message is
  8124. // consumed.
  8125. func MessagingDestinationSubscriptionName(val string) attribute.KeyValue {
  8126. return MessagingDestinationSubscriptionNameKey.String(val)
  8127. }
  8128. // MessagingDestinationTemplate returns an attribute KeyValue conforming to the
  8129. // "messaging.destination.template" semantic conventions. It represents the low
  8130. // cardinality representation of the messaging destination name.
  8131. func MessagingDestinationTemplate(val string) attribute.KeyValue {
  8132. return MessagingDestinationTemplateKey.String(val)
  8133. }
  8134. // MessagingDestinationTemporary returns an attribute KeyValue conforming to the
  8135. // "messaging.destination.temporary" semantic conventions. It represents a
  8136. // boolean that is true if the message destination is temporary and might not
  8137. // exist anymore after messages are processed.
  8138. func MessagingDestinationTemporary(val bool) attribute.KeyValue {
  8139. return MessagingDestinationTemporaryKey.Bool(val)
  8140. }
  8141. // MessagingEventHubsMessageEnqueuedTime returns an attribute KeyValue conforming
  8142. // to the "messaging.eventhubs.message.enqueued_time" semantic conventions. It
  8143. // represents the UTC epoch seconds at which the message has been accepted and
  8144. // stored in the entity.
  8145. func MessagingEventHubsMessageEnqueuedTime(val int) attribute.KeyValue {
  8146. return MessagingEventHubsMessageEnqueuedTimeKey.Int(val)
  8147. }
  8148. // MessagingGCPPubSubMessageAckDeadline returns an attribute KeyValue conforming
  8149. // to the "messaging.gcp_pubsub.message.ack_deadline" semantic conventions. It
  8150. // represents the ack deadline in seconds set for the modify ack deadline
  8151. // request.
  8152. func MessagingGCPPubSubMessageAckDeadline(val int) attribute.KeyValue {
  8153. return MessagingGCPPubSubMessageAckDeadlineKey.Int(val)
  8154. }
  8155. // MessagingGCPPubSubMessageAckID returns an attribute KeyValue conforming to the
  8156. // "messaging.gcp_pubsub.message.ack_id" semantic conventions. It represents the
  8157. // ack id for a given message.
  8158. func MessagingGCPPubSubMessageAckID(val string) attribute.KeyValue {
  8159. return MessagingGCPPubSubMessageAckIDKey.String(val)
  8160. }
  8161. // MessagingGCPPubSubMessageDeliveryAttempt returns an attribute KeyValue
  8162. // conforming to the "messaging.gcp_pubsub.message.delivery_attempt" semantic
  8163. // conventions. It represents the delivery attempt for a given message.
  8164. func MessagingGCPPubSubMessageDeliveryAttempt(val int) attribute.KeyValue {
  8165. return MessagingGCPPubSubMessageDeliveryAttemptKey.Int(val)
  8166. }
  8167. // MessagingGCPPubSubMessageOrderingKey returns an attribute KeyValue conforming
  8168. // to the "messaging.gcp_pubsub.message.ordering_key" semantic conventions. It
  8169. // represents the ordering key for a given message. If the attribute is not
  8170. // present, the message does not have an ordering key.
  8171. func MessagingGCPPubSubMessageOrderingKey(val string) attribute.KeyValue {
  8172. return MessagingGCPPubSubMessageOrderingKeyKey.String(val)
  8173. }
  8174. // MessagingKafkaMessageKey returns an attribute KeyValue conforming to the
  8175. // "messaging.kafka.message.key" semantic conventions. It represents the message
  8176. // keys in Kafka are used for grouping alike messages to ensure they're processed
  8177. // on the same partition. They differ from `messaging.message.id` in that they're
  8178. // not unique. If the key is `null`, the attribute MUST NOT be set.
  8179. func MessagingKafkaMessageKey(val string) attribute.KeyValue {
  8180. return MessagingKafkaMessageKeyKey.String(val)
  8181. }
  8182. // MessagingKafkaMessageTombstone returns an attribute KeyValue conforming to the
  8183. // "messaging.kafka.message.tombstone" semantic conventions. It represents a
  8184. // boolean that is true if the message is a tombstone.
  8185. func MessagingKafkaMessageTombstone(val bool) attribute.KeyValue {
  8186. return MessagingKafkaMessageTombstoneKey.Bool(val)
  8187. }
  8188. // MessagingKafkaOffset returns an attribute KeyValue conforming to the
  8189. // "messaging.kafka.offset" semantic conventions. It represents the offset of a
  8190. // record in the corresponding Kafka partition.
  8191. func MessagingKafkaOffset(val int) attribute.KeyValue {
  8192. return MessagingKafkaOffsetKey.Int(val)
  8193. }
  8194. // MessagingMessageBodySize returns an attribute KeyValue conforming to the
  8195. // "messaging.message.body.size" semantic conventions. It represents the size of
  8196. // the message body in bytes.
  8197. func MessagingMessageBodySize(val int) attribute.KeyValue {
  8198. return MessagingMessageBodySizeKey.Int(val)
  8199. }
  8200. // MessagingMessageConversationID returns an attribute KeyValue conforming to the
  8201. // "messaging.message.conversation_id" semantic conventions. It represents the
  8202. // conversation ID identifying the conversation to which the message belongs,
  8203. // represented as a string. Sometimes called "Correlation ID".
  8204. func MessagingMessageConversationID(val string) attribute.KeyValue {
  8205. return MessagingMessageConversationIDKey.String(val)
  8206. }
  8207. // MessagingMessageEnvelopeSize returns an attribute KeyValue conforming to the
  8208. // "messaging.message.envelope.size" semantic conventions. It represents the size
  8209. // of the message body and metadata in bytes.
  8210. func MessagingMessageEnvelopeSize(val int) attribute.KeyValue {
  8211. return MessagingMessageEnvelopeSizeKey.Int(val)
  8212. }
  8213. // MessagingMessageID returns an attribute KeyValue conforming to the
  8214. // "messaging.message.id" semantic conventions. It represents a value used by the
  8215. // messaging system as an identifier for the message, represented as a string.
  8216. func MessagingMessageID(val string) attribute.KeyValue {
  8217. return MessagingMessageIDKey.String(val)
  8218. }
  8219. // MessagingOperationName returns an attribute KeyValue conforming to the
  8220. // "messaging.operation.name" semantic conventions. It represents the
  8221. // system-specific name of the messaging operation.
  8222. func MessagingOperationName(val string) attribute.KeyValue {
  8223. return MessagingOperationNameKey.String(val)
  8224. }
  8225. // MessagingRabbitMQDestinationRoutingKey returns an attribute KeyValue
  8226. // conforming to the "messaging.rabbitmq.destination.routing_key" semantic
  8227. // conventions. It represents the rabbitMQ message routing key.
  8228. func MessagingRabbitMQDestinationRoutingKey(val string) attribute.KeyValue {
  8229. return MessagingRabbitMQDestinationRoutingKeyKey.String(val)
  8230. }
  8231. // MessagingRabbitMQMessageDeliveryTag returns an attribute KeyValue conforming
  8232. // to the "messaging.rabbitmq.message.delivery_tag" semantic conventions. It
  8233. // represents the rabbitMQ message delivery tag.
  8234. func MessagingRabbitMQMessageDeliveryTag(val int) attribute.KeyValue {
  8235. return MessagingRabbitMQMessageDeliveryTagKey.Int(val)
  8236. }
  8237. // MessagingRocketMQMessageDelayTimeLevel returns an attribute KeyValue
  8238. // conforming to the "messaging.rocketmq.message.delay_time_level" semantic
  8239. // conventions. It represents the delay time level for delay message, which
  8240. // determines the message delay time.
  8241. func MessagingRocketMQMessageDelayTimeLevel(val int) attribute.KeyValue {
  8242. return MessagingRocketMQMessageDelayTimeLevelKey.Int(val)
  8243. }
  8244. // MessagingRocketMQMessageDeliveryTimestamp returns an attribute KeyValue
  8245. // conforming to the "messaging.rocketmq.message.delivery_timestamp" semantic
  8246. // conventions. It represents the timestamp in milliseconds that the delay
  8247. // message is expected to be delivered to consumer.
  8248. func MessagingRocketMQMessageDeliveryTimestamp(val int) attribute.KeyValue {
  8249. return MessagingRocketMQMessageDeliveryTimestampKey.Int(val)
  8250. }
  8251. // MessagingRocketMQMessageGroup returns an attribute KeyValue conforming to the
  8252. // "messaging.rocketmq.message.group" semantic conventions. It represents the it
  8253. // is essential for FIFO message. Messages that belong to the same message group
  8254. // are always processed one by one within the same consumer group.
  8255. func MessagingRocketMQMessageGroup(val string) attribute.KeyValue {
  8256. return MessagingRocketMQMessageGroupKey.String(val)
  8257. }
  8258. // MessagingRocketMQMessageKeys returns an attribute KeyValue conforming to the
  8259. // "messaging.rocketmq.message.keys" semantic conventions. It represents the
  8260. // key(s) of message, another way to mark message besides message id.
  8261. func MessagingRocketMQMessageKeys(val ...string) attribute.KeyValue {
  8262. return MessagingRocketMQMessageKeysKey.StringSlice(val)
  8263. }
  8264. // MessagingRocketMQMessageTag returns an attribute KeyValue conforming to the
  8265. // "messaging.rocketmq.message.tag" semantic conventions. It represents the
  8266. // secondary classifier of message besides topic.
  8267. func MessagingRocketMQMessageTag(val string) attribute.KeyValue {
  8268. return MessagingRocketMQMessageTagKey.String(val)
  8269. }
  8270. // MessagingRocketMQNamespace returns an attribute KeyValue conforming to the
  8271. // "messaging.rocketmq.namespace" semantic conventions. It represents the
  8272. // namespace of RocketMQ resources, resources in different namespaces are
  8273. // individual.
  8274. func MessagingRocketMQNamespace(val string) attribute.KeyValue {
  8275. return MessagingRocketMQNamespaceKey.String(val)
  8276. }
  8277. // MessagingServiceBusMessageDeliveryCount returns an attribute KeyValue
  8278. // conforming to the "messaging.servicebus.message.delivery_count" semantic
  8279. // conventions. It represents the number of deliveries that have been attempted
  8280. // for this message.
  8281. func MessagingServiceBusMessageDeliveryCount(val int) attribute.KeyValue {
  8282. return MessagingServiceBusMessageDeliveryCountKey.Int(val)
  8283. }
  8284. // MessagingServiceBusMessageEnqueuedTime returns an attribute KeyValue
  8285. // conforming to the "messaging.servicebus.message.enqueued_time" semantic
  8286. // conventions. It represents the UTC epoch seconds at which the message has been
  8287. // accepted and stored in the entity.
  8288. func MessagingServiceBusMessageEnqueuedTime(val int) attribute.KeyValue {
  8289. return MessagingServiceBusMessageEnqueuedTimeKey.Int(val)
  8290. }
  8291. // Enum values for messaging.operation.type
  8292. var (
  8293. // A message is created. "Create" spans always refer to a single message and are
  8294. // used to provide a unique creation context for messages in batch sending
  8295. // scenarios.
  8296. //
  8297. // Stability: development
  8298. MessagingOperationTypeCreate = MessagingOperationTypeKey.String("create")
  8299. // One or more messages are provided for sending to an intermediary. If a single
  8300. // message is sent, the context of the "Send" span can be used as the creation
  8301. // context and no "Create" span needs to be created.
  8302. //
  8303. // Stability: development
  8304. MessagingOperationTypeSend = MessagingOperationTypeKey.String("send")
  8305. // One or more messages are requested by a consumer. This operation refers to
  8306. // pull-based scenarios, where consumers explicitly call methods of messaging
  8307. // SDKs to receive messages.
  8308. //
  8309. // Stability: development
  8310. MessagingOperationTypeReceive = MessagingOperationTypeKey.String("receive")
  8311. // One or more messages are processed by a consumer.
  8312. //
  8313. // Stability: development
  8314. MessagingOperationTypeProcess = MessagingOperationTypeKey.String("process")
  8315. // One or more messages are settled.
  8316. //
  8317. // Stability: development
  8318. MessagingOperationTypeSettle = MessagingOperationTypeKey.String("settle")
  8319. // Deprecated: Replaced by `process`.
  8320. MessagingOperationTypeDeliver = MessagingOperationTypeKey.String("deliver")
  8321. // Deprecated: Replaced by `send`.
  8322. MessagingOperationTypePublish = MessagingOperationTypeKey.String("publish")
  8323. )
  8324. // Enum values for messaging.rocketmq.consumption_model
  8325. var (
  8326. // Clustering consumption model
  8327. // Stability: development
  8328. MessagingRocketMQConsumptionModelClustering = MessagingRocketMQConsumptionModelKey.String("clustering")
  8329. // Broadcasting consumption model
  8330. // Stability: development
  8331. MessagingRocketMQConsumptionModelBroadcasting = MessagingRocketMQConsumptionModelKey.String("broadcasting")
  8332. )
  8333. // Enum values for messaging.rocketmq.message.type
  8334. var (
  8335. // Normal message
  8336. // Stability: development
  8337. MessagingRocketMQMessageTypeNormal = MessagingRocketMQMessageTypeKey.String("normal")
  8338. // FIFO message
  8339. // Stability: development
  8340. MessagingRocketMQMessageTypeFifo = MessagingRocketMQMessageTypeKey.String("fifo")
  8341. // Delay message
  8342. // Stability: development
  8343. MessagingRocketMQMessageTypeDelay = MessagingRocketMQMessageTypeKey.String("delay")
  8344. // Transaction message
  8345. // Stability: development
  8346. MessagingRocketMQMessageTypeTransaction = MessagingRocketMQMessageTypeKey.String("transaction")
  8347. )
  8348. // Enum values for messaging.servicebus.disposition_status
  8349. var (
  8350. // Message is completed
  8351. // Stability: development
  8352. MessagingServiceBusDispositionStatusComplete = MessagingServiceBusDispositionStatusKey.String("complete")
  8353. // Message is abandoned
  8354. // Stability: development
  8355. MessagingServiceBusDispositionStatusAbandon = MessagingServiceBusDispositionStatusKey.String("abandon")
  8356. // Message is sent to dead letter queue
  8357. // Stability: development
  8358. MessagingServiceBusDispositionStatusDeadLetter = MessagingServiceBusDispositionStatusKey.String("dead_letter")
  8359. // Message is deferred
  8360. // Stability: development
  8361. MessagingServiceBusDispositionStatusDefer = MessagingServiceBusDispositionStatusKey.String("defer")
  8362. )
  8363. // Enum values for messaging.system
  8364. var (
  8365. // Apache ActiveMQ
  8366. // Stability: development
  8367. MessagingSystemActiveMQ = MessagingSystemKey.String("activemq")
  8368. // Amazon Simple Queue Service (SQS)
  8369. // Stability: development
  8370. MessagingSystemAWSSQS = MessagingSystemKey.String("aws_sqs")
  8371. // Azure Event Grid
  8372. // Stability: development
  8373. MessagingSystemEventGrid = MessagingSystemKey.String("eventgrid")
  8374. // Azure Event Hubs
  8375. // Stability: development
  8376. MessagingSystemEventHubs = MessagingSystemKey.String("eventhubs")
  8377. // Azure Service Bus
  8378. // Stability: development
  8379. MessagingSystemServiceBus = MessagingSystemKey.String("servicebus")
  8380. // Google Cloud Pub/Sub
  8381. // Stability: development
  8382. MessagingSystemGCPPubSub = MessagingSystemKey.String("gcp_pubsub")
  8383. // Java Message Service
  8384. // Stability: development
  8385. MessagingSystemJMS = MessagingSystemKey.String("jms")
  8386. // Apache Kafka
  8387. // Stability: development
  8388. MessagingSystemKafka = MessagingSystemKey.String("kafka")
  8389. // RabbitMQ
  8390. // Stability: development
  8391. MessagingSystemRabbitMQ = MessagingSystemKey.String("rabbitmq")
  8392. // Apache RocketMQ
  8393. // Stability: development
  8394. MessagingSystemRocketMQ = MessagingSystemKey.String("rocketmq")
  8395. // Apache Pulsar
  8396. // Stability: development
  8397. MessagingSystemPulsar = MessagingSystemKey.String("pulsar")
  8398. )
  8399. // Namespace: network
  8400. const (
  8401. // NetworkCarrierICCKey is the attribute Key conforming to the
  8402. // "network.carrier.icc" semantic conventions. It represents the ISO 3166-1
  8403. // alpha-2 2-character country code associated with the mobile carrier network.
  8404. //
  8405. // Type: string
  8406. // RequirementLevel: Recommended
  8407. // Stability: Development
  8408. //
  8409. // Examples: DE
  8410. NetworkCarrierICCKey = attribute.Key("network.carrier.icc")
  8411. // NetworkCarrierMCCKey is the attribute Key conforming to the
  8412. // "network.carrier.mcc" semantic conventions. It represents the mobile carrier
  8413. // country code.
  8414. //
  8415. // Type: string
  8416. // RequirementLevel: Recommended
  8417. // Stability: Development
  8418. //
  8419. // Examples: 310
  8420. NetworkCarrierMCCKey = attribute.Key("network.carrier.mcc")
  8421. // NetworkCarrierMNCKey is the attribute Key conforming to the
  8422. // "network.carrier.mnc" semantic conventions. It represents the mobile carrier
  8423. // network code.
  8424. //
  8425. // Type: string
  8426. // RequirementLevel: Recommended
  8427. // Stability: Development
  8428. //
  8429. // Examples: 001
  8430. NetworkCarrierMNCKey = attribute.Key("network.carrier.mnc")
  8431. // NetworkCarrierNameKey is the attribute Key conforming to the
  8432. // "network.carrier.name" semantic conventions. It represents the name of the
  8433. // mobile carrier.
  8434. //
  8435. // Type: string
  8436. // RequirementLevel: Recommended
  8437. // Stability: Development
  8438. //
  8439. // Examples: sprint
  8440. NetworkCarrierNameKey = attribute.Key("network.carrier.name")
  8441. // NetworkConnectionStateKey is the attribute Key conforming to the
  8442. // "network.connection.state" semantic conventions. It represents the state of
  8443. // network connection.
  8444. //
  8445. // Type: Enum
  8446. // RequirementLevel: Recommended
  8447. // Stability: Development
  8448. //
  8449. // Examples: "close_wait"
  8450. // Note: Connection states are defined as part of the [rfc9293]
  8451. //
  8452. // [rfc9293]: https://datatracker.ietf.org/doc/html/rfc9293#section-3.3.2
  8453. NetworkConnectionStateKey = attribute.Key("network.connection.state")
  8454. // NetworkConnectionSubtypeKey is the attribute Key conforming to the
  8455. // "network.connection.subtype" semantic conventions. It represents the this
  8456. // describes more details regarding the connection.type. It may be the type of
  8457. // cell technology connection, but it could be used for describing details about
  8458. // a wifi connection.
  8459. //
  8460. // Type: Enum
  8461. // RequirementLevel: Recommended
  8462. // Stability: Development
  8463. //
  8464. // Examples: LTE
  8465. NetworkConnectionSubtypeKey = attribute.Key("network.connection.subtype")
  8466. // NetworkConnectionTypeKey is the attribute Key conforming to the
  8467. // "network.connection.type" semantic conventions. It represents the internet
  8468. // connection type.
  8469. //
  8470. // Type: Enum
  8471. // RequirementLevel: Recommended
  8472. // Stability: Development
  8473. //
  8474. // Examples: wifi
  8475. NetworkConnectionTypeKey = attribute.Key("network.connection.type")
  8476. // NetworkInterfaceNameKey is the attribute Key conforming to the
  8477. // "network.interface.name" semantic conventions. It represents the network
  8478. // interface name.
  8479. //
  8480. // Type: string
  8481. // RequirementLevel: Recommended
  8482. // Stability: Development
  8483. //
  8484. // Examples: "lo", "eth0"
  8485. NetworkInterfaceNameKey = attribute.Key("network.interface.name")
  8486. // NetworkIODirectionKey is the attribute Key conforming to the
  8487. // "network.io.direction" semantic conventions. It represents the network IO
  8488. // operation direction.
  8489. //
  8490. // Type: Enum
  8491. // RequirementLevel: Recommended
  8492. // Stability: Development
  8493. //
  8494. // Examples: "transmit"
  8495. NetworkIODirectionKey = attribute.Key("network.io.direction")
  8496. // NetworkLocalAddressKey is the attribute Key conforming to the
  8497. // "network.local.address" semantic conventions. It represents the local address
  8498. // of the network connection - IP address or Unix domain socket name.
  8499. //
  8500. // Type: string
  8501. // RequirementLevel: Recommended
  8502. // Stability: Stable
  8503. //
  8504. // Examples: "10.1.2.80", "/tmp/my.sock"
  8505. NetworkLocalAddressKey = attribute.Key("network.local.address")
  8506. // NetworkLocalPortKey is the attribute Key conforming to the
  8507. // "network.local.port" semantic conventions. It represents the local port
  8508. // number of the network connection.
  8509. //
  8510. // Type: int
  8511. // RequirementLevel: Recommended
  8512. // Stability: Stable
  8513. //
  8514. // Examples: 65123
  8515. NetworkLocalPortKey = attribute.Key("network.local.port")
  8516. // NetworkPeerAddressKey is the attribute Key conforming to the
  8517. // "network.peer.address" semantic conventions. It represents the peer address
  8518. // of the network connection - IP address or Unix domain socket name.
  8519. //
  8520. // Type: string
  8521. // RequirementLevel: Recommended
  8522. // Stability: Stable
  8523. //
  8524. // Examples: "10.1.2.80", "/tmp/my.sock"
  8525. NetworkPeerAddressKey = attribute.Key("network.peer.address")
  8526. // NetworkPeerPortKey is the attribute Key conforming to the "network.peer.port"
  8527. // semantic conventions. It represents the peer port number of the network
  8528. // connection.
  8529. //
  8530. // Type: int
  8531. // RequirementLevel: Recommended
  8532. // Stability: Stable
  8533. //
  8534. // Examples: 65123
  8535. NetworkPeerPortKey = attribute.Key("network.peer.port")
  8536. // NetworkProtocolNameKey is the attribute Key conforming to the
  8537. // "network.protocol.name" semantic conventions. It represents the
  8538. // [OSI application layer] or non-OSI equivalent.
  8539. //
  8540. // Type: string
  8541. // RequirementLevel: Recommended
  8542. // Stability: Stable
  8543. //
  8544. // Examples: "amqp", "http", "mqtt"
  8545. // Note: The value SHOULD be normalized to lowercase.
  8546. //
  8547. // [OSI application layer]: https://wikipedia.org/wiki/Application_layer
  8548. NetworkProtocolNameKey = attribute.Key("network.protocol.name")
  8549. // NetworkProtocolVersionKey is the attribute Key conforming to the
  8550. // "network.protocol.version" semantic conventions. It represents the actual
  8551. // version of the protocol used for network communication.
  8552. //
  8553. // Type: string
  8554. // RequirementLevel: Recommended
  8555. // Stability: Stable
  8556. //
  8557. // Examples: "1.1", "2"
  8558. // Note: If protocol version is subject to negotiation (for example using [ALPN]
  8559. // ), this attribute SHOULD be set to the negotiated version. If the actual
  8560. // protocol version is not known, this attribute SHOULD NOT be set.
  8561. //
  8562. // [ALPN]: https://www.rfc-editor.org/rfc/rfc7301.html
  8563. NetworkProtocolVersionKey = attribute.Key("network.protocol.version")
  8564. // NetworkTransportKey is the attribute Key conforming to the
  8565. // "network.transport" semantic conventions. It represents the
  8566. // [OSI transport layer] or [inter-process communication method].
  8567. //
  8568. // Type: Enum
  8569. // RequirementLevel: Recommended
  8570. // Stability: Stable
  8571. //
  8572. // Examples: "tcp", "udp"
  8573. // Note: The value SHOULD be normalized to lowercase.
  8574. //
  8575. // Consider always setting the transport when setting a port number, since
  8576. // a port number is ambiguous without knowing the transport. For example
  8577. // different processes could be listening on TCP port 12345 and UDP port 12345.
  8578. //
  8579. // [OSI transport layer]: https://wikipedia.org/wiki/Transport_layer
  8580. // [inter-process communication method]: https://wikipedia.org/wiki/Inter-process_communication
  8581. NetworkTransportKey = attribute.Key("network.transport")
  8582. // NetworkTypeKey is the attribute Key conforming to the "network.type" semantic
  8583. // conventions. It represents the [OSI network layer] or non-OSI equivalent.
  8584. //
  8585. // Type: Enum
  8586. // RequirementLevel: Recommended
  8587. // Stability: Stable
  8588. //
  8589. // Examples: "ipv4", "ipv6"
  8590. // Note: The value SHOULD be normalized to lowercase.
  8591. //
  8592. // [OSI network layer]: https://wikipedia.org/wiki/Network_layer
  8593. NetworkTypeKey = attribute.Key("network.type")
  8594. )
  8595. // NetworkCarrierICC returns an attribute KeyValue conforming to the
  8596. // "network.carrier.icc" semantic conventions. It represents the ISO 3166-1
  8597. // alpha-2 2-character country code associated with the mobile carrier network.
  8598. func NetworkCarrierICC(val string) attribute.KeyValue {
  8599. return NetworkCarrierICCKey.String(val)
  8600. }
  8601. // NetworkCarrierMCC returns an attribute KeyValue conforming to the
  8602. // "network.carrier.mcc" semantic conventions. It represents the mobile carrier
  8603. // country code.
  8604. func NetworkCarrierMCC(val string) attribute.KeyValue {
  8605. return NetworkCarrierMCCKey.String(val)
  8606. }
  8607. // NetworkCarrierMNC returns an attribute KeyValue conforming to the
  8608. // "network.carrier.mnc" semantic conventions. It represents the mobile carrier
  8609. // network code.
  8610. func NetworkCarrierMNC(val string) attribute.KeyValue {
  8611. return NetworkCarrierMNCKey.String(val)
  8612. }
  8613. // NetworkCarrierName returns an attribute KeyValue conforming to the
  8614. // "network.carrier.name" semantic conventions. It represents the name of the
  8615. // mobile carrier.
  8616. func NetworkCarrierName(val string) attribute.KeyValue {
  8617. return NetworkCarrierNameKey.String(val)
  8618. }
  8619. // NetworkInterfaceName returns an attribute KeyValue conforming to the
  8620. // "network.interface.name" semantic conventions. It represents the network
  8621. // interface name.
  8622. func NetworkInterfaceName(val string) attribute.KeyValue {
  8623. return NetworkInterfaceNameKey.String(val)
  8624. }
  8625. // NetworkLocalAddress returns an attribute KeyValue conforming to the
  8626. // "network.local.address" semantic conventions. It represents the local address
  8627. // of the network connection - IP address or Unix domain socket name.
  8628. func NetworkLocalAddress(val string) attribute.KeyValue {
  8629. return NetworkLocalAddressKey.String(val)
  8630. }
  8631. // NetworkLocalPort returns an attribute KeyValue conforming to the
  8632. // "network.local.port" semantic conventions. It represents the local port number
  8633. // of the network connection.
  8634. func NetworkLocalPort(val int) attribute.KeyValue {
  8635. return NetworkLocalPortKey.Int(val)
  8636. }
  8637. // NetworkPeerAddress returns an attribute KeyValue conforming to the
  8638. // "network.peer.address" semantic conventions. It represents the peer address of
  8639. // the network connection - IP address or Unix domain socket name.
  8640. func NetworkPeerAddress(val string) attribute.KeyValue {
  8641. return NetworkPeerAddressKey.String(val)
  8642. }
  8643. // NetworkPeerPort returns an attribute KeyValue conforming to the
  8644. // "network.peer.port" semantic conventions. It represents the peer port number
  8645. // of the network connection.
  8646. func NetworkPeerPort(val int) attribute.KeyValue {
  8647. return NetworkPeerPortKey.Int(val)
  8648. }
  8649. // NetworkProtocolName returns an attribute KeyValue conforming to the
  8650. // "network.protocol.name" semantic conventions. It represents the
  8651. // [OSI application layer] or non-OSI equivalent.
  8652. //
  8653. // [OSI application layer]: https://wikipedia.org/wiki/Application_layer
  8654. func NetworkProtocolName(val string) attribute.KeyValue {
  8655. return NetworkProtocolNameKey.String(val)
  8656. }
  8657. // NetworkProtocolVersion returns an attribute KeyValue conforming to the
  8658. // "network.protocol.version" semantic conventions. It represents the actual
  8659. // version of the protocol used for network communication.
  8660. func NetworkProtocolVersion(val string) attribute.KeyValue {
  8661. return NetworkProtocolVersionKey.String(val)
  8662. }
  8663. // Enum values for network.connection.state
  8664. var (
  8665. // closed
  8666. // Stability: development
  8667. NetworkConnectionStateClosed = NetworkConnectionStateKey.String("closed")
  8668. // close_wait
  8669. // Stability: development
  8670. NetworkConnectionStateCloseWait = NetworkConnectionStateKey.String("close_wait")
  8671. // closing
  8672. // Stability: development
  8673. NetworkConnectionStateClosing = NetworkConnectionStateKey.String("closing")
  8674. // established
  8675. // Stability: development
  8676. NetworkConnectionStateEstablished = NetworkConnectionStateKey.String("established")
  8677. // fin_wait_1
  8678. // Stability: development
  8679. NetworkConnectionStateFinWait1 = NetworkConnectionStateKey.String("fin_wait_1")
  8680. // fin_wait_2
  8681. // Stability: development
  8682. NetworkConnectionStateFinWait2 = NetworkConnectionStateKey.String("fin_wait_2")
  8683. // last_ack
  8684. // Stability: development
  8685. NetworkConnectionStateLastAck = NetworkConnectionStateKey.String("last_ack")
  8686. // listen
  8687. // Stability: development
  8688. NetworkConnectionStateListen = NetworkConnectionStateKey.String("listen")
  8689. // syn_received
  8690. // Stability: development
  8691. NetworkConnectionStateSynReceived = NetworkConnectionStateKey.String("syn_received")
  8692. // syn_sent
  8693. // Stability: development
  8694. NetworkConnectionStateSynSent = NetworkConnectionStateKey.String("syn_sent")
  8695. // time_wait
  8696. // Stability: development
  8697. NetworkConnectionStateTimeWait = NetworkConnectionStateKey.String("time_wait")
  8698. )
  8699. // Enum values for network.connection.subtype
  8700. var (
  8701. // GPRS
  8702. // Stability: development
  8703. NetworkConnectionSubtypeGprs = NetworkConnectionSubtypeKey.String("gprs")
  8704. // EDGE
  8705. // Stability: development
  8706. NetworkConnectionSubtypeEdge = NetworkConnectionSubtypeKey.String("edge")
  8707. // UMTS
  8708. // Stability: development
  8709. NetworkConnectionSubtypeUmts = NetworkConnectionSubtypeKey.String("umts")
  8710. // CDMA
  8711. // Stability: development
  8712. NetworkConnectionSubtypeCdma = NetworkConnectionSubtypeKey.String("cdma")
  8713. // EVDO Rel. 0
  8714. // Stability: development
  8715. NetworkConnectionSubtypeEvdo0 = NetworkConnectionSubtypeKey.String("evdo_0")
  8716. // EVDO Rev. A
  8717. // Stability: development
  8718. NetworkConnectionSubtypeEvdoA = NetworkConnectionSubtypeKey.String("evdo_a")
  8719. // CDMA2000 1XRTT
  8720. // Stability: development
  8721. NetworkConnectionSubtypeCdma20001xrtt = NetworkConnectionSubtypeKey.String("cdma2000_1xrtt")
  8722. // HSDPA
  8723. // Stability: development
  8724. NetworkConnectionSubtypeHsdpa = NetworkConnectionSubtypeKey.String("hsdpa")
  8725. // HSUPA
  8726. // Stability: development
  8727. NetworkConnectionSubtypeHsupa = NetworkConnectionSubtypeKey.String("hsupa")
  8728. // HSPA
  8729. // Stability: development
  8730. NetworkConnectionSubtypeHspa = NetworkConnectionSubtypeKey.String("hspa")
  8731. // IDEN
  8732. // Stability: development
  8733. NetworkConnectionSubtypeIden = NetworkConnectionSubtypeKey.String("iden")
  8734. // EVDO Rev. B
  8735. // Stability: development
  8736. NetworkConnectionSubtypeEvdoB = NetworkConnectionSubtypeKey.String("evdo_b")
  8737. // LTE
  8738. // Stability: development
  8739. NetworkConnectionSubtypeLte = NetworkConnectionSubtypeKey.String("lte")
  8740. // EHRPD
  8741. // Stability: development
  8742. NetworkConnectionSubtypeEhrpd = NetworkConnectionSubtypeKey.String("ehrpd")
  8743. // HSPAP
  8744. // Stability: development
  8745. NetworkConnectionSubtypeHspap = NetworkConnectionSubtypeKey.String("hspap")
  8746. // GSM
  8747. // Stability: development
  8748. NetworkConnectionSubtypeGsm = NetworkConnectionSubtypeKey.String("gsm")
  8749. // TD-SCDMA
  8750. // Stability: development
  8751. NetworkConnectionSubtypeTdScdma = NetworkConnectionSubtypeKey.String("td_scdma")
  8752. // IWLAN
  8753. // Stability: development
  8754. NetworkConnectionSubtypeIwlan = NetworkConnectionSubtypeKey.String("iwlan")
  8755. // 5G NR (New Radio)
  8756. // Stability: development
  8757. NetworkConnectionSubtypeNr = NetworkConnectionSubtypeKey.String("nr")
  8758. // 5G NRNSA (New Radio Non-Standalone)
  8759. // Stability: development
  8760. NetworkConnectionSubtypeNrnsa = NetworkConnectionSubtypeKey.String("nrnsa")
  8761. // LTE CA
  8762. // Stability: development
  8763. NetworkConnectionSubtypeLteCa = NetworkConnectionSubtypeKey.String("lte_ca")
  8764. )
  8765. // Enum values for network.connection.type
  8766. var (
  8767. // wifi
  8768. // Stability: development
  8769. NetworkConnectionTypeWifi = NetworkConnectionTypeKey.String("wifi")
  8770. // wired
  8771. // Stability: development
  8772. NetworkConnectionTypeWired = NetworkConnectionTypeKey.String("wired")
  8773. // cell
  8774. // Stability: development
  8775. NetworkConnectionTypeCell = NetworkConnectionTypeKey.String("cell")
  8776. // unavailable
  8777. // Stability: development
  8778. NetworkConnectionTypeUnavailable = NetworkConnectionTypeKey.String("unavailable")
  8779. // unknown
  8780. // Stability: development
  8781. NetworkConnectionTypeUnknown = NetworkConnectionTypeKey.String("unknown")
  8782. )
  8783. // Enum values for network.io.direction
  8784. var (
  8785. // transmit
  8786. // Stability: development
  8787. NetworkIODirectionTransmit = NetworkIODirectionKey.String("transmit")
  8788. // receive
  8789. // Stability: development
  8790. NetworkIODirectionReceive = NetworkIODirectionKey.String("receive")
  8791. )
  8792. // Enum values for network.transport
  8793. var (
  8794. // TCP
  8795. // Stability: stable
  8796. NetworkTransportTCP = NetworkTransportKey.String("tcp")
  8797. // UDP
  8798. // Stability: stable
  8799. NetworkTransportUDP = NetworkTransportKey.String("udp")
  8800. // Named or anonymous pipe.
  8801. // Stability: stable
  8802. NetworkTransportPipe = NetworkTransportKey.String("pipe")
  8803. // Unix domain socket
  8804. // Stability: stable
  8805. NetworkTransportUnix = NetworkTransportKey.String("unix")
  8806. // QUIC
  8807. // Stability: stable
  8808. NetworkTransportQUIC = NetworkTransportKey.String("quic")
  8809. )
  8810. // Enum values for network.type
  8811. var (
  8812. // IPv4
  8813. // Stability: stable
  8814. NetworkTypeIPv4 = NetworkTypeKey.String("ipv4")
  8815. // IPv6
  8816. // Stability: stable
  8817. NetworkTypeIPv6 = NetworkTypeKey.String("ipv6")
  8818. )
  8819. // Namespace: oci
  8820. const (
  8821. // OCIManifestDigestKey is the attribute Key conforming to the
  8822. // "oci.manifest.digest" semantic conventions. It represents the digest of the
  8823. // OCI image manifest. For container images specifically is the digest by which
  8824. // the container image is known.
  8825. //
  8826. // Type: string
  8827. // RequirementLevel: Recommended
  8828. // Stability: Development
  8829. //
  8830. // Examples:
  8831. // "sha256:e4ca62c0d62f3e886e684806dfe9d4e0cda60d54986898173c1083856cfda0f4"
  8832. // Note: Follows [OCI Image Manifest Specification], and specifically the
  8833. // [Digest property].
  8834. // An example can be found in [Example Image Manifest].
  8835. //
  8836. // [OCI Image Manifest Specification]: https://github.com/opencontainers/image-spec/blob/main/manifest.md
  8837. // [Digest property]: https://github.com/opencontainers/image-spec/blob/main/descriptor.md#digests
  8838. // [Example Image Manifest]: https://github.com/opencontainers/image-spec/blob/main/manifest.md#example-image-manifest
  8839. OCIManifestDigestKey = attribute.Key("oci.manifest.digest")
  8840. )
  8841. // OCIManifestDigest returns an attribute KeyValue conforming to the
  8842. // "oci.manifest.digest" semantic conventions. It represents the digest of the
  8843. // OCI image manifest. For container images specifically is the digest by which
  8844. // the container image is known.
  8845. func OCIManifestDigest(val string) attribute.KeyValue {
  8846. return OCIManifestDigestKey.String(val)
  8847. }
  8848. // Namespace: opentracing
  8849. const (
  8850. // OpenTracingRefTypeKey is the attribute Key conforming to the
  8851. // "opentracing.ref_type" semantic conventions. It represents the parent-child
  8852. // Reference type.
  8853. //
  8854. // Type: Enum
  8855. // RequirementLevel: Recommended
  8856. // Stability: Development
  8857. //
  8858. // Examples:
  8859. // Note: The causal relationship between a child Span and a parent Span.
  8860. OpenTracingRefTypeKey = attribute.Key("opentracing.ref_type")
  8861. )
  8862. // Enum values for opentracing.ref_type
  8863. var (
  8864. // The parent Span depends on the child Span in some capacity
  8865. // Stability: development
  8866. OpenTracingRefTypeChildOf = OpenTracingRefTypeKey.String("child_of")
  8867. // The parent Span doesn't depend in any way on the result of the child Span
  8868. // Stability: development
  8869. OpenTracingRefTypeFollowsFrom = OpenTracingRefTypeKey.String("follows_from")
  8870. )
  8871. // Namespace: os
  8872. const (
  8873. // OSBuildIDKey is the attribute Key conforming to the "os.build_id" semantic
  8874. // conventions. It represents the unique identifier for a particular build or
  8875. // compilation of the operating system.
  8876. //
  8877. // Type: string
  8878. // RequirementLevel: Recommended
  8879. // Stability: Development
  8880. //
  8881. // Examples: "TQ3C.230805.001.B2", "20E247", "22621"
  8882. OSBuildIDKey = attribute.Key("os.build_id")
  8883. // OSDescriptionKey is the attribute Key conforming to the "os.description"
  8884. // semantic conventions. It represents the human readable (not intended to be
  8885. // parsed) OS version information, like e.g. reported by `ver` or
  8886. // `lsb_release -a` commands.
  8887. //
  8888. // Type: string
  8889. // RequirementLevel: Recommended
  8890. // Stability: Development
  8891. //
  8892. // Examples: "Microsoft Windows [Version 10.0.18363.778]", "Ubuntu 18.04.1 LTS"
  8893. OSDescriptionKey = attribute.Key("os.description")
  8894. // OSNameKey is the attribute Key conforming to the "os.name" semantic
  8895. // conventions. It represents the human readable operating system name.
  8896. //
  8897. // Type: string
  8898. // RequirementLevel: Recommended
  8899. // Stability: Development
  8900. //
  8901. // Examples: "iOS", "Android", "Ubuntu"
  8902. OSNameKey = attribute.Key("os.name")
  8903. // OSTypeKey is the attribute Key conforming to the "os.type" semantic
  8904. // conventions. It represents the operating system type.
  8905. //
  8906. // Type: Enum
  8907. // RequirementLevel: Recommended
  8908. // Stability: Development
  8909. //
  8910. // Examples:
  8911. OSTypeKey = attribute.Key("os.type")
  8912. // OSVersionKey is the attribute Key conforming to the "os.version" semantic
  8913. // conventions. It represents the version string of the operating system as
  8914. // defined in [Version Attributes].
  8915. //
  8916. // Type: string
  8917. // RequirementLevel: Recommended
  8918. // Stability: Development
  8919. //
  8920. // Examples: "14.2.1", "18.04.1"
  8921. //
  8922. // [Version Attributes]: /docs/resource/README.md#version-attributes
  8923. OSVersionKey = attribute.Key("os.version")
  8924. )
  8925. // OSBuildID returns an attribute KeyValue conforming to the "os.build_id"
  8926. // semantic conventions. It represents the unique identifier for a particular
  8927. // build or compilation of the operating system.
  8928. func OSBuildID(val string) attribute.KeyValue {
  8929. return OSBuildIDKey.String(val)
  8930. }
  8931. // OSDescription returns an attribute KeyValue conforming to the "os.description"
  8932. // semantic conventions. It represents the human readable (not intended to be
  8933. // parsed) OS version information, like e.g. reported by `ver` or
  8934. // `lsb_release -a` commands.
  8935. func OSDescription(val string) attribute.KeyValue {
  8936. return OSDescriptionKey.String(val)
  8937. }
  8938. // OSName returns an attribute KeyValue conforming to the "os.name" semantic
  8939. // conventions. It represents the human readable operating system name.
  8940. func OSName(val string) attribute.KeyValue {
  8941. return OSNameKey.String(val)
  8942. }
  8943. // OSVersion returns an attribute KeyValue conforming to the "os.version"
  8944. // semantic conventions. It represents the version string of the operating system
  8945. // as defined in [Version Attributes].
  8946. //
  8947. // [Version Attributes]: /docs/resource/README.md#version-attributes
  8948. func OSVersion(val string) attribute.KeyValue {
  8949. return OSVersionKey.String(val)
  8950. }
  8951. // Enum values for os.type
  8952. var (
  8953. // Microsoft Windows
  8954. // Stability: development
  8955. OSTypeWindows = OSTypeKey.String("windows")
  8956. // Linux
  8957. // Stability: development
  8958. OSTypeLinux = OSTypeKey.String("linux")
  8959. // Apple Darwin
  8960. // Stability: development
  8961. OSTypeDarwin = OSTypeKey.String("darwin")
  8962. // FreeBSD
  8963. // Stability: development
  8964. OSTypeFreeBSD = OSTypeKey.String("freebsd")
  8965. // NetBSD
  8966. // Stability: development
  8967. OSTypeNetBSD = OSTypeKey.String("netbsd")
  8968. // OpenBSD
  8969. // Stability: development
  8970. OSTypeOpenBSD = OSTypeKey.String("openbsd")
  8971. // DragonFly BSD
  8972. // Stability: development
  8973. OSTypeDragonflyBSD = OSTypeKey.String("dragonflybsd")
  8974. // HP-UX (Hewlett Packard Unix)
  8975. // Stability: development
  8976. OSTypeHPUX = OSTypeKey.String("hpux")
  8977. // AIX (Advanced Interactive eXecutive)
  8978. // Stability: development
  8979. OSTypeAIX = OSTypeKey.String("aix")
  8980. // SunOS, Oracle Solaris
  8981. // Stability: development
  8982. OSTypeSolaris = OSTypeKey.String("solaris")
  8983. // IBM z/OS
  8984. // Stability: development
  8985. OSTypeZOS = OSTypeKey.String("z_os")
  8986. )
  8987. // Namespace: otel
  8988. const (
  8989. // OTelComponentNameKey is the attribute Key conforming to the
  8990. // "otel.component.name" semantic conventions. It represents a name uniquely
  8991. // identifying the instance of the OpenTelemetry component within its containing
  8992. // SDK instance.
  8993. //
  8994. // Type: string
  8995. // RequirementLevel: Recommended
  8996. // Stability: Development
  8997. //
  8998. // Examples: "otlp_grpc_span_exporter/0", "custom-name"
  8999. // Note: Implementations SHOULD ensure a low cardinality for this attribute,
  9000. // even across application or SDK restarts.
  9001. // E.g. implementations MUST NOT use UUIDs as values for this attribute.
  9002. //
  9003. // Implementations MAY achieve these goals by following a
  9004. // `<otel.component.type>/<instance-counter>` pattern, e.g.
  9005. // `batching_span_processor/0`.
  9006. // Hereby `otel.component.type` refers to the corresponding attribute value of
  9007. // the component.
  9008. //
  9009. // The value of `instance-counter` MAY be automatically assigned by the
  9010. // component and uniqueness within the enclosing SDK instance MUST be
  9011. // guaranteed.
  9012. // For example, `<instance-counter>` MAY be implemented by using a monotonically
  9013. // increasing counter (starting with `0`), which is incremented every time an
  9014. // instance of the given component type is started.
  9015. //
  9016. // With this implementation, for example the first Batching Span Processor would
  9017. // have `batching_span_processor/0`
  9018. // as `otel.component.name`, the second one `batching_span_processor/1` and so
  9019. // on.
  9020. // These values will therefore be reused in the case of an application restart.
  9021. OTelComponentNameKey = attribute.Key("otel.component.name")
  9022. // OTelComponentTypeKey is the attribute Key conforming to the
  9023. // "otel.component.type" semantic conventions. It represents a name identifying
  9024. // the type of the OpenTelemetry component.
  9025. //
  9026. // Type: Enum
  9027. // RequirementLevel: Recommended
  9028. // Stability: Development
  9029. //
  9030. // Examples: "batching_span_processor", "com.example.MySpanExporter"
  9031. // Note: If none of the standardized values apply, implementations SHOULD use
  9032. // the language-defined name of the type.
  9033. // E.g. for Java the fully qualified classname SHOULD be used in this case.
  9034. OTelComponentTypeKey = attribute.Key("otel.component.type")
  9035. // OTelScopeNameKey is the attribute Key conforming to the "otel.scope.name"
  9036. // semantic conventions. It represents the name of the instrumentation scope - (
  9037. // `InstrumentationScope.Name` in OTLP).
  9038. //
  9039. // Type: string
  9040. // RequirementLevel: Recommended
  9041. // Stability: Stable
  9042. //
  9043. // Examples: "io.opentelemetry.contrib.mongodb"
  9044. OTelScopeNameKey = attribute.Key("otel.scope.name")
  9045. // OTelScopeVersionKey is the attribute Key conforming to the
  9046. // "otel.scope.version" semantic conventions. It represents the version of the
  9047. // instrumentation scope - (`InstrumentationScope.Version` in OTLP).
  9048. //
  9049. // Type: string
  9050. // RequirementLevel: Recommended
  9051. // Stability: Stable
  9052. //
  9053. // Examples: "1.0.0"
  9054. OTelScopeVersionKey = attribute.Key("otel.scope.version")
  9055. // OTelSpanSamplingResultKey is the attribute Key conforming to the
  9056. // "otel.span.sampling_result" semantic conventions. It represents the result
  9057. // value of the sampler for this span.
  9058. //
  9059. // Type: Enum
  9060. // RequirementLevel: Recommended
  9061. // Stability: Development
  9062. //
  9063. // Examples:
  9064. OTelSpanSamplingResultKey = attribute.Key("otel.span.sampling_result")
  9065. // OTelStatusCodeKey is the attribute Key conforming to the "otel.status_code"
  9066. // semantic conventions. It represents the name of the code, either "OK" or
  9067. // "ERROR". MUST NOT be set if the status code is UNSET.
  9068. //
  9069. // Type: Enum
  9070. // RequirementLevel: Recommended
  9071. // Stability: Stable
  9072. //
  9073. // Examples:
  9074. OTelStatusCodeKey = attribute.Key("otel.status_code")
  9075. // OTelStatusDescriptionKey is the attribute Key conforming to the
  9076. // "otel.status_description" semantic conventions. It represents the description
  9077. // of the Status if it has a value, otherwise not set.
  9078. //
  9079. // Type: string
  9080. // RequirementLevel: Recommended
  9081. // Stability: Stable
  9082. //
  9083. // Examples: "resource not found"
  9084. OTelStatusDescriptionKey = attribute.Key("otel.status_description")
  9085. )
  9086. // OTelComponentName returns an attribute KeyValue conforming to the
  9087. // "otel.component.name" semantic conventions. It represents a name uniquely
  9088. // identifying the instance of the OpenTelemetry component within its containing
  9089. // SDK instance.
  9090. func OTelComponentName(val string) attribute.KeyValue {
  9091. return OTelComponentNameKey.String(val)
  9092. }
  9093. // OTelScopeName returns an attribute KeyValue conforming to the
  9094. // "otel.scope.name" semantic conventions. It represents the name of the
  9095. // instrumentation scope - (`InstrumentationScope.Name` in OTLP).
  9096. func OTelScopeName(val string) attribute.KeyValue {
  9097. return OTelScopeNameKey.String(val)
  9098. }
  9099. // OTelScopeVersion returns an attribute KeyValue conforming to the
  9100. // "otel.scope.version" semantic conventions. It represents the version of the
  9101. // instrumentation scope - (`InstrumentationScope.Version` in OTLP).
  9102. func OTelScopeVersion(val string) attribute.KeyValue {
  9103. return OTelScopeVersionKey.String(val)
  9104. }
  9105. // OTelStatusDescription returns an attribute KeyValue conforming to the
  9106. // "otel.status_description" semantic conventions. It represents the description
  9107. // of the Status if it has a value, otherwise not set.
  9108. func OTelStatusDescription(val string) attribute.KeyValue {
  9109. return OTelStatusDescriptionKey.String(val)
  9110. }
  9111. // Enum values for otel.component.type
  9112. var (
  9113. // The builtin SDK batching span processor
  9114. //
  9115. // Stability: development
  9116. OTelComponentTypeBatchingSpanProcessor = OTelComponentTypeKey.String("batching_span_processor")
  9117. // The builtin SDK simple span processor
  9118. //
  9119. // Stability: development
  9120. OTelComponentTypeSimpleSpanProcessor = OTelComponentTypeKey.String("simple_span_processor")
  9121. // The builtin SDK batching log record processor
  9122. //
  9123. // Stability: development
  9124. OTelComponentTypeBatchingLogProcessor = OTelComponentTypeKey.String("batching_log_processor")
  9125. // The builtin SDK simple log record processor
  9126. //
  9127. // Stability: development
  9128. OTelComponentTypeSimpleLogProcessor = OTelComponentTypeKey.String("simple_log_processor")
  9129. // OTLP span exporter over gRPC with protobuf serialization
  9130. //
  9131. // Stability: development
  9132. OTelComponentTypeOtlpGRPCSpanExporter = OTelComponentTypeKey.String("otlp_grpc_span_exporter")
  9133. // OTLP span exporter over HTTP with protobuf serialization
  9134. //
  9135. // Stability: development
  9136. OTelComponentTypeOtlpHTTPSpanExporter = OTelComponentTypeKey.String("otlp_http_span_exporter")
  9137. // OTLP span exporter over HTTP with JSON serialization
  9138. //
  9139. // Stability: development
  9140. OTelComponentTypeOtlpHTTPJSONSpanExporter = OTelComponentTypeKey.String("otlp_http_json_span_exporter")
  9141. // OTLP log record exporter over gRPC with protobuf serialization
  9142. //
  9143. // Stability: development
  9144. OTelComponentTypeOtlpGRPCLogExporter = OTelComponentTypeKey.String("otlp_grpc_log_exporter")
  9145. // OTLP log record exporter over HTTP with protobuf serialization
  9146. //
  9147. // Stability: development
  9148. OTelComponentTypeOtlpHTTPLogExporter = OTelComponentTypeKey.String("otlp_http_log_exporter")
  9149. // OTLP log record exporter over HTTP with JSON serialization
  9150. //
  9151. // Stability: development
  9152. OTelComponentTypeOtlpHTTPJSONLogExporter = OTelComponentTypeKey.String("otlp_http_json_log_exporter")
  9153. // The builtin SDK periodically exporting metric reader
  9154. //
  9155. // Stability: development
  9156. OTelComponentTypePeriodicMetricReader = OTelComponentTypeKey.String("periodic_metric_reader")
  9157. // OTLP metric exporter over gRPC with protobuf serialization
  9158. //
  9159. // Stability: development
  9160. OTelComponentTypeOtlpGRPCMetricExporter = OTelComponentTypeKey.String("otlp_grpc_metric_exporter")
  9161. // OTLP metric exporter over HTTP with protobuf serialization
  9162. //
  9163. // Stability: development
  9164. OTelComponentTypeOtlpHTTPMetricExporter = OTelComponentTypeKey.String("otlp_http_metric_exporter")
  9165. // OTLP metric exporter over HTTP with JSON serialization
  9166. //
  9167. // Stability: development
  9168. OTelComponentTypeOtlpHTTPJSONMetricExporter = OTelComponentTypeKey.String("otlp_http_json_metric_exporter")
  9169. )
  9170. // Enum values for otel.span.sampling_result
  9171. var (
  9172. // The span is not sampled and not recording
  9173. // Stability: development
  9174. OTelSpanSamplingResultDrop = OTelSpanSamplingResultKey.String("DROP")
  9175. // The span is not sampled, but recording
  9176. // Stability: development
  9177. OTelSpanSamplingResultRecordOnly = OTelSpanSamplingResultKey.String("RECORD_ONLY")
  9178. // The span is sampled and recording
  9179. // Stability: development
  9180. OTelSpanSamplingResultRecordAndSample = OTelSpanSamplingResultKey.String("RECORD_AND_SAMPLE")
  9181. )
  9182. // Enum values for otel.status_code
  9183. var (
  9184. // The operation has been validated by an Application developer or Operator to
  9185. // have completed successfully.
  9186. // Stability: stable
  9187. OTelStatusCodeOk = OTelStatusCodeKey.String("OK")
  9188. // The operation contains an error.
  9189. // Stability: stable
  9190. OTelStatusCodeError = OTelStatusCodeKey.String("ERROR")
  9191. )
  9192. // Namespace: peer
  9193. const (
  9194. // PeerServiceKey is the attribute Key conforming to the "peer.service" semantic
  9195. // conventions. It represents the [`service.name`] of the remote service. SHOULD
  9196. // be equal to the actual `service.name` resource attribute of the remote
  9197. // service if any.
  9198. //
  9199. // Type: string
  9200. // RequirementLevel: Recommended
  9201. // Stability: Development
  9202. //
  9203. // Examples: AuthTokenCache
  9204. //
  9205. // [`service.name`]: /docs/resource/README.md#service
  9206. PeerServiceKey = attribute.Key("peer.service")
  9207. )
  9208. // PeerService returns an attribute KeyValue conforming to the "peer.service"
  9209. // semantic conventions. It represents the [`service.name`] of the remote
  9210. // service. SHOULD be equal to the actual `service.name` resource attribute of
  9211. // the remote service if any.
  9212. //
  9213. // [`service.name`]: /docs/resource/README.md#service
  9214. func PeerService(val string) attribute.KeyValue {
  9215. return PeerServiceKey.String(val)
  9216. }
  9217. // Namespace: process
  9218. const (
  9219. // ProcessArgsCountKey is the attribute Key conforming to the
  9220. // "process.args_count" semantic conventions. It represents the length of the
  9221. // process.command_args array.
  9222. //
  9223. // Type: int
  9224. // RequirementLevel: Recommended
  9225. // Stability: Development
  9226. //
  9227. // Examples: 4
  9228. // Note: This field can be useful for querying or performing bucket analysis on
  9229. // how many arguments were provided to start a process. More arguments may be an
  9230. // indication of suspicious activity.
  9231. ProcessArgsCountKey = attribute.Key("process.args_count")
  9232. // ProcessCommandKey is the attribute Key conforming to the "process.command"
  9233. // semantic conventions. It represents the command used to launch the process
  9234. // (i.e. the command name). On Linux based systems, can be set to the zeroth
  9235. // string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter
  9236. // extracted from `GetCommandLineW`.
  9237. //
  9238. // Type: string
  9239. // RequirementLevel: Recommended
  9240. // Stability: Development
  9241. //
  9242. // Examples: "cmd/otelcol"
  9243. ProcessCommandKey = attribute.Key("process.command")
  9244. // ProcessCommandArgsKey is the attribute Key conforming to the
  9245. // "process.command_args" semantic conventions. It represents the all the
  9246. // command arguments (including the command/executable itself) as received by
  9247. // the process. On Linux-based systems (and some other Unixoid systems
  9248. // supporting procfs), can be set according to the list of null-delimited
  9249. // strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this
  9250. // would be the full argv vector passed to `main`. SHOULD NOT be collected by
  9251. // default unless there is sanitization that excludes sensitive data.
  9252. //
  9253. // Type: string[]
  9254. // RequirementLevel: Recommended
  9255. // Stability: Development
  9256. //
  9257. // Examples: "cmd/otecol", "--config=config.yaml"
  9258. ProcessCommandArgsKey = attribute.Key("process.command_args")
  9259. // ProcessCommandLineKey is the attribute Key conforming to the
  9260. // "process.command_line" semantic conventions. It represents the full command
  9261. // used to launch the process as a single string representing the full command.
  9262. // On Windows, can be set to the result of `GetCommandLineW`. Do not set this if
  9263. // you have to assemble it just for monitoring; use `process.command_args`
  9264. // instead. SHOULD NOT be collected by default unless there is sanitization that
  9265. // excludes sensitive data.
  9266. //
  9267. // Type: string
  9268. // RequirementLevel: Recommended
  9269. // Stability: Development
  9270. //
  9271. // Examples: "C:\cmd\otecol --config="my directory\config.yaml""
  9272. ProcessCommandLineKey = attribute.Key("process.command_line")
  9273. // ProcessContextSwitchTypeKey is the attribute Key conforming to the
  9274. // "process.context_switch_type" semantic conventions. It represents the
  9275. // specifies whether the context switches for this data point were voluntary or
  9276. // involuntary.
  9277. //
  9278. // Type: Enum
  9279. // RequirementLevel: Recommended
  9280. // Stability: Development
  9281. //
  9282. // Examples:
  9283. ProcessContextSwitchTypeKey = attribute.Key("process.context_switch_type")
  9284. // ProcessCreationTimeKey is the attribute Key conforming to the
  9285. // "process.creation.time" semantic conventions. It represents the date and time
  9286. // the process was created, in ISO 8601 format.
  9287. //
  9288. // Type: string
  9289. // RequirementLevel: Recommended
  9290. // Stability: Development
  9291. //
  9292. // Examples: "2023-11-21T09:25:34.853Z"
  9293. ProcessCreationTimeKey = attribute.Key("process.creation.time")
  9294. // ProcessExecutableBuildIDGNUKey is the attribute Key conforming to the
  9295. // "process.executable.build_id.gnu" semantic conventions. It represents the GNU
  9296. // build ID as found in the `.note.gnu.build-id` ELF section (hex string).
  9297. //
  9298. // Type: string
  9299. // RequirementLevel: Recommended
  9300. // Stability: Development
  9301. //
  9302. // Examples: "c89b11207f6479603b0d49bf291c092c2b719293"
  9303. ProcessExecutableBuildIDGNUKey = attribute.Key("process.executable.build_id.gnu")
  9304. // ProcessExecutableBuildIDGoKey is the attribute Key conforming to the
  9305. // "process.executable.build_id.go" semantic conventions. It represents the Go
  9306. // build ID as retrieved by `go tool buildid <go executable>`.
  9307. //
  9308. // Type: string
  9309. // RequirementLevel: Recommended
  9310. // Stability: Development
  9311. //
  9312. // Examples:
  9313. // "foh3mEXu7BLZjsN9pOwG/kATcXlYVCDEFouRMQed_/WwRFB1hPo9LBkekthSPG/x8hMC8emW2cCjXD0_1aY"
  9314. ProcessExecutableBuildIDGoKey = attribute.Key("process.executable.build_id.go")
  9315. // ProcessExecutableBuildIDHtlhashKey is the attribute Key conforming to the
  9316. // "process.executable.build_id.htlhash" semantic conventions. It represents the
  9317. // profiling specific build ID for executables. See the OTel specification for
  9318. // Profiles for more information.
  9319. //
  9320. // Type: string
  9321. // RequirementLevel: Recommended
  9322. // Stability: Development
  9323. //
  9324. // Examples: "600DCAFE4A110000F2BF38C493F5FB92"
  9325. ProcessExecutableBuildIDHtlhashKey = attribute.Key("process.executable.build_id.htlhash")
  9326. // ProcessExecutableNameKey is the attribute Key conforming to the
  9327. // "process.executable.name" semantic conventions. It represents the name of the
  9328. // process executable. On Linux based systems, this SHOULD be set to the base
  9329. // name of the target of `/proc/[pid]/exe`. On Windows, this SHOULD be set to
  9330. // the base name of `GetProcessImageFileNameW`.
  9331. //
  9332. // Type: string
  9333. // RequirementLevel: Recommended
  9334. // Stability: Development
  9335. //
  9336. // Examples: "otelcol"
  9337. ProcessExecutableNameKey = attribute.Key("process.executable.name")
  9338. // ProcessExecutablePathKey is the attribute Key conforming to the
  9339. // "process.executable.path" semantic conventions. It represents the full path
  9340. // to the process executable. On Linux based systems, can be set to the target
  9341. // of `proc/[pid]/exe`. On Windows, can be set to the result of
  9342. // `GetProcessImageFileNameW`.
  9343. //
  9344. // Type: string
  9345. // RequirementLevel: Recommended
  9346. // Stability: Development
  9347. //
  9348. // Examples: "/usr/bin/cmd/otelcol"
  9349. ProcessExecutablePathKey = attribute.Key("process.executable.path")
  9350. // ProcessExitCodeKey is the attribute Key conforming to the "process.exit.code"
  9351. // semantic conventions. It represents the exit code of the process.
  9352. //
  9353. // Type: int
  9354. // RequirementLevel: Recommended
  9355. // Stability: Development
  9356. //
  9357. // Examples: 127
  9358. ProcessExitCodeKey = attribute.Key("process.exit.code")
  9359. // ProcessExitTimeKey is the attribute Key conforming to the "process.exit.time"
  9360. // semantic conventions. It represents the date and time the process exited, in
  9361. // ISO 8601 format.
  9362. //
  9363. // Type: string
  9364. // RequirementLevel: Recommended
  9365. // Stability: Development
  9366. //
  9367. // Examples: "2023-11-21T09:26:12.315Z"
  9368. ProcessExitTimeKey = attribute.Key("process.exit.time")
  9369. // ProcessGroupLeaderPIDKey is the attribute Key conforming to the
  9370. // "process.group_leader.pid" semantic conventions. It represents the PID of the
  9371. // process's group leader. This is also the process group ID (PGID) of the
  9372. // process.
  9373. //
  9374. // Type: int
  9375. // RequirementLevel: Recommended
  9376. // Stability: Development
  9377. //
  9378. // Examples: 23
  9379. ProcessGroupLeaderPIDKey = attribute.Key("process.group_leader.pid")
  9380. // ProcessInteractiveKey is the attribute Key conforming to the
  9381. // "process.interactive" semantic conventions. It represents the whether the
  9382. // process is connected to an interactive shell.
  9383. //
  9384. // Type: boolean
  9385. // RequirementLevel: Recommended
  9386. // Stability: Development
  9387. //
  9388. // Examples:
  9389. ProcessInteractiveKey = attribute.Key("process.interactive")
  9390. // ProcessLinuxCgroupKey is the attribute Key conforming to the
  9391. // "process.linux.cgroup" semantic conventions. It represents the control group
  9392. // associated with the process.
  9393. //
  9394. // Type: string
  9395. // RequirementLevel: Recommended
  9396. // Stability: Development
  9397. //
  9398. // Examples: "1:name=systemd:/user.slice/user-1000.slice/session-3.scope",
  9399. // "0::/user.slice/user-1000.slice/user@1000.service/tmux-spawn-0267755b-4639-4a27-90ed-f19f88e53748.scope"
  9400. // Note: Control groups (cgroups) are a kernel feature used to organize and
  9401. // manage process resources. This attribute provides the path(s) to the
  9402. // cgroup(s) associated with the process, which should match the contents of the
  9403. // [/proc/[PID]/cgroup] file.
  9404. //
  9405. // [/proc/[PID]/cgroup]: https://man7.org/linux/man-pages/man7/cgroups.7.html
  9406. ProcessLinuxCgroupKey = attribute.Key("process.linux.cgroup")
  9407. // ProcessOwnerKey is the attribute Key conforming to the "process.owner"
  9408. // semantic conventions. It represents the username of the user that owns the
  9409. // process.
  9410. //
  9411. // Type: string
  9412. // RequirementLevel: Recommended
  9413. // Stability: Development
  9414. //
  9415. // Examples: "root"
  9416. ProcessOwnerKey = attribute.Key("process.owner")
  9417. // ProcessPagingFaultTypeKey is the attribute Key conforming to the
  9418. // "process.paging.fault_type" semantic conventions. It represents the type of
  9419. // page fault for this data point. Type `major` is for major/hard page faults,
  9420. // and `minor` is for minor/soft page faults.
  9421. //
  9422. // Type: Enum
  9423. // RequirementLevel: Recommended
  9424. // Stability: Development
  9425. //
  9426. // Examples:
  9427. ProcessPagingFaultTypeKey = attribute.Key("process.paging.fault_type")
  9428. // ProcessParentPIDKey is the attribute Key conforming to the
  9429. // "process.parent_pid" semantic conventions. It represents the parent Process
  9430. // identifier (PPID).
  9431. //
  9432. // Type: int
  9433. // RequirementLevel: Recommended
  9434. // Stability: Development
  9435. //
  9436. // Examples: 111
  9437. ProcessParentPIDKey = attribute.Key("process.parent_pid")
  9438. // ProcessPIDKey is the attribute Key conforming to the "process.pid" semantic
  9439. // conventions. It represents the process identifier (PID).
  9440. //
  9441. // Type: int
  9442. // RequirementLevel: Recommended
  9443. // Stability: Development
  9444. //
  9445. // Examples: 1234
  9446. ProcessPIDKey = attribute.Key("process.pid")
  9447. // ProcessRealUserIDKey is the attribute Key conforming to the
  9448. // "process.real_user.id" semantic conventions. It represents the real user ID
  9449. // (RUID) of the process.
  9450. //
  9451. // Type: int
  9452. // RequirementLevel: Recommended
  9453. // Stability: Development
  9454. //
  9455. // Examples: 1000
  9456. ProcessRealUserIDKey = attribute.Key("process.real_user.id")
  9457. // ProcessRealUserNameKey is the attribute Key conforming to the
  9458. // "process.real_user.name" semantic conventions. It represents the username of
  9459. // the real user of the process.
  9460. //
  9461. // Type: string
  9462. // RequirementLevel: Recommended
  9463. // Stability: Development
  9464. //
  9465. // Examples: "operator"
  9466. ProcessRealUserNameKey = attribute.Key("process.real_user.name")
  9467. // ProcessRuntimeDescriptionKey is the attribute Key conforming to the
  9468. // "process.runtime.description" semantic conventions. It represents an
  9469. // additional description about the runtime of the process, for example a
  9470. // specific vendor customization of the runtime environment.
  9471. //
  9472. // Type: string
  9473. // RequirementLevel: Recommended
  9474. // Stability: Development
  9475. //
  9476. // Examples: Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0
  9477. ProcessRuntimeDescriptionKey = attribute.Key("process.runtime.description")
  9478. // ProcessRuntimeNameKey is the attribute Key conforming to the
  9479. // "process.runtime.name" semantic conventions. It represents the name of the
  9480. // runtime of this process.
  9481. //
  9482. // Type: string
  9483. // RequirementLevel: Recommended
  9484. // Stability: Development
  9485. //
  9486. // Examples: "OpenJDK Runtime Environment"
  9487. ProcessRuntimeNameKey = attribute.Key("process.runtime.name")
  9488. // ProcessRuntimeVersionKey is the attribute Key conforming to the
  9489. // "process.runtime.version" semantic conventions. It represents the version of
  9490. // the runtime of this process, as returned by the runtime without modification.
  9491. //
  9492. // Type: string
  9493. // RequirementLevel: Recommended
  9494. // Stability: Development
  9495. //
  9496. // Examples: 14.0.2
  9497. ProcessRuntimeVersionKey = attribute.Key("process.runtime.version")
  9498. // ProcessSavedUserIDKey is the attribute Key conforming to the
  9499. // "process.saved_user.id" semantic conventions. It represents the saved user ID
  9500. // (SUID) of the process.
  9501. //
  9502. // Type: int
  9503. // RequirementLevel: Recommended
  9504. // Stability: Development
  9505. //
  9506. // Examples: 1002
  9507. ProcessSavedUserIDKey = attribute.Key("process.saved_user.id")
  9508. // ProcessSavedUserNameKey is the attribute Key conforming to the
  9509. // "process.saved_user.name" semantic conventions. It represents the username of
  9510. // the saved user.
  9511. //
  9512. // Type: string
  9513. // RequirementLevel: Recommended
  9514. // Stability: Development
  9515. //
  9516. // Examples: "operator"
  9517. ProcessSavedUserNameKey = attribute.Key("process.saved_user.name")
  9518. // ProcessSessionLeaderPIDKey is the attribute Key conforming to the
  9519. // "process.session_leader.pid" semantic conventions. It represents the PID of
  9520. // the process's session leader. This is also the session ID (SID) of the
  9521. // process.
  9522. //
  9523. // Type: int
  9524. // RequirementLevel: Recommended
  9525. // Stability: Development
  9526. //
  9527. // Examples: 14
  9528. ProcessSessionLeaderPIDKey = attribute.Key("process.session_leader.pid")
  9529. // ProcessTitleKey is the attribute Key conforming to the "process.title"
  9530. // semantic conventions. It represents the process title (proctitle).
  9531. //
  9532. // Type: string
  9533. // RequirementLevel: Recommended
  9534. // Stability: Development
  9535. //
  9536. // Examples: "cat /etc/hostname", "xfce4-session", "bash"
  9537. // Note: In many Unix-like systems, process title (proctitle), is the string
  9538. // that represents the name or command line of a running process, displayed by
  9539. // system monitoring tools like ps, top, and htop.
  9540. ProcessTitleKey = attribute.Key("process.title")
  9541. // ProcessUserIDKey is the attribute Key conforming to the "process.user.id"
  9542. // semantic conventions. It represents the effective user ID (EUID) of the
  9543. // process.
  9544. //
  9545. // Type: int
  9546. // RequirementLevel: Recommended
  9547. // Stability: Development
  9548. //
  9549. // Examples: 1001
  9550. ProcessUserIDKey = attribute.Key("process.user.id")
  9551. // ProcessUserNameKey is the attribute Key conforming to the "process.user.name"
  9552. // semantic conventions. It represents the username of the effective user of the
  9553. // process.
  9554. //
  9555. // Type: string
  9556. // RequirementLevel: Recommended
  9557. // Stability: Development
  9558. //
  9559. // Examples: "root"
  9560. ProcessUserNameKey = attribute.Key("process.user.name")
  9561. // ProcessVpidKey is the attribute Key conforming to the "process.vpid" semantic
  9562. // conventions. It represents the virtual process identifier.
  9563. //
  9564. // Type: int
  9565. // RequirementLevel: Recommended
  9566. // Stability: Development
  9567. //
  9568. // Examples: 12
  9569. // Note: The process ID within a PID namespace. This is not necessarily unique
  9570. // across all processes on the host but it is unique within the process
  9571. // namespace that the process exists within.
  9572. ProcessVpidKey = attribute.Key("process.vpid")
  9573. // ProcessWorkingDirectoryKey is the attribute Key conforming to the
  9574. // "process.working_directory" semantic conventions. It represents the working
  9575. // directory of the process.
  9576. //
  9577. // Type: string
  9578. // RequirementLevel: Recommended
  9579. // Stability: Development
  9580. //
  9581. // Examples: "/root"
  9582. ProcessWorkingDirectoryKey = attribute.Key("process.working_directory")
  9583. )
  9584. // ProcessArgsCount returns an attribute KeyValue conforming to the
  9585. // "process.args_count" semantic conventions. It represents the length of the
  9586. // process.command_args array.
  9587. func ProcessArgsCount(val int) attribute.KeyValue {
  9588. return ProcessArgsCountKey.Int(val)
  9589. }
  9590. // ProcessCommand returns an attribute KeyValue conforming to the
  9591. // "process.command" semantic conventions. It represents the command used to
  9592. // launch the process (i.e. the command name). On Linux based systems, can be set
  9593. // to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the
  9594. // first parameter extracted from `GetCommandLineW`.
  9595. func ProcessCommand(val string) attribute.KeyValue {
  9596. return ProcessCommandKey.String(val)
  9597. }
  9598. // ProcessCommandArgs returns an attribute KeyValue conforming to the
  9599. // "process.command_args" semantic conventions. It represents the all the command
  9600. // arguments (including the command/executable itself) as received by the
  9601. // process. On Linux-based systems (and some other Unixoid systems supporting
  9602. // procfs), can be set according to the list of null-delimited strings extracted
  9603. // from `proc/[pid]/cmdline`. For libc-based executables, this would be the full
  9604. // argv vector passed to `main`. SHOULD NOT be collected by default unless there
  9605. // is sanitization that excludes sensitive data.
  9606. func ProcessCommandArgs(val ...string) attribute.KeyValue {
  9607. return ProcessCommandArgsKey.StringSlice(val)
  9608. }
  9609. // ProcessCommandLine returns an attribute KeyValue conforming to the
  9610. // "process.command_line" semantic conventions. It represents the full command
  9611. // used to launch the process as a single string representing the full command.
  9612. // On Windows, can be set to the result of `GetCommandLineW`. Do not set this if
  9613. // you have to assemble it just for monitoring; use `process.command_args`
  9614. // instead. SHOULD NOT be collected by default unless there is sanitization that
  9615. // excludes sensitive data.
  9616. func ProcessCommandLine(val string) attribute.KeyValue {
  9617. return ProcessCommandLineKey.String(val)
  9618. }
  9619. // ProcessCreationTime returns an attribute KeyValue conforming to the
  9620. // "process.creation.time" semantic conventions. It represents the date and time
  9621. // the process was created, in ISO 8601 format.
  9622. func ProcessCreationTime(val string) attribute.KeyValue {
  9623. return ProcessCreationTimeKey.String(val)
  9624. }
  9625. // ProcessExecutableBuildIDGNU returns an attribute KeyValue conforming to the
  9626. // "process.executable.build_id.gnu" semantic conventions. It represents the GNU
  9627. // build ID as found in the `.note.gnu.build-id` ELF section (hex string).
  9628. func ProcessExecutableBuildIDGNU(val string) attribute.KeyValue {
  9629. return ProcessExecutableBuildIDGNUKey.String(val)
  9630. }
  9631. // ProcessExecutableBuildIDGo returns an attribute KeyValue conforming to the
  9632. // "process.executable.build_id.go" semantic conventions. It represents the Go
  9633. // build ID as retrieved by `go tool buildid <go executable>`.
  9634. func ProcessExecutableBuildIDGo(val string) attribute.KeyValue {
  9635. return ProcessExecutableBuildIDGoKey.String(val)
  9636. }
  9637. // ProcessExecutableBuildIDHtlhash returns an attribute KeyValue conforming to
  9638. // the "process.executable.build_id.htlhash" semantic conventions. It represents
  9639. // the profiling specific build ID for executables. See the OTel specification
  9640. // for Profiles for more information.
  9641. func ProcessExecutableBuildIDHtlhash(val string) attribute.KeyValue {
  9642. return ProcessExecutableBuildIDHtlhashKey.String(val)
  9643. }
  9644. // ProcessExecutableName returns an attribute KeyValue conforming to the
  9645. // "process.executable.name" semantic conventions. It represents the name of the
  9646. // process executable. On Linux based systems, this SHOULD be set to the base
  9647. // name of the target of `/proc/[pid]/exe`. On Windows, this SHOULD be set to the
  9648. // base name of `GetProcessImageFileNameW`.
  9649. func ProcessExecutableName(val string) attribute.KeyValue {
  9650. return ProcessExecutableNameKey.String(val)
  9651. }
  9652. // ProcessExecutablePath returns an attribute KeyValue conforming to the
  9653. // "process.executable.path" semantic conventions. It represents the full path to
  9654. // the process executable. On Linux based systems, can be set to the target of
  9655. // `proc/[pid]/exe`. On Windows, can be set to the result of
  9656. // `GetProcessImageFileNameW`.
  9657. func ProcessExecutablePath(val string) attribute.KeyValue {
  9658. return ProcessExecutablePathKey.String(val)
  9659. }
  9660. // ProcessExitCode returns an attribute KeyValue conforming to the
  9661. // "process.exit.code" semantic conventions. It represents the exit code of the
  9662. // process.
  9663. func ProcessExitCode(val int) attribute.KeyValue {
  9664. return ProcessExitCodeKey.Int(val)
  9665. }
  9666. // ProcessExitTime returns an attribute KeyValue conforming to the
  9667. // "process.exit.time" semantic conventions. It represents the date and time the
  9668. // process exited, in ISO 8601 format.
  9669. func ProcessExitTime(val string) attribute.KeyValue {
  9670. return ProcessExitTimeKey.String(val)
  9671. }
  9672. // ProcessGroupLeaderPID returns an attribute KeyValue conforming to the
  9673. // "process.group_leader.pid" semantic conventions. It represents the PID of the
  9674. // process's group leader. This is also the process group ID (PGID) of the
  9675. // process.
  9676. func ProcessGroupLeaderPID(val int) attribute.KeyValue {
  9677. return ProcessGroupLeaderPIDKey.Int(val)
  9678. }
  9679. // ProcessInteractive returns an attribute KeyValue conforming to the
  9680. // "process.interactive" semantic conventions. It represents the whether the
  9681. // process is connected to an interactive shell.
  9682. func ProcessInteractive(val bool) attribute.KeyValue {
  9683. return ProcessInteractiveKey.Bool(val)
  9684. }
  9685. // ProcessLinuxCgroup returns an attribute KeyValue conforming to the
  9686. // "process.linux.cgroup" semantic conventions. It represents the control group
  9687. // associated with the process.
  9688. func ProcessLinuxCgroup(val string) attribute.KeyValue {
  9689. return ProcessLinuxCgroupKey.String(val)
  9690. }
  9691. // ProcessOwner returns an attribute KeyValue conforming to the "process.owner"
  9692. // semantic conventions. It represents the username of the user that owns the
  9693. // process.
  9694. func ProcessOwner(val string) attribute.KeyValue {
  9695. return ProcessOwnerKey.String(val)
  9696. }
  9697. // ProcessParentPID returns an attribute KeyValue conforming to the
  9698. // "process.parent_pid" semantic conventions. It represents the parent Process
  9699. // identifier (PPID).
  9700. func ProcessParentPID(val int) attribute.KeyValue {
  9701. return ProcessParentPIDKey.Int(val)
  9702. }
  9703. // ProcessPID returns an attribute KeyValue conforming to the "process.pid"
  9704. // semantic conventions. It represents the process identifier (PID).
  9705. func ProcessPID(val int) attribute.KeyValue {
  9706. return ProcessPIDKey.Int(val)
  9707. }
  9708. // ProcessRealUserID returns an attribute KeyValue conforming to the
  9709. // "process.real_user.id" semantic conventions. It represents the real user ID
  9710. // (RUID) of the process.
  9711. func ProcessRealUserID(val int) attribute.KeyValue {
  9712. return ProcessRealUserIDKey.Int(val)
  9713. }
  9714. // ProcessRealUserName returns an attribute KeyValue conforming to the
  9715. // "process.real_user.name" semantic conventions. It represents the username of
  9716. // the real user of the process.
  9717. func ProcessRealUserName(val string) attribute.KeyValue {
  9718. return ProcessRealUserNameKey.String(val)
  9719. }
  9720. // ProcessRuntimeDescription returns an attribute KeyValue conforming to the
  9721. // "process.runtime.description" semantic conventions. It represents an
  9722. // additional description about the runtime of the process, for example a
  9723. // specific vendor customization of the runtime environment.
  9724. func ProcessRuntimeDescription(val string) attribute.KeyValue {
  9725. return ProcessRuntimeDescriptionKey.String(val)
  9726. }
  9727. // ProcessRuntimeName returns an attribute KeyValue conforming to the
  9728. // "process.runtime.name" semantic conventions. It represents the name of the
  9729. // runtime of this process.
  9730. func ProcessRuntimeName(val string) attribute.KeyValue {
  9731. return ProcessRuntimeNameKey.String(val)
  9732. }
  9733. // ProcessRuntimeVersion returns an attribute KeyValue conforming to the
  9734. // "process.runtime.version" semantic conventions. It represents the version of
  9735. // the runtime of this process, as returned by the runtime without modification.
  9736. func ProcessRuntimeVersion(val string) attribute.KeyValue {
  9737. return ProcessRuntimeVersionKey.String(val)
  9738. }
  9739. // ProcessSavedUserID returns an attribute KeyValue conforming to the
  9740. // "process.saved_user.id" semantic conventions. It represents the saved user ID
  9741. // (SUID) of the process.
  9742. func ProcessSavedUserID(val int) attribute.KeyValue {
  9743. return ProcessSavedUserIDKey.Int(val)
  9744. }
  9745. // ProcessSavedUserName returns an attribute KeyValue conforming to the
  9746. // "process.saved_user.name" semantic conventions. It represents the username of
  9747. // the saved user.
  9748. func ProcessSavedUserName(val string) attribute.KeyValue {
  9749. return ProcessSavedUserNameKey.String(val)
  9750. }
  9751. // ProcessSessionLeaderPID returns an attribute KeyValue conforming to the
  9752. // "process.session_leader.pid" semantic conventions. It represents the PID of
  9753. // the process's session leader. This is also the session ID (SID) of the
  9754. // process.
  9755. func ProcessSessionLeaderPID(val int) attribute.KeyValue {
  9756. return ProcessSessionLeaderPIDKey.Int(val)
  9757. }
  9758. // ProcessTitle returns an attribute KeyValue conforming to the "process.title"
  9759. // semantic conventions. It represents the process title (proctitle).
  9760. func ProcessTitle(val string) attribute.KeyValue {
  9761. return ProcessTitleKey.String(val)
  9762. }
  9763. // ProcessUserID returns an attribute KeyValue conforming to the
  9764. // "process.user.id" semantic conventions. It represents the effective user ID
  9765. // (EUID) of the process.
  9766. func ProcessUserID(val int) attribute.KeyValue {
  9767. return ProcessUserIDKey.Int(val)
  9768. }
  9769. // ProcessUserName returns an attribute KeyValue conforming to the
  9770. // "process.user.name" semantic conventions. It represents the username of the
  9771. // effective user of the process.
  9772. func ProcessUserName(val string) attribute.KeyValue {
  9773. return ProcessUserNameKey.String(val)
  9774. }
  9775. // ProcessVpid returns an attribute KeyValue conforming to the "process.vpid"
  9776. // semantic conventions. It represents the virtual process identifier.
  9777. func ProcessVpid(val int) attribute.KeyValue {
  9778. return ProcessVpidKey.Int(val)
  9779. }
  9780. // ProcessWorkingDirectory returns an attribute KeyValue conforming to the
  9781. // "process.working_directory" semantic conventions. It represents the working
  9782. // directory of the process.
  9783. func ProcessWorkingDirectory(val string) attribute.KeyValue {
  9784. return ProcessWorkingDirectoryKey.String(val)
  9785. }
  9786. // Enum values for process.context_switch_type
  9787. var (
  9788. // voluntary
  9789. // Stability: development
  9790. ProcessContextSwitchTypeVoluntary = ProcessContextSwitchTypeKey.String("voluntary")
  9791. // involuntary
  9792. // Stability: development
  9793. ProcessContextSwitchTypeInvoluntary = ProcessContextSwitchTypeKey.String("involuntary")
  9794. )
  9795. // Enum values for process.paging.fault_type
  9796. var (
  9797. // major
  9798. // Stability: development
  9799. ProcessPagingFaultTypeMajor = ProcessPagingFaultTypeKey.String("major")
  9800. // minor
  9801. // Stability: development
  9802. ProcessPagingFaultTypeMinor = ProcessPagingFaultTypeKey.String("minor")
  9803. )
  9804. // Namespace: profile
  9805. const (
  9806. // ProfileFrameTypeKey is the attribute Key conforming to the
  9807. // "profile.frame.type" semantic conventions. It represents the describes the
  9808. // interpreter or compiler of a single frame.
  9809. //
  9810. // Type: Enum
  9811. // RequirementLevel: Recommended
  9812. // Stability: Development
  9813. //
  9814. // Examples: "cpython"
  9815. ProfileFrameTypeKey = attribute.Key("profile.frame.type")
  9816. )
  9817. // Enum values for profile.frame.type
  9818. var (
  9819. // [.NET]
  9820. //
  9821. // Stability: development
  9822. //
  9823. // [.NET]: https://wikipedia.org/wiki/.NET
  9824. ProfileFrameTypeDotnet = ProfileFrameTypeKey.String("dotnet")
  9825. // [JVM]
  9826. //
  9827. // Stability: development
  9828. //
  9829. // [JVM]: https://wikipedia.org/wiki/Java_virtual_machine
  9830. ProfileFrameTypeJVM = ProfileFrameTypeKey.String("jvm")
  9831. // [Kernel]
  9832. //
  9833. // Stability: development
  9834. //
  9835. // [Kernel]: https://wikipedia.org/wiki/Kernel_(operating_system)
  9836. ProfileFrameTypeKernel = ProfileFrameTypeKey.String("kernel")
  9837. // Can be one of but not limited to [C], [C++], [Go] or [Rust]. If possible, a
  9838. // more precise value MUST be used.
  9839. //
  9840. // Stability: development
  9841. //
  9842. // [C]: https://wikipedia.org/wiki/C_(programming_language)
  9843. // [C++]: https://wikipedia.org/wiki/C%2B%2B
  9844. // [Go]: https://wikipedia.org/wiki/Go_(programming_language)
  9845. // [Rust]: https://wikipedia.org/wiki/Rust_(programming_language)
  9846. ProfileFrameTypeNative = ProfileFrameTypeKey.String("native")
  9847. // [Perl]
  9848. //
  9849. // Stability: development
  9850. //
  9851. // [Perl]: https://wikipedia.org/wiki/Perl
  9852. ProfileFrameTypePerl = ProfileFrameTypeKey.String("perl")
  9853. // [PHP]
  9854. //
  9855. // Stability: development
  9856. //
  9857. // [PHP]: https://wikipedia.org/wiki/PHP
  9858. ProfileFrameTypePHP = ProfileFrameTypeKey.String("php")
  9859. // [Python]
  9860. //
  9861. // Stability: development
  9862. //
  9863. // [Python]: https://wikipedia.org/wiki/Python_(programming_language)
  9864. ProfileFrameTypeCpython = ProfileFrameTypeKey.String("cpython")
  9865. // [Ruby]
  9866. //
  9867. // Stability: development
  9868. //
  9869. // [Ruby]: https://wikipedia.org/wiki/Ruby_(programming_language)
  9870. ProfileFrameTypeRuby = ProfileFrameTypeKey.String("ruby")
  9871. // [V8JS]
  9872. //
  9873. // Stability: development
  9874. //
  9875. // [V8JS]: https://wikipedia.org/wiki/V8_(JavaScript_engine)
  9876. ProfileFrameTypeV8JS = ProfileFrameTypeKey.String("v8js")
  9877. // [Erlang]
  9878. //
  9879. // Stability: development
  9880. //
  9881. // [Erlang]: https://en.wikipedia.org/wiki/BEAM_(Erlang_virtual_machine)
  9882. ProfileFrameTypeBeam = ProfileFrameTypeKey.String("beam")
  9883. // [Go],
  9884. //
  9885. // Stability: development
  9886. //
  9887. // [Go]: https://wikipedia.org/wiki/Go_(programming_language)
  9888. ProfileFrameTypeGo = ProfileFrameTypeKey.String("go")
  9889. // [Rust]
  9890. //
  9891. // Stability: development
  9892. //
  9893. // [Rust]: https://wikipedia.org/wiki/Rust_(programming_language)
  9894. ProfileFrameTypeRust = ProfileFrameTypeKey.String("rust")
  9895. )
  9896. // Namespace: rpc
  9897. const (
  9898. // RPCConnectRPCErrorCodeKey is the attribute Key conforming to the
  9899. // "rpc.connect_rpc.error_code" semantic conventions. It represents the
  9900. // [error codes] of the Connect request. Error codes are always string values.
  9901. //
  9902. // Type: Enum
  9903. // RequirementLevel: Recommended
  9904. // Stability: Development
  9905. //
  9906. // Examples:
  9907. //
  9908. // [error codes]: https://connectrpc.com//docs/protocol/#error-codes
  9909. RPCConnectRPCErrorCodeKey = attribute.Key("rpc.connect_rpc.error_code")
  9910. // RPCGRPCStatusCodeKey is the attribute Key conforming to the
  9911. // "rpc.grpc.status_code" semantic conventions. It represents the
  9912. // [numeric status code] of the gRPC request.
  9913. //
  9914. // Type: Enum
  9915. // RequirementLevel: Recommended
  9916. // Stability: Development
  9917. //
  9918. // Examples:
  9919. //
  9920. // [numeric status code]: https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md
  9921. RPCGRPCStatusCodeKey = attribute.Key("rpc.grpc.status_code")
  9922. // RPCJSONRPCErrorCodeKey is the attribute Key conforming to the
  9923. // "rpc.jsonrpc.error_code" semantic conventions. It represents the `error.code`
  9924. // property of response if it is an error response.
  9925. //
  9926. // Type: int
  9927. // RequirementLevel: Recommended
  9928. // Stability: Development
  9929. //
  9930. // Examples: -32700, 100
  9931. RPCJSONRPCErrorCodeKey = attribute.Key("rpc.jsonrpc.error_code")
  9932. // RPCJSONRPCErrorMessageKey is the attribute Key conforming to the
  9933. // "rpc.jsonrpc.error_message" semantic conventions. It represents the
  9934. // `error.message` property of response if it is an error response.
  9935. //
  9936. // Type: string
  9937. // RequirementLevel: Recommended
  9938. // Stability: Development
  9939. //
  9940. // Examples: "Parse error", "User already exists"
  9941. RPCJSONRPCErrorMessageKey = attribute.Key("rpc.jsonrpc.error_message")
  9942. // RPCJSONRPCRequestIDKey is the attribute Key conforming to the
  9943. // "rpc.jsonrpc.request_id" semantic conventions. It represents the `id`
  9944. // property of request or response. Since protocol allows id to be int, string,
  9945. // `null` or missing (for notifications), value is expected to be cast to string
  9946. // for simplicity. Use empty string in case of `null` value. Omit entirely if
  9947. // this is a notification.
  9948. //
  9949. // Type: string
  9950. // RequirementLevel: Recommended
  9951. // Stability: Development
  9952. //
  9953. // Examples: "10", "request-7", ""
  9954. RPCJSONRPCRequestIDKey = attribute.Key("rpc.jsonrpc.request_id")
  9955. // RPCJSONRPCVersionKey is the attribute Key conforming to the
  9956. // "rpc.jsonrpc.version" semantic conventions. It represents the protocol
  9957. // version as in `jsonrpc` property of request/response. Since JSON-RPC 1.0
  9958. // doesn't specify this, the value can be omitted.
  9959. //
  9960. // Type: string
  9961. // RequirementLevel: Recommended
  9962. // Stability: Development
  9963. //
  9964. // Examples: "2.0", "1.0"
  9965. RPCJSONRPCVersionKey = attribute.Key("rpc.jsonrpc.version")
  9966. // RPCMessageCompressedSizeKey is the attribute Key conforming to the
  9967. // "rpc.message.compressed_size" semantic conventions. It represents the
  9968. // compressed size of the message in bytes.
  9969. //
  9970. // Type: int
  9971. // RequirementLevel: Recommended
  9972. // Stability: Development
  9973. //
  9974. // Examples:
  9975. RPCMessageCompressedSizeKey = attribute.Key("rpc.message.compressed_size")
  9976. // RPCMessageIDKey is the attribute Key conforming to the "rpc.message.id"
  9977. // semantic conventions. It MUST be calculated as two different counters
  9978. // starting from `1` one for sent messages and one for received message..
  9979. //
  9980. // Type: int
  9981. // RequirementLevel: Recommended
  9982. // Stability: Development
  9983. //
  9984. // Examples:
  9985. // Note: This way we guarantee that the values will be consistent between
  9986. // different implementations.
  9987. RPCMessageIDKey = attribute.Key("rpc.message.id")
  9988. // RPCMessageTypeKey is the attribute Key conforming to the "rpc.message.type"
  9989. // semantic conventions. It represents the whether this is a received or sent
  9990. // message.
  9991. //
  9992. // Type: Enum
  9993. // RequirementLevel: Recommended
  9994. // Stability: Development
  9995. //
  9996. // Examples:
  9997. RPCMessageTypeKey = attribute.Key("rpc.message.type")
  9998. // RPCMessageUncompressedSizeKey is the attribute Key conforming to the
  9999. // "rpc.message.uncompressed_size" semantic conventions. It represents the
  10000. // uncompressed size of the message in bytes.
  10001. //
  10002. // Type: int
  10003. // RequirementLevel: Recommended
  10004. // Stability: Development
  10005. //
  10006. // Examples:
  10007. RPCMessageUncompressedSizeKey = attribute.Key("rpc.message.uncompressed_size")
  10008. // RPCMethodKey is the attribute Key conforming to the "rpc.method" semantic
  10009. // conventions. It represents the name of the (logical) method being called,
  10010. // must be equal to the $method part in the span name.
  10011. //
  10012. // Type: string
  10013. // RequirementLevel: Recommended
  10014. // Stability: Development
  10015. //
  10016. // Examples: exampleMethod
  10017. // Note: This is the logical name of the method from the RPC interface
  10018. // perspective, which can be different from the name of any implementing
  10019. // method/function. The `code.function.name` attribute may be used to store the
  10020. // latter (e.g., method actually executing the call on the server side, RPC
  10021. // client stub method on the client side).
  10022. RPCMethodKey = attribute.Key("rpc.method")
  10023. // RPCServiceKey is the attribute Key conforming to the "rpc.service" semantic
  10024. // conventions. It represents the full (logical) name of the service being
  10025. // called, including its package name, if applicable.
  10026. //
  10027. // Type: string
  10028. // RequirementLevel: Recommended
  10029. // Stability: Development
  10030. //
  10031. // Examples: myservice.EchoService
  10032. // Note: This is the logical name of the service from the RPC interface
  10033. // perspective, which can be different from the name of any implementing class.
  10034. // The `code.namespace` attribute may be used to store the latter (despite the
  10035. // attribute name, it may include a class name; e.g., class with method actually
  10036. // executing the call on the server side, RPC client stub class on the client
  10037. // side).
  10038. RPCServiceKey = attribute.Key("rpc.service")
  10039. // RPCSystemKey is the attribute Key conforming to the "rpc.system" semantic
  10040. // conventions. It represents a string identifying the remoting system. See
  10041. // below for a list of well-known identifiers.
  10042. //
  10043. // Type: Enum
  10044. // RequirementLevel: Recommended
  10045. // Stability: Development
  10046. //
  10047. // Examples:
  10048. RPCSystemKey = attribute.Key("rpc.system")
  10049. )
  10050. // RPCJSONRPCErrorCode returns an attribute KeyValue conforming to the
  10051. // "rpc.jsonrpc.error_code" semantic conventions. It represents the `error.code`
  10052. // property of response if it is an error response.
  10053. func RPCJSONRPCErrorCode(val int) attribute.KeyValue {
  10054. return RPCJSONRPCErrorCodeKey.Int(val)
  10055. }
  10056. // RPCJSONRPCErrorMessage returns an attribute KeyValue conforming to the
  10057. // "rpc.jsonrpc.error_message" semantic conventions. It represents the
  10058. // `error.message` property of response if it is an error response.
  10059. func RPCJSONRPCErrorMessage(val string) attribute.KeyValue {
  10060. return RPCJSONRPCErrorMessageKey.String(val)
  10061. }
  10062. // RPCJSONRPCRequestID returns an attribute KeyValue conforming to the
  10063. // "rpc.jsonrpc.request_id" semantic conventions. It represents the `id` property
  10064. // of request or response. Since protocol allows id to be int, string, `null` or
  10065. // missing (for notifications), value is expected to be cast to string for
  10066. // simplicity. Use empty string in case of `null` value. Omit entirely if this is
  10067. // a notification.
  10068. func RPCJSONRPCRequestID(val string) attribute.KeyValue {
  10069. return RPCJSONRPCRequestIDKey.String(val)
  10070. }
  10071. // RPCJSONRPCVersion returns an attribute KeyValue conforming to the
  10072. // "rpc.jsonrpc.version" semantic conventions. It represents the protocol version
  10073. // as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 doesn't
  10074. // specify this, the value can be omitted.
  10075. func RPCJSONRPCVersion(val string) attribute.KeyValue {
  10076. return RPCJSONRPCVersionKey.String(val)
  10077. }
  10078. // RPCMessageCompressedSize returns an attribute KeyValue conforming to the
  10079. // "rpc.message.compressed_size" semantic conventions. It represents the
  10080. // compressed size of the message in bytes.
  10081. func RPCMessageCompressedSize(val int) attribute.KeyValue {
  10082. return RPCMessageCompressedSizeKey.Int(val)
  10083. }
  10084. // RPCMessageID returns an attribute KeyValue conforming to the "rpc.message.id"
  10085. // semantic conventions. It MUST be calculated as two different counters starting
  10086. // from `1` one for sent messages and one for received message..
  10087. func RPCMessageID(val int) attribute.KeyValue {
  10088. return RPCMessageIDKey.Int(val)
  10089. }
  10090. // RPCMessageUncompressedSize returns an attribute KeyValue conforming to the
  10091. // "rpc.message.uncompressed_size" semantic conventions. It represents the
  10092. // uncompressed size of the message in bytes.
  10093. func RPCMessageUncompressedSize(val int) attribute.KeyValue {
  10094. return RPCMessageUncompressedSizeKey.Int(val)
  10095. }
  10096. // RPCMethod returns an attribute KeyValue conforming to the "rpc.method"
  10097. // semantic conventions. It represents the name of the (logical) method being
  10098. // called, must be equal to the $method part in the span name.
  10099. func RPCMethod(val string) attribute.KeyValue {
  10100. return RPCMethodKey.String(val)
  10101. }
  10102. // RPCService returns an attribute KeyValue conforming to the "rpc.service"
  10103. // semantic conventions. It represents the full (logical) name of the service
  10104. // being called, including its package name, if applicable.
  10105. func RPCService(val string) attribute.KeyValue {
  10106. return RPCServiceKey.String(val)
  10107. }
  10108. // Enum values for rpc.connect_rpc.error_code
  10109. var (
  10110. // cancelled
  10111. // Stability: development
  10112. RPCConnectRPCErrorCodeCancelled = RPCConnectRPCErrorCodeKey.String("cancelled")
  10113. // unknown
  10114. // Stability: development
  10115. RPCConnectRPCErrorCodeUnknown = RPCConnectRPCErrorCodeKey.String("unknown")
  10116. // invalid_argument
  10117. // Stability: development
  10118. RPCConnectRPCErrorCodeInvalidArgument = RPCConnectRPCErrorCodeKey.String("invalid_argument")
  10119. // deadline_exceeded
  10120. // Stability: development
  10121. RPCConnectRPCErrorCodeDeadlineExceeded = RPCConnectRPCErrorCodeKey.String("deadline_exceeded")
  10122. // not_found
  10123. // Stability: development
  10124. RPCConnectRPCErrorCodeNotFound = RPCConnectRPCErrorCodeKey.String("not_found")
  10125. // already_exists
  10126. // Stability: development
  10127. RPCConnectRPCErrorCodeAlreadyExists = RPCConnectRPCErrorCodeKey.String("already_exists")
  10128. // permission_denied
  10129. // Stability: development
  10130. RPCConnectRPCErrorCodePermissionDenied = RPCConnectRPCErrorCodeKey.String("permission_denied")
  10131. // resource_exhausted
  10132. // Stability: development
  10133. RPCConnectRPCErrorCodeResourceExhausted = RPCConnectRPCErrorCodeKey.String("resource_exhausted")
  10134. // failed_precondition
  10135. // Stability: development
  10136. RPCConnectRPCErrorCodeFailedPrecondition = RPCConnectRPCErrorCodeKey.String("failed_precondition")
  10137. // aborted
  10138. // Stability: development
  10139. RPCConnectRPCErrorCodeAborted = RPCConnectRPCErrorCodeKey.String("aborted")
  10140. // out_of_range
  10141. // Stability: development
  10142. RPCConnectRPCErrorCodeOutOfRange = RPCConnectRPCErrorCodeKey.String("out_of_range")
  10143. // unimplemented
  10144. // Stability: development
  10145. RPCConnectRPCErrorCodeUnimplemented = RPCConnectRPCErrorCodeKey.String("unimplemented")
  10146. // internal
  10147. // Stability: development
  10148. RPCConnectRPCErrorCodeInternal = RPCConnectRPCErrorCodeKey.String("internal")
  10149. // unavailable
  10150. // Stability: development
  10151. RPCConnectRPCErrorCodeUnavailable = RPCConnectRPCErrorCodeKey.String("unavailable")
  10152. // data_loss
  10153. // Stability: development
  10154. RPCConnectRPCErrorCodeDataLoss = RPCConnectRPCErrorCodeKey.String("data_loss")
  10155. // unauthenticated
  10156. // Stability: development
  10157. RPCConnectRPCErrorCodeUnauthenticated = RPCConnectRPCErrorCodeKey.String("unauthenticated")
  10158. )
  10159. // Enum values for rpc.grpc.status_code
  10160. var (
  10161. // OK
  10162. // Stability: development
  10163. RPCGRPCStatusCodeOk = RPCGRPCStatusCodeKey.Int(0)
  10164. // CANCELLED
  10165. // Stability: development
  10166. RPCGRPCStatusCodeCancelled = RPCGRPCStatusCodeKey.Int(1)
  10167. // UNKNOWN
  10168. // Stability: development
  10169. RPCGRPCStatusCodeUnknown = RPCGRPCStatusCodeKey.Int(2)
  10170. // INVALID_ARGUMENT
  10171. // Stability: development
  10172. RPCGRPCStatusCodeInvalidArgument = RPCGRPCStatusCodeKey.Int(3)
  10173. // DEADLINE_EXCEEDED
  10174. // Stability: development
  10175. RPCGRPCStatusCodeDeadlineExceeded = RPCGRPCStatusCodeKey.Int(4)
  10176. // NOT_FOUND
  10177. // Stability: development
  10178. RPCGRPCStatusCodeNotFound = RPCGRPCStatusCodeKey.Int(5)
  10179. // ALREADY_EXISTS
  10180. // Stability: development
  10181. RPCGRPCStatusCodeAlreadyExists = RPCGRPCStatusCodeKey.Int(6)
  10182. // PERMISSION_DENIED
  10183. // Stability: development
  10184. RPCGRPCStatusCodePermissionDenied = RPCGRPCStatusCodeKey.Int(7)
  10185. // RESOURCE_EXHAUSTED
  10186. // Stability: development
  10187. RPCGRPCStatusCodeResourceExhausted = RPCGRPCStatusCodeKey.Int(8)
  10188. // FAILED_PRECONDITION
  10189. // Stability: development
  10190. RPCGRPCStatusCodeFailedPrecondition = RPCGRPCStatusCodeKey.Int(9)
  10191. // ABORTED
  10192. // Stability: development
  10193. RPCGRPCStatusCodeAborted = RPCGRPCStatusCodeKey.Int(10)
  10194. // OUT_OF_RANGE
  10195. // Stability: development
  10196. RPCGRPCStatusCodeOutOfRange = RPCGRPCStatusCodeKey.Int(11)
  10197. // UNIMPLEMENTED
  10198. // Stability: development
  10199. RPCGRPCStatusCodeUnimplemented = RPCGRPCStatusCodeKey.Int(12)
  10200. // INTERNAL
  10201. // Stability: development
  10202. RPCGRPCStatusCodeInternal = RPCGRPCStatusCodeKey.Int(13)
  10203. // UNAVAILABLE
  10204. // Stability: development
  10205. RPCGRPCStatusCodeUnavailable = RPCGRPCStatusCodeKey.Int(14)
  10206. // DATA_LOSS
  10207. // Stability: development
  10208. RPCGRPCStatusCodeDataLoss = RPCGRPCStatusCodeKey.Int(15)
  10209. // UNAUTHENTICATED
  10210. // Stability: development
  10211. RPCGRPCStatusCodeUnauthenticated = RPCGRPCStatusCodeKey.Int(16)
  10212. )
  10213. // Enum values for rpc.message.type
  10214. var (
  10215. // sent
  10216. // Stability: development
  10217. RPCMessageTypeSent = RPCMessageTypeKey.String("SENT")
  10218. // received
  10219. // Stability: development
  10220. RPCMessageTypeReceived = RPCMessageTypeKey.String("RECEIVED")
  10221. )
  10222. // Enum values for rpc.system
  10223. var (
  10224. // gRPC
  10225. // Stability: development
  10226. RPCSystemGRPC = RPCSystemKey.String("grpc")
  10227. // Java RMI
  10228. // Stability: development
  10229. RPCSystemJavaRmi = RPCSystemKey.String("java_rmi")
  10230. // .NET WCF
  10231. // Stability: development
  10232. RPCSystemDotnetWcf = RPCSystemKey.String("dotnet_wcf")
  10233. // Apache Dubbo
  10234. // Stability: development
  10235. RPCSystemApacheDubbo = RPCSystemKey.String("apache_dubbo")
  10236. // Connect RPC
  10237. // Stability: development
  10238. RPCSystemConnectRPC = RPCSystemKey.String("connect_rpc")
  10239. )
  10240. // Namespace: security_rule
  10241. const (
  10242. // SecurityRuleCategoryKey is the attribute Key conforming to the
  10243. // "security_rule.category" semantic conventions. It represents a categorization
  10244. // value keyword used by the entity using the rule for detection of this event.
  10245. //
  10246. // Type: string
  10247. // RequirementLevel: Recommended
  10248. // Stability: Development
  10249. //
  10250. // Examples: "Attempted Information Leak"
  10251. SecurityRuleCategoryKey = attribute.Key("security_rule.category")
  10252. // SecurityRuleDescriptionKey is the attribute Key conforming to the
  10253. // "security_rule.description" semantic conventions. It represents the
  10254. // description of the rule generating the event.
  10255. //
  10256. // Type: string
  10257. // RequirementLevel: Recommended
  10258. // Stability: Development
  10259. //
  10260. // Examples: "Block requests to public DNS over HTTPS / TLS protocols"
  10261. SecurityRuleDescriptionKey = attribute.Key("security_rule.description")
  10262. // SecurityRuleLicenseKey is the attribute Key conforming to the
  10263. // "security_rule.license" semantic conventions. It represents the name of the
  10264. // license under which the rule used to generate this event is made available.
  10265. //
  10266. // Type: string
  10267. // RequirementLevel: Recommended
  10268. // Stability: Development
  10269. //
  10270. // Examples: "Apache 2.0"
  10271. SecurityRuleLicenseKey = attribute.Key("security_rule.license")
  10272. // SecurityRuleNameKey is the attribute Key conforming to the
  10273. // "security_rule.name" semantic conventions. It represents the name of the rule
  10274. // or signature generating the event.
  10275. //
  10276. // Type: string
  10277. // RequirementLevel: Recommended
  10278. // Stability: Development
  10279. //
  10280. // Examples: "BLOCK_DNS_over_TLS"
  10281. SecurityRuleNameKey = attribute.Key("security_rule.name")
  10282. // SecurityRuleReferenceKey is the attribute Key conforming to the
  10283. // "security_rule.reference" semantic conventions. It represents the reference
  10284. // URL to additional information about the rule used to generate this event.
  10285. //
  10286. // Type: string
  10287. // RequirementLevel: Recommended
  10288. // Stability: Development
  10289. //
  10290. // Examples: "https://en.wikipedia.org/wiki/DNS_over_TLS"
  10291. // Note: The URL can point to the vendor’s documentation about the rule. If
  10292. // that’s not available, it can also be a link to a more general page
  10293. // describing this type of alert.
  10294. SecurityRuleReferenceKey = attribute.Key("security_rule.reference")
  10295. // SecurityRuleRulesetNameKey is the attribute Key conforming to the
  10296. // "security_rule.ruleset.name" semantic conventions. It represents the name of
  10297. // the ruleset, policy, group, or parent category in which the rule used to
  10298. // generate this event is a member.
  10299. //
  10300. // Type: string
  10301. // RequirementLevel: Recommended
  10302. // Stability: Development
  10303. //
  10304. // Examples: "Standard_Protocol_Filters"
  10305. SecurityRuleRulesetNameKey = attribute.Key("security_rule.ruleset.name")
  10306. // SecurityRuleUUIDKey is the attribute Key conforming to the
  10307. // "security_rule.uuid" semantic conventions. It represents a rule ID that is
  10308. // unique within the scope of a set or group of agents, observers, or other
  10309. // entities using the rule for detection of this event.
  10310. //
  10311. // Type: string
  10312. // RequirementLevel: Recommended
  10313. // Stability: Development
  10314. //
  10315. // Examples: "550e8400-e29b-41d4-a716-446655440000", "1100110011"
  10316. SecurityRuleUUIDKey = attribute.Key("security_rule.uuid")
  10317. // SecurityRuleVersionKey is the attribute Key conforming to the
  10318. // "security_rule.version" semantic conventions. It represents the version /
  10319. // revision of the rule being used for analysis.
  10320. //
  10321. // Type: string
  10322. // RequirementLevel: Recommended
  10323. // Stability: Development
  10324. //
  10325. // Examples: "1.0.0"
  10326. SecurityRuleVersionKey = attribute.Key("security_rule.version")
  10327. )
  10328. // SecurityRuleCategory returns an attribute KeyValue conforming to the
  10329. // "security_rule.category" semantic conventions. It represents a categorization
  10330. // value keyword used by the entity using the rule for detection of this event.
  10331. func SecurityRuleCategory(val string) attribute.KeyValue {
  10332. return SecurityRuleCategoryKey.String(val)
  10333. }
  10334. // SecurityRuleDescription returns an attribute KeyValue conforming to the
  10335. // "security_rule.description" semantic conventions. It represents the
  10336. // description of the rule generating the event.
  10337. func SecurityRuleDescription(val string) attribute.KeyValue {
  10338. return SecurityRuleDescriptionKey.String(val)
  10339. }
  10340. // SecurityRuleLicense returns an attribute KeyValue conforming to the
  10341. // "security_rule.license" semantic conventions. It represents the name of the
  10342. // license under which the rule used to generate this event is made available.
  10343. func SecurityRuleLicense(val string) attribute.KeyValue {
  10344. return SecurityRuleLicenseKey.String(val)
  10345. }
  10346. // SecurityRuleName returns an attribute KeyValue conforming to the
  10347. // "security_rule.name" semantic conventions. It represents the name of the rule
  10348. // or signature generating the event.
  10349. func SecurityRuleName(val string) attribute.KeyValue {
  10350. return SecurityRuleNameKey.String(val)
  10351. }
  10352. // SecurityRuleReference returns an attribute KeyValue conforming to the
  10353. // "security_rule.reference" semantic conventions. It represents the reference
  10354. // URL to additional information about the rule used to generate this event.
  10355. func SecurityRuleReference(val string) attribute.KeyValue {
  10356. return SecurityRuleReferenceKey.String(val)
  10357. }
  10358. // SecurityRuleRulesetName returns an attribute KeyValue conforming to the
  10359. // "security_rule.ruleset.name" semantic conventions. It represents the name of
  10360. // the ruleset, policy, group, or parent category in which the rule used to
  10361. // generate this event is a member.
  10362. func SecurityRuleRulesetName(val string) attribute.KeyValue {
  10363. return SecurityRuleRulesetNameKey.String(val)
  10364. }
  10365. // SecurityRuleUUID returns an attribute KeyValue conforming to the
  10366. // "security_rule.uuid" semantic conventions. It represents a rule ID that is
  10367. // unique within the scope of a set or group of agents, observers, or other
  10368. // entities using the rule for detection of this event.
  10369. func SecurityRuleUUID(val string) attribute.KeyValue {
  10370. return SecurityRuleUUIDKey.String(val)
  10371. }
  10372. // SecurityRuleVersion returns an attribute KeyValue conforming to the
  10373. // "security_rule.version" semantic conventions. It represents the version /
  10374. // revision of the rule being used for analysis.
  10375. func SecurityRuleVersion(val string) attribute.KeyValue {
  10376. return SecurityRuleVersionKey.String(val)
  10377. }
  10378. // Namespace: server
  10379. const (
  10380. // ServerAddressKey is the attribute Key conforming to the "server.address"
  10381. // semantic conventions. It represents the server domain name if available
  10382. // without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
  10383. //
  10384. // Type: string
  10385. // RequirementLevel: Recommended
  10386. // Stability: Stable
  10387. //
  10388. // Examples: "example.com", "10.1.2.80", "/tmp/my.sock"
  10389. // Note: When observed from the client side, and when communicating through an
  10390. // intermediary, `server.address` SHOULD represent the server address behind any
  10391. // intermediaries, for example proxies, if it's available.
  10392. ServerAddressKey = attribute.Key("server.address")
  10393. // ServerPortKey is the attribute Key conforming to the "server.port" semantic
  10394. // conventions. It represents the server port number.
  10395. //
  10396. // Type: int
  10397. // RequirementLevel: Recommended
  10398. // Stability: Stable
  10399. //
  10400. // Examples: 80, 8080, 443
  10401. // Note: When observed from the client side, and when communicating through an
  10402. // intermediary, `server.port` SHOULD represent the server port behind any
  10403. // intermediaries, for example proxies, if it's available.
  10404. ServerPortKey = attribute.Key("server.port")
  10405. )
  10406. // ServerAddress returns an attribute KeyValue conforming to the "server.address"
  10407. // semantic conventions. It represents the server domain name if available
  10408. // without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
  10409. func ServerAddress(val string) attribute.KeyValue {
  10410. return ServerAddressKey.String(val)
  10411. }
  10412. // ServerPort returns an attribute KeyValue conforming to the "server.port"
  10413. // semantic conventions. It represents the server port number.
  10414. func ServerPort(val int) attribute.KeyValue {
  10415. return ServerPortKey.Int(val)
  10416. }
  10417. // Namespace: service
  10418. const (
  10419. // ServiceInstanceIDKey is the attribute Key conforming to the
  10420. // "service.instance.id" semantic conventions. It represents the string ID of
  10421. // the service instance.
  10422. //
  10423. // Type: string
  10424. // RequirementLevel: Recommended
  10425. // Stability: Development
  10426. //
  10427. // Examples: "627cc493-f310-47de-96bd-71410b7dec09"
  10428. // Note: MUST be unique for each instance of the same
  10429. // `service.namespace,service.name` pair (in other words
  10430. // `service.namespace,service.name,service.instance.id` triplet MUST be globally
  10431. // unique). The ID helps to
  10432. // distinguish instances of the same service that exist at the same time (e.g.
  10433. // instances of a horizontally scaled
  10434. // service).
  10435. //
  10436. // Implementations, such as SDKs, are recommended to generate a random Version 1
  10437. // or Version 4 [RFC
  10438. // 4122] UUID, but are free to use an inherent unique ID as
  10439. // the source of
  10440. // this value if stability is desirable. In that case, the ID SHOULD be used as
  10441. // source of a UUID Version 5 and
  10442. // SHOULD use the following UUID as the namespace:
  10443. // `4d63009a-8d0f-11ee-aad7-4c796ed8e320`.
  10444. //
  10445. // UUIDs are typically recommended, as only an opaque value for the purposes of
  10446. // identifying a service instance is
  10447. // needed. Similar to what can be seen in the man page for the
  10448. // [`/etc/machine-id`] file, the underlying
  10449. // data, such as pod name and namespace should be treated as confidential, being
  10450. // the user's choice to expose it
  10451. // or not via another resource attribute.
  10452. //
  10453. // For applications running behind an application server (like unicorn), we do
  10454. // not recommend using one identifier
  10455. // for all processes participating in the application. Instead, it's recommended
  10456. // each division (e.g. a worker
  10457. // thread in unicorn) to have its own instance.id.
  10458. //
  10459. // It's not recommended for a Collector to set `service.instance.id` if it can't
  10460. // unambiguously determine the
  10461. // service instance that is generating that telemetry. For instance, creating an
  10462. // UUID based on `pod.name` will
  10463. // likely be wrong, as the Collector might not know from which container within
  10464. // that pod the telemetry originated.
  10465. // However, Collectors can set the `service.instance.id` if they can
  10466. // unambiguously determine the service instance
  10467. // for that telemetry. This is typically the case for scraping receivers, as
  10468. // they know the target address and
  10469. // port.
  10470. //
  10471. // [RFC
  10472. // 4122]: https://www.ietf.org/rfc/rfc4122.txt
  10473. // [`/etc/machine-id`]: https://www.freedesktop.org/software/systemd/man/latest/machine-id.html
  10474. ServiceInstanceIDKey = attribute.Key("service.instance.id")
  10475. // ServiceNameKey is the attribute Key conforming to the "service.name" semantic
  10476. // conventions. It represents the logical name of the service.
  10477. //
  10478. // Type: string
  10479. // RequirementLevel: Recommended
  10480. // Stability: Stable
  10481. //
  10482. // Examples: "shoppingcart"
  10483. // Note: MUST be the same for all instances of horizontally scaled services. If
  10484. // the value was not specified, SDKs MUST fallback to `unknown_service:`
  10485. // concatenated with [`process.executable.name`], e.g. `unknown_service:bash`.
  10486. // If `process.executable.name` is not available, the value MUST be set to
  10487. // `unknown_service`.
  10488. //
  10489. // [`process.executable.name`]: process.md
  10490. ServiceNameKey = attribute.Key("service.name")
  10491. // ServiceNamespaceKey is the attribute Key conforming to the
  10492. // "service.namespace" semantic conventions. It represents a namespace for
  10493. // `service.name`.
  10494. //
  10495. // Type: string
  10496. // RequirementLevel: Recommended
  10497. // Stability: Development
  10498. //
  10499. // Examples: "Shop"
  10500. // Note: A string value having a meaning that helps to distinguish a group of
  10501. // services, for example the team name that owns a group of services.
  10502. // `service.name` is expected to be unique within the same namespace. If
  10503. // `service.namespace` is not specified in the Resource then `service.name` is
  10504. // expected to be unique for all services that have no explicit namespace
  10505. // defined (so the empty/unspecified namespace is simply one more valid
  10506. // namespace). Zero-length namespace string is assumed equal to unspecified
  10507. // namespace.
  10508. ServiceNamespaceKey = attribute.Key("service.namespace")
  10509. // ServiceVersionKey is the attribute Key conforming to the "service.version"
  10510. // semantic conventions. It represents the version string of the service API or
  10511. // implementation. The format is not defined by these conventions.
  10512. //
  10513. // Type: string
  10514. // RequirementLevel: Recommended
  10515. // Stability: Stable
  10516. //
  10517. // Examples: "2.0.0", "a01dbef8a"
  10518. ServiceVersionKey = attribute.Key("service.version")
  10519. )
  10520. // ServiceInstanceID returns an attribute KeyValue conforming to the
  10521. // "service.instance.id" semantic conventions. It represents the string ID of the
  10522. // service instance.
  10523. func ServiceInstanceID(val string) attribute.KeyValue {
  10524. return ServiceInstanceIDKey.String(val)
  10525. }
  10526. // ServiceName returns an attribute KeyValue conforming to the "service.name"
  10527. // semantic conventions. It represents the logical name of the service.
  10528. func ServiceName(val string) attribute.KeyValue {
  10529. return ServiceNameKey.String(val)
  10530. }
  10531. // ServiceNamespace returns an attribute KeyValue conforming to the
  10532. // "service.namespace" semantic conventions. It represents a namespace for
  10533. // `service.name`.
  10534. func ServiceNamespace(val string) attribute.KeyValue {
  10535. return ServiceNamespaceKey.String(val)
  10536. }
  10537. // ServiceVersion returns an attribute KeyValue conforming to the
  10538. // "service.version" semantic conventions. It represents the version string of
  10539. // the service API or implementation. The format is not defined by these
  10540. // conventions.
  10541. func ServiceVersion(val string) attribute.KeyValue {
  10542. return ServiceVersionKey.String(val)
  10543. }
  10544. // Namespace: session
  10545. const (
  10546. // SessionIDKey is the attribute Key conforming to the "session.id" semantic
  10547. // conventions. It represents a unique id to identify a session.
  10548. //
  10549. // Type: string
  10550. // RequirementLevel: Recommended
  10551. // Stability: Development
  10552. //
  10553. // Examples: 00112233-4455-6677-8899-aabbccddeeff
  10554. SessionIDKey = attribute.Key("session.id")
  10555. // SessionPreviousIDKey is the attribute Key conforming to the
  10556. // "session.previous_id" semantic conventions. It represents the previous
  10557. // `session.id` for this user, when known.
  10558. //
  10559. // Type: string
  10560. // RequirementLevel: Recommended
  10561. // Stability: Development
  10562. //
  10563. // Examples: 00112233-4455-6677-8899-aabbccddeeff
  10564. SessionPreviousIDKey = attribute.Key("session.previous_id")
  10565. )
  10566. // SessionID returns an attribute KeyValue conforming to the "session.id"
  10567. // semantic conventions. It represents a unique id to identify a session.
  10568. func SessionID(val string) attribute.KeyValue {
  10569. return SessionIDKey.String(val)
  10570. }
  10571. // SessionPreviousID returns an attribute KeyValue conforming to the
  10572. // "session.previous_id" semantic conventions. It represents the previous
  10573. // `session.id` for this user, when known.
  10574. func SessionPreviousID(val string) attribute.KeyValue {
  10575. return SessionPreviousIDKey.String(val)
  10576. }
  10577. // Namespace: signalr
  10578. const (
  10579. // SignalRConnectionStatusKey is the attribute Key conforming to the
  10580. // "signalr.connection.status" semantic conventions. It represents the signalR
  10581. // HTTP connection closure status.
  10582. //
  10583. // Type: Enum
  10584. // RequirementLevel: Recommended
  10585. // Stability: Stable
  10586. //
  10587. // Examples: "app_shutdown", "timeout"
  10588. SignalRConnectionStatusKey = attribute.Key("signalr.connection.status")
  10589. // SignalRTransportKey is the attribute Key conforming to the
  10590. // "signalr.transport" semantic conventions. It represents the
  10591. // [SignalR transport type].
  10592. //
  10593. // Type: Enum
  10594. // RequirementLevel: Recommended
  10595. // Stability: Stable
  10596. //
  10597. // Examples: "web_sockets", "long_polling"
  10598. //
  10599. // [SignalR transport type]: https://github.com/dotnet/aspnetcore/blob/main/src/SignalR/docs/specs/TransportProtocols.md
  10600. SignalRTransportKey = attribute.Key("signalr.transport")
  10601. )
  10602. // Enum values for signalr.connection.status
  10603. var (
  10604. // The connection was closed normally.
  10605. // Stability: stable
  10606. SignalRConnectionStatusNormalClosure = SignalRConnectionStatusKey.String("normal_closure")
  10607. // The connection was closed due to a timeout.
  10608. // Stability: stable
  10609. SignalRConnectionStatusTimeout = SignalRConnectionStatusKey.String("timeout")
  10610. // The connection was closed because the app is shutting down.
  10611. // Stability: stable
  10612. SignalRConnectionStatusAppShutdown = SignalRConnectionStatusKey.String("app_shutdown")
  10613. )
  10614. // Enum values for signalr.transport
  10615. var (
  10616. // ServerSentEvents protocol
  10617. // Stability: stable
  10618. SignalRTransportServerSentEvents = SignalRTransportKey.String("server_sent_events")
  10619. // LongPolling protocol
  10620. // Stability: stable
  10621. SignalRTransportLongPolling = SignalRTransportKey.String("long_polling")
  10622. // WebSockets protocol
  10623. // Stability: stable
  10624. SignalRTransportWebSockets = SignalRTransportKey.String("web_sockets")
  10625. )
  10626. // Namespace: source
  10627. const (
  10628. // SourceAddressKey is the attribute Key conforming to the "source.address"
  10629. // semantic conventions. It represents the source address - domain name if
  10630. // available without reverse DNS lookup; otherwise, IP address or Unix domain
  10631. // socket name.
  10632. //
  10633. // Type: string
  10634. // RequirementLevel: Recommended
  10635. // Stability: Development
  10636. //
  10637. // Examples: "source.example.com", "10.1.2.80", "/tmp/my.sock"
  10638. // Note: When observed from the destination side, and when communicating through
  10639. // an intermediary, `source.address` SHOULD represent the source address behind
  10640. // any intermediaries, for example proxies, if it's available.
  10641. SourceAddressKey = attribute.Key("source.address")
  10642. // SourcePortKey is the attribute Key conforming to the "source.port" semantic
  10643. // conventions. It represents the source port number.
  10644. //
  10645. // Type: int
  10646. // RequirementLevel: Recommended
  10647. // Stability: Development
  10648. //
  10649. // Examples: 3389, 2888
  10650. SourcePortKey = attribute.Key("source.port")
  10651. )
  10652. // SourceAddress returns an attribute KeyValue conforming to the "source.address"
  10653. // semantic conventions. It represents the source address - domain name if
  10654. // available without reverse DNS lookup; otherwise, IP address or Unix domain
  10655. // socket name.
  10656. func SourceAddress(val string) attribute.KeyValue {
  10657. return SourceAddressKey.String(val)
  10658. }
  10659. // SourcePort returns an attribute KeyValue conforming to the "source.port"
  10660. // semantic conventions. It represents the source port number.
  10661. func SourcePort(val int) attribute.KeyValue {
  10662. return SourcePortKey.Int(val)
  10663. }
  10664. // Namespace: system
  10665. const (
  10666. // SystemCPULogicalNumberKey is the attribute Key conforming to the
  10667. // "system.cpu.logical_number" semantic conventions. It represents the
  10668. // deprecated, use `cpu.logical_number` instead.
  10669. //
  10670. // Type: int
  10671. // RequirementLevel: Recommended
  10672. // Stability: Development
  10673. //
  10674. // Examples: 1
  10675. SystemCPULogicalNumberKey = attribute.Key("system.cpu.logical_number")
  10676. // SystemDeviceKey is the attribute Key conforming to the "system.device"
  10677. // semantic conventions. It represents the device identifier.
  10678. //
  10679. // Type: string
  10680. // RequirementLevel: Recommended
  10681. // Stability: Development
  10682. //
  10683. // Examples: "(identifier)"
  10684. SystemDeviceKey = attribute.Key("system.device")
  10685. // SystemFilesystemModeKey is the attribute Key conforming to the
  10686. // "system.filesystem.mode" semantic conventions. It represents the filesystem
  10687. // mode.
  10688. //
  10689. // Type: string
  10690. // RequirementLevel: Recommended
  10691. // Stability: Development
  10692. //
  10693. // Examples: "rw, ro"
  10694. SystemFilesystemModeKey = attribute.Key("system.filesystem.mode")
  10695. // SystemFilesystemMountpointKey is the attribute Key conforming to the
  10696. // "system.filesystem.mountpoint" semantic conventions. It represents the
  10697. // filesystem mount path.
  10698. //
  10699. // Type: string
  10700. // RequirementLevel: Recommended
  10701. // Stability: Development
  10702. //
  10703. // Examples: "/mnt/data"
  10704. SystemFilesystemMountpointKey = attribute.Key("system.filesystem.mountpoint")
  10705. // SystemFilesystemStateKey is the attribute Key conforming to the
  10706. // "system.filesystem.state" semantic conventions. It represents the filesystem
  10707. // state.
  10708. //
  10709. // Type: Enum
  10710. // RequirementLevel: Recommended
  10711. // Stability: Development
  10712. //
  10713. // Examples: "used"
  10714. SystemFilesystemStateKey = attribute.Key("system.filesystem.state")
  10715. // SystemFilesystemTypeKey is the attribute Key conforming to the
  10716. // "system.filesystem.type" semantic conventions. It represents the filesystem
  10717. // type.
  10718. //
  10719. // Type: Enum
  10720. // RequirementLevel: Recommended
  10721. // Stability: Development
  10722. //
  10723. // Examples: "ext4"
  10724. SystemFilesystemTypeKey = attribute.Key("system.filesystem.type")
  10725. // SystemMemoryStateKey is the attribute Key conforming to the
  10726. // "system.memory.state" semantic conventions. It represents the memory state.
  10727. //
  10728. // Type: Enum
  10729. // RequirementLevel: Recommended
  10730. // Stability: Development
  10731. //
  10732. // Examples: "free", "cached"
  10733. SystemMemoryStateKey = attribute.Key("system.memory.state")
  10734. // SystemPagingDirectionKey is the attribute Key conforming to the
  10735. // "system.paging.direction" semantic conventions. It represents the paging
  10736. // access direction.
  10737. //
  10738. // Type: Enum
  10739. // RequirementLevel: Recommended
  10740. // Stability: Development
  10741. //
  10742. // Examples: "in"
  10743. SystemPagingDirectionKey = attribute.Key("system.paging.direction")
  10744. // SystemPagingStateKey is the attribute Key conforming to the
  10745. // "system.paging.state" semantic conventions. It represents the memory paging
  10746. // state.
  10747. //
  10748. // Type: Enum
  10749. // RequirementLevel: Recommended
  10750. // Stability: Development
  10751. //
  10752. // Examples: "free"
  10753. SystemPagingStateKey = attribute.Key("system.paging.state")
  10754. // SystemPagingTypeKey is the attribute Key conforming to the
  10755. // "system.paging.type" semantic conventions. It represents the memory paging
  10756. // type.
  10757. //
  10758. // Type: Enum
  10759. // RequirementLevel: Recommended
  10760. // Stability: Development
  10761. //
  10762. // Examples: "minor"
  10763. SystemPagingTypeKey = attribute.Key("system.paging.type")
  10764. // SystemProcessStatusKey is the attribute Key conforming to the
  10765. // "system.process.status" semantic conventions. It represents the process
  10766. // state, e.g., [Linux Process State Codes].
  10767. //
  10768. // Type: Enum
  10769. // RequirementLevel: Recommended
  10770. // Stability: Development
  10771. //
  10772. // Examples: "running"
  10773. //
  10774. // [Linux Process State Codes]: https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES
  10775. SystemProcessStatusKey = attribute.Key("system.process.status")
  10776. )
  10777. // SystemCPULogicalNumber returns an attribute KeyValue conforming to the
  10778. // "system.cpu.logical_number" semantic conventions. It represents the
  10779. // deprecated, use `cpu.logical_number` instead.
  10780. func SystemCPULogicalNumber(val int) attribute.KeyValue {
  10781. return SystemCPULogicalNumberKey.Int(val)
  10782. }
  10783. // SystemDevice returns an attribute KeyValue conforming to the "system.device"
  10784. // semantic conventions. It represents the device identifier.
  10785. func SystemDevice(val string) attribute.KeyValue {
  10786. return SystemDeviceKey.String(val)
  10787. }
  10788. // SystemFilesystemMode returns an attribute KeyValue conforming to the
  10789. // "system.filesystem.mode" semantic conventions. It represents the filesystem
  10790. // mode.
  10791. func SystemFilesystemMode(val string) attribute.KeyValue {
  10792. return SystemFilesystemModeKey.String(val)
  10793. }
  10794. // SystemFilesystemMountpoint returns an attribute KeyValue conforming to the
  10795. // "system.filesystem.mountpoint" semantic conventions. It represents the
  10796. // filesystem mount path.
  10797. func SystemFilesystemMountpoint(val string) attribute.KeyValue {
  10798. return SystemFilesystemMountpointKey.String(val)
  10799. }
  10800. // Enum values for system.filesystem.state
  10801. var (
  10802. // used
  10803. // Stability: development
  10804. SystemFilesystemStateUsed = SystemFilesystemStateKey.String("used")
  10805. // free
  10806. // Stability: development
  10807. SystemFilesystemStateFree = SystemFilesystemStateKey.String("free")
  10808. // reserved
  10809. // Stability: development
  10810. SystemFilesystemStateReserved = SystemFilesystemStateKey.String("reserved")
  10811. )
  10812. // Enum values for system.filesystem.type
  10813. var (
  10814. // fat32
  10815. // Stability: development
  10816. SystemFilesystemTypeFat32 = SystemFilesystemTypeKey.String("fat32")
  10817. // exfat
  10818. // Stability: development
  10819. SystemFilesystemTypeExfat = SystemFilesystemTypeKey.String("exfat")
  10820. // ntfs
  10821. // Stability: development
  10822. SystemFilesystemTypeNtfs = SystemFilesystemTypeKey.String("ntfs")
  10823. // refs
  10824. // Stability: development
  10825. SystemFilesystemTypeRefs = SystemFilesystemTypeKey.String("refs")
  10826. // hfsplus
  10827. // Stability: development
  10828. SystemFilesystemTypeHfsplus = SystemFilesystemTypeKey.String("hfsplus")
  10829. // ext4
  10830. // Stability: development
  10831. SystemFilesystemTypeExt4 = SystemFilesystemTypeKey.String("ext4")
  10832. )
  10833. // Enum values for system.memory.state
  10834. var (
  10835. // used
  10836. // Stability: development
  10837. SystemMemoryStateUsed = SystemMemoryStateKey.String("used")
  10838. // free
  10839. // Stability: development
  10840. SystemMemoryStateFree = SystemMemoryStateKey.String("free")
  10841. // Deprecated: Removed, report shared memory usage with
  10842. // `metric.system.memory.shared` metric.
  10843. SystemMemoryStateShared = SystemMemoryStateKey.String("shared")
  10844. // buffers
  10845. // Stability: development
  10846. SystemMemoryStateBuffers = SystemMemoryStateKey.String("buffers")
  10847. // cached
  10848. // Stability: development
  10849. SystemMemoryStateCached = SystemMemoryStateKey.String("cached")
  10850. )
  10851. // Enum values for system.paging.direction
  10852. var (
  10853. // in
  10854. // Stability: development
  10855. SystemPagingDirectionIn = SystemPagingDirectionKey.String("in")
  10856. // out
  10857. // Stability: development
  10858. SystemPagingDirectionOut = SystemPagingDirectionKey.String("out")
  10859. )
  10860. // Enum values for system.paging.state
  10861. var (
  10862. // used
  10863. // Stability: development
  10864. SystemPagingStateUsed = SystemPagingStateKey.String("used")
  10865. // free
  10866. // Stability: development
  10867. SystemPagingStateFree = SystemPagingStateKey.String("free")
  10868. )
  10869. // Enum values for system.paging.type
  10870. var (
  10871. // major
  10872. // Stability: development
  10873. SystemPagingTypeMajor = SystemPagingTypeKey.String("major")
  10874. // minor
  10875. // Stability: development
  10876. SystemPagingTypeMinor = SystemPagingTypeKey.String("minor")
  10877. )
  10878. // Enum values for system.process.status
  10879. var (
  10880. // running
  10881. // Stability: development
  10882. SystemProcessStatusRunning = SystemProcessStatusKey.String("running")
  10883. // sleeping
  10884. // Stability: development
  10885. SystemProcessStatusSleeping = SystemProcessStatusKey.String("sleeping")
  10886. // stopped
  10887. // Stability: development
  10888. SystemProcessStatusStopped = SystemProcessStatusKey.String("stopped")
  10889. // defunct
  10890. // Stability: development
  10891. SystemProcessStatusDefunct = SystemProcessStatusKey.String("defunct")
  10892. )
  10893. // Namespace: telemetry
  10894. const (
  10895. // TelemetryDistroNameKey is the attribute Key conforming to the
  10896. // "telemetry.distro.name" semantic conventions. It represents the name of the
  10897. // auto instrumentation agent or distribution, if used.
  10898. //
  10899. // Type: string
  10900. // RequirementLevel: Recommended
  10901. // Stability: Development
  10902. //
  10903. // Examples: "parts-unlimited-java"
  10904. // Note: Official auto instrumentation agents and distributions SHOULD set the
  10905. // `telemetry.distro.name` attribute to
  10906. // a string starting with `opentelemetry-`, e.g.
  10907. // `opentelemetry-java-instrumentation`.
  10908. TelemetryDistroNameKey = attribute.Key("telemetry.distro.name")
  10909. // TelemetryDistroVersionKey is the attribute Key conforming to the
  10910. // "telemetry.distro.version" semantic conventions. It represents the version
  10911. // string of the auto instrumentation agent or distribution, if used.
  10912. //
  10913. // Type: string
  10914. // RequirementLevel: Recommended
  10915. // Stability: Development
  10916. //
  10917. // Examples: "1.2.3"
  10918. TelemetryDistroVersionKey = attribute.Key("telemetry.distro.version")
  10919. // TelemetrySDKLanguageKey is the attribute Key conforming to the
  10920. // "telemetry.sdk.language" semantic conventions. It represents the language of
  10921. // the telemetry SDK.
  10922. //
  10923. // Type: Enum
  10924. // RequirementLevel: Recommended
  10925. // Stability: Stable
  10926. //
  10927. // Examples:
  10928. TelemetrySDKLanguageKey = attribute.Key("telemetry.sdk.language")
  10929. // TelemetrySDKNameKey is the attribute Key conforming to the
  10930. // "telemetry.sdk.name" semantic conventions. It represents the name of the
  10931. // telemetry SDK as defined above.
  10932. //
  10933. // Type: string
  10934. // RequirementLevel: Recommended
  10935. // Stability: Stable
  10936. //
  10937. // Examples: "opentelemetry"
  10938. // Note: The OpenTelemetry SDK MUST set the `telemetry.sdk.name` attribute to
  10939. // `opentelemetry`.
  10940. // If another SDK, like a fork or a vendor-provided implementation, is used,
  10941. // this SDK MUST set the
  10942. // `telemetry.sdk.name` attribute to the fully-qualified class or module name of
  10943. // this SDK's main entry point
  10944. // or another suitable identifier depending on the language.
  10945. // The identifier `opentelemetry` is reserved and MUST NOT be used in this case.
  10946. // All custom identifiers SHOULD be stable across different versions of an
  10947. // implementation.
  10948. TelemetrySDKNameKey = attribute.Key("telemetry.sdk.name")
  10949. // TelemetrySDKVersionKey is the attribute Key conforming to the
  10950. // "telemetry.sdk.version" semantic conventions. It represents the version
  10951. // string of the telemetry SDK.
  10952. //
  10953. // Type: string
  10954. // RequirementLevel: Recommended
  10955. // Stability: Stable
  10956. //
  10957. // Examples: "1.2.3"
  10958. TelemetrySDKVersionKey = attribute.Key("telemetry.sdk.version")
  10959. )
  10960. // TelemetryDistroName returns an attribute KeyValue conforming to the
  10961. // "telemetry.distro.name" semantic conventions. It represents the name of the
  10962. // auto instrumentation agent or distribution, if used.
  10963. func TelemetryDistroName(val string) attribute.KeyValue {
  10964. return TelemetryDistroNameKey.String(val)
  10965. }
  10966. // TelemetryDistroVersion returns an attribute KeyValue conforming to the
  10967. // "telemetry.distro.version" semantic conventions. It represents the version
  10968. // string of the auto instrumentation agent or distribution, if used.
  10969. func TelemetryDistroVersion(val string) attribute.KeyValue {
  10970. return TelemetryDistroVersionKey.String(val)
  10971. }
  10972. // TelemetrySDKName returns an attribute KeyValue conforming to the
  10973. // "telemetry.sdk.name" semantic conventions. It represents the name of the
  10974. // telemetry SDK as defined above.
  10975. func TelemetrySDKName(val string) attribute.KeyValue {
  10976. return TelemetrySDKNameKey.String(val)
  10977. }
  10978. // TelemetrySDKVersion returns an attribute KeyValue conforming to the
  10979. // "telemetry.sdk.version" semantic conventions. It represents the version string
  10980. // of the telemetry SDK.
  10981. func TelemetrySDKVersion(val string) attribute.KeyValue {
  10982. return TelemetrySDKVersionKey.String(val)
  10983. }
  10984. // Enum values for telemetry.sdk.language
  10985. var (
  10986. // cpp
  10987. // Stability: stable
  10988. TelemetrySDKLanguageCPP = TelemetrySDKLanguageKey.String("cpp")
  10989. // dotnet
  10990. // Stability: stable
  10991. TelemetrySDKLanguageDotnet = TelemetrySDKLanguageKey.String("dotnet")
  10992. // erlang
  10993. // Stability: stable
  10994. TelemetrySDKLanguageErlang = TelemetrySDKLanguageKey.String("erlang")
  10995. // go
  10996. // Stability: stable
  10997. TelemetrySDKLanguageGo = TelemetrySDKLanguageKey.String("go")
  10998. // java
  10999. // Stability: stable
  11000. TelemetrySDKLanguageJava = TelemetrySDKLanguageKey.String("java")
  11001. // nodejs
  11002. // Stability: stable
  11003. TelemetrySDKLanguageNodejs = TelemetrySDKLanguageKey.String("nodejs")
  11004. // php
  11005. // Stability: stable
  11006. TelemetrySDKLanguagePHP = TelemetrySDKLanguageKey.String("php")
  11007. // python
  11008. // Stability: stable
  11009. TelemetrySDKLanguagePython = TelemetrySDKLanguageKey.String("python")
  11010. // ruby
  11011. // Stability: stable
  11012. TelemetrySDKLanguageRuby = TelemetrySDKLanguageKey.String("ruby")
  11013. // rust
  11014. // Stability: stable
  11015. TelemetrySDKLanguageRust = TelemetrySDKLanguageKey.String("rust")
  11016. // swift
  11017. // Stability: stable
  11018. TelemetrySDKLanguageSwift = TelemetrySDKLanguageKey.String("swift")
  11019. // webjs
  11020. // Stability: stable
  11021. TelemetrySDKLanguageWebJS = TelemetrySDKLanguageKey.String("webjs")
  11022. )
  11023. // Namespace: test
  11024. const (
  11025. // TestCaseNameKey is the attribute Key conforming to the "test.case.name"
  11026. // semantic conventions. It represents the fully qualified human readable name
  11027. // of the [test case].
  11028. //
  11029. // Type: string
  11030. // RequirementLevel: Recommended
  11031. // Stability: Development
  11032. //
  11033. // Examples: "org.example.TestCase1.test1", "example/tests/TestCase1.test1",
  11034. // "ExampleTestCase1_test1"
  11035. //
  11036. // [test case]: https://wikipedia.org/wiki/Test_case
  11037. TestCaseNameKey = attribute.Key("test.case.name")
  11038. // TestCaseResultStatusKey is the attribute Key conforming to the
  11039. // "test.case.result.status" semantic conventions. It represents the status of
  11040. // the actual test case result from test execution.
  11041. //
  11042. // Type: Enum
  11043. // RequirementLevel: Recommended
  11044. // Stability: Development
  11045. //
  11046. // Examples: "pass", "fail"
  11047. TestCaseResultStatusKey = attribute.Key("test.case.result.status")
  11048. // TestSuiteNameKey is the attribute Key conforming to the "test.suite.name"
  11049. // semantic conventions. It represents the human readable name of a [test suite]
  11050. // .
  11051. //
  11052. // Type: string
  11053. // RequirementLevel: Recommended
  11054. // Stability: Development
  11055. //
  11056. // Examples: "TestSuite1"
  11057. //
  11058. // [test suite]: https://wikipedia.org/wiki/Test_suite
  11059. TestSuiteNameKey = attribute.Key("test.suite.name")
  11060. // TestSuiteRunStatusKey is the attribute Key conforming to the
  11061. // "test.suite.run.status" semantic conventions. It represents the status of the
  11062. // test suite run.
  11063. //
  11064. // Type: Enum
  11065. // RequirementLevel: Recommended
  11066. // Stability: Development
  11067. //
  11068. // Examples: "success", "failure", "skipped", "aborted", "timed_out",
  11069. // "in_progress"
  11070. TestSuiteRunStatusKey = attribute.Key("test.suite.run.status")
  11071. )
  11072. // TestCaseName returns an attribute KeyValue conforming to the "test.case.name"
  11073. // semantic conventions. It represents the fully qualified human readable name of
  11074. // the [test case].
  11075. //
  11076. // [test case]: https://wikipedia.org/wiki/Test_case
  11077. func TestCaseName(val string) attribute.KeyValue {
  11078. return TestCaseNameKey.String(val)
  11079. }
  11080. // TestSuiteName returns an attribute KeyValue conforming to the
  11081. // "test.suite.name" semantic conventions. It represents the human readable name
  11082. // of a [test suite].
  11083. //
  11084. // [test suite]: https://wikipedia.org/wiki/Test_suite
  11085. func TestSuiteName(val string) attribute.KeyValue {
  11086. return TestSuiteNameKey.String(val)
  11087. }
  11088. // Enum values for test.case.result.status
  11089. var (
  11090. // pass
  11091. // Stability: development
  11092. TestCaseResultStatusPass = TestCaseResultStatusKey.String("pass")
  11093. // fail
  11094. // Stability: development
  11095. TestCaseResultStatusFail = TestCaseResultStatusKey.String("fail")
  11096. )
  11097. // Enum values for test.suite.run.status
  11098. var (
  11099. // success
  11100. // Stability: development
  11101. TestSuiteRunStatusSuccess = TestSuiteRunStatusKey.String("success")
  11102. // failure
  11103. // Stability: development
  11104. TestSuiteRunStatusFailure = TestSuiteRunStatusKey.String("failure")
  11105. // skipped
  11106. // Stability: development
  11107. TestSuiteRunStatusSkipped = TestSuiteRunStatusKey.String("skipped")
  11108. // aborted
  11109. // Stability: development
  11110. TestSuiteRunStatusAborted = TestSuiteRunStatusKey.String("aborted")
  11111. // timed_out
  11112. // Stability: development
  11113. TestSuiteRunStatusTimedOut = TestSuiteRunStatusKey.String("timed_out")
  11114. // in_progress
  11115. // Stability: development
  11116. TestSuiteRunStatusInProgress = TestSuiteRunStatusKey.String("in_progress")
  11117. )
  11118. // Namespace: thread
  11119. const (
  11120. // ThreadIDKey is the attribute Key conforming to the "thread.id" semantic
  11121. // conventions. It represents the current "managed" thread ID (as opposed to OS
  11122. // thread ID).
  11123. //
  11124. // Type: int
  11125. // RequirementLevel: Recommended
  11126. // Stability: Development
  11127. ThreadIDKey = attribute.Key("thread.id")
  11128. // ThreadNameKey is the attribute Key conforming to the "thread.name" semantic
  11129. // conventions. It represents the current thread name.
  11130. //
  11131. // Type: string
  11132. // RequirementLevel: Recommended
  11133. // Stability: Development
  11134. //
  11135. // Examples: main
  11136. ThreadNameKey = attribute.Key("thread.name")
  11137. )
  11138. // ThreadID returns an attribute KeyValue conforming to the "thread.id" semantic
  11139. // conventions. It represents the current "managed" thread ID (as opposed to OS
  11140. // thread ID).
  11141. func ThreadID(val int) attribute.KeyValue {
  11142. return ThreadIDKey.Int(val)
  11143. }
  11144. // ThreadName returns an attribute KeyValue conforming to the "thread.name"
  11145. // semantic conventions. It represents the current thread name.
  11146. func ThreadName(val string) attribute.KeyValue {
  11147. return ThreadNameKey.String(val)
  11148. }
  11149. // Namespace: tls
  11150. const (
  11151. // TLSCipherKey is the attribute Key conforming to the "tls.cipher" semantic
  11152. // conventions. It represents the string indicating the [cipher] used during the
  11153. // current connection.
  11154. //
  11155. // Type: string
  11156. // RequirementLevel: Recommended
  11157. // Stability: Development
  11158. //
  11159. // Examples: "TLS_RSA_WITH_3DES_EDE_CBC_SHA",
  11160. // "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256"
  11161. // Note: The values allowed for `tls.cipher` MUST be one of the `Descriptions`
  11162. // of the [registered TLS Cipher Suits].
  11163. //
  11164. // [cipher]: https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5
  11165. // [registered TLS Cipher Suits]: https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#table-tls-parameters-4
  11166. TLSCipherKey = attribute.Key("tls.cipher")
  11167. // TLSClientCertificateKey is the attribute Key conforming to the
  11168. // "tls.client.certificate" semantic conventions. It represents the PEM-encoded
  11169. // stand-alone certificate offered by the client. This is usually
  11170. // mutually-exclusive of `client.certificate_chain` since this value also exists
  11171. // in that list.
  11172. //
  11173. // Type: string
  11174. // RequirementLevel: Recommended
  11175. // Stability: Development
  11176. //
  11177. // Examples: "MII..."
  11178. TLSClientCertificateKey = attribute.Key("tls.client.certificate")
  11179. // TLSClientCertificateChainKey is the attribute Key conforming to the
  11180. // "tls.client.certificate_chain" semantic conventions. It represents the array
  11181. // of PEM-encoded certificates that make up the certificate chain offered by the
  11182. // client. This is usually mutually-exclusive of `client.certificate` since that
  11183. // value should be the first certificate in the chain.
  11184. //
  11185. // Type: string[]
  11186. // RequirementLevel: Recommended
  11187. // Stability: Development
  11188. //
  11189. // Examples: "MII...", "MI..."
  11190. TLSClientCertificateChainKey = attribute.Key("tls.client.certificate_chain")
  11191. // TLSClientHashMd5Key is the attribute Key conforming to the
  11192. // "tls.client.hash.md5" semantic conventions. It represents the certificate
  11193. // fingerprint using the MD5 digest of DER-encoded version of certificate
  11194. // offered by the client. For consistency with other hash values, this value
  11195. // should be formatted as an uppercase hash.
  11196. //
  11197. // Type: string
  11198. // RequirementLevel: Recommended
  11199. // Stability: Development
  11200. //
  11201. // Examples: "0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC"
  11202. TLSClientHashMd5Key = attribute.Key("tls.client.hash.md5")
  11203. // TLSClientHashSha1Key is the attribute Key conforming to the
  11204. // "tls.client.hash.sha1" semantic conventions. It represents the certificate
  11205. // fingerprint using the SHA1 digest of DER-encoded version of certificate
  11206. // offered by the client. For consistency with other hash values, this value
  11207. // should be formatted as an uppercase hash.
  11208. //
  11209. // Type: string
  11210. // RequirementLevel: Recommended
  11211. // Stability: Development
  11212. //
  11213. // Examples: "9E393D93138888D288266C2D915214D1D1CCEB2A"
  11214. TLSClientHashSha1Key = attribute.Key("tls.client.hash.sha1")
  11215. // TLSClientHashSha256Key is the attribute Key conforming to the
  11216. // "tls.client.hash.sha256" semantic conventions. It represents the certificate
  11217. // fingerprint using the SHA256 digest of DER-encoded version of certificate
  11218. // offered by the client. For consistency with other hash values, this value
  11219. // should be formatted as an uppercase hash.
  11220. //
  11221. // Type: string
  11222. // RequirementLevel: Recommended
  11223. // Stability: Development
  11224. //
  11225. // Examples: "0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0"
  11226. TLSClientHashSha256Key = attribute.Key("tls.client.hash.sha256")
  11227. // TLSClientIssuerKey is the attribute Key conforming to the "tls.client.issuer"
  11228. // semantic conventions. It represents the distinguished name of [subject] of
  11229. // the issuer of the x.509 certificate presented by the client.
  11230. //
  11231. // Type: string
  11232. // RequirementLevel: Recommended
  11233. // Stability: Development
  11234. //
  11235. // Examples: "CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com"
  11236. //
  11237. // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
  11238. TLSClientIssuerKey = attribute.Key("tls.client.issuer")
  11239. // TLSClientJa3Key is the attribute Key conforming to the "tls.client.ja3"
  11240. // semantic conventions. It represents a hash that identifies clients based on
  11241. // how they perform an SSL/TLS handshake.
  11242. //
  11243. // Type: string
  11244. // RequirementLevel: Recommended
  11245. // Stability: Development
  11246. //
  11247. // Examples: "d4e5b18d6b55c71272893221c96ba240"
  11248. TLSClientJa3Key = attribute.Key("tls.client.ja3")
  11249. // TLSClientNotAfterKey is the attribute Key conforming to the
  11250. // "tls.client.not_after" semantic conventions. It represents the date/Time
  11251. // indicating when client certificate is no longer considered valid.
  11252. //
  11253. // Type: string
  11254. // RequirementLevel: Recommended
  11255. // Stability: Development
  11256. //
  11257. // Examples: "2021-01-01T00:00:00.000Z"
  11258. TLSClientNotAfterKey = attribute.Key("tls.client.not_after")
  11259. // TLSClientNotBeforeKey is the attribute Key conforming to the
  11260. // "tls.client.not_before" semantic conventions. It represents the date/Time
  11261. // indicating when client certificate is first considered valid.
  11262. //
  11263. // Type: string
  11264. // RequirementLevel: Recommended
  11265. // Stability: Development
  11266. //
  11267. // Examples: "1970-01-01T00:00:00.000Z"
  11268. TLSClientNotBeforeKey = attribute.Key("tls.client.not_before")
  11269. // TLSClientSubjectKey is the attribute Key conforming to the
  11270. // "tls.client.subject" semantic conventions. It represents the distinguished
  11271. // name of subject of the x.509 certificate presented by the client.
  11272. //
  11273. // Type: string
  11274. // RequirementLevel: Recommended
  11275. // Stability: Development
  11276. //
  11277. // Examples: "CN=myclient, OU=Documentation Team, DC=example, DC=com"
  11278. TLSClientSubjectKey = attribute.Key("tls.client.subject")
  11279. // TLSClientSupportedCiphersKey is the attribute Key conforming to the
  11280. // "tls.client.supported_ciphers" semantic conventions. It represents the array
  11281. // of ciphers offered by the client during the client hello.
  11282. //
  11283. // Type: string[]
  11284. // RequirementLevel: Recommended
  11285. // Stability: Development
  11286. //
  11287. // Examples: "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384",
  11288. // "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384"
  11289. TLSClientSupportedCiphersKey = attribute.Key("tls.client.supported_ciphers")
  11290. // TLSCurveKey is the attribute Key conforming to the "tls.curve" semantic
  11291. // conventions. It represents the string indicating the curve used for the given
  11292. // cipher, when applicable.
  11293. //
  11294. // Type: string
  11295. // RequirementLevel: Recommended
  11296. // Stability: Development
  11297. //
  11298. // Examples: "secp256r1"
  11299. TLSCurveKey = attribute.Key("tls.curve")
  11300. // TLSEstablishedKey is the attribute Key conforming to the "tls.established"
  11301. // semantic conventions. It represents the boolean flag indicating if the TLS
  11302. // negotiation was successful and transitioned to an encrypted tunnel.
  11303. //
  11304. // Type: boolean
  11305. // RequirementLevel: Recommended
  11306. // Stability: Development
  11307. //
  11308. // Examples: true
  11309. TLSEstablishedKey = attribute.Key("tls.established")
  11310. // TLSNextProtocolKey is the attribute Key conforming to the "tls.next_protocol"
  11311. // semantic conventions. It represents the string indicating the protocol being
  11312. // tunneled. Per the values in the [IANA registry], this string should be lower
  11313. // case.
  11314. //
  11315. // Type: string
  11316. // RequirementLevel: Recommended
  11317. // Stability: Development
  11318. //
  11319. // Examples: "http/1.1"
  11320. //
  11321. // [IANA registry]: https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
  11322. TLSNextProtocolKey = attribute.Key("tls.next_protocol")
  11323. // TLSProtocolNameKey is the attribute Key conforming to the "tls.protocol.name"
  11324. // semantic conventions. It represents the normalized lowercase protocol name
  11325. // parsed from original string of the negotiated [SSL/TLS protocol version].
  11326. //
  11327. // Type: Enum
  11328. // RequirementLevel: Recommended
  11329. // Stability: Development
  11330. //
  11331. // Examples:
  11332. //
  11333. // [SSL/TLS protocol version]: https://docs.openssl.org/1.1.1/man3/SSL_get_version/#return-values
  11334. TLSProtocolNameKey = attribute.Key("tls.protocol.name")
  11335. // TLSProtocolVersionKey is the attribute Key conforming to the
  11336. // "tls.protocol.version" semantic conventions. It represents the numeric part
  11337. // of the version parsed from the original string of the negotiated
  11338. // [SSL/TLS protocol version].
  11339. //
  11340. // Type: string
  11341. // RequirementLevel: Recommended
  11342. // Stability: Development
  11343. //
  11344. // Examples: "1.2", "3"
  11345. //
  11346. // [SSL/TLS protocol version]: https://docs.openssl.org/1.1.1/man3/SSL_get_version/#return-values
  11347. TLSProtocolVersionKey = attribute.Key("tls.protocol.version")
  11348. // TLSResumedKey is the attribute Key conforming to the "tls.resumed" semantic
  11349. // conventions. It represents the boolean flag indicating if this TLS connection
  11350. // was resumed from an existing TLS negotiation.
  11351. //
  11352. // Type: boolean
  11353. // RequirementLevel: Recommended
  11354. // Stability: Development
  11355. //
  11356. // Examples: true
  11357. TLSResumedKey = attribute.Key("tls.resumed")
  11358. // TLSServerCertificateKey is the attribute Key conforming to the
  11359. // "tls.server.certificate" semantic conventions. It represents the PEM-encoded
  11360. // stand-alone certificate offered by the server. This is usually
  11361. // mutually-exclusive of `server.certificate_chain` since this value also exists
  11362. // in that list.
  11363. //
  11364. // Type: string
  11365. // RequirementLevel: Recommended
  11366. // Stability: Development
  11367. //
  11368. // Examples: "MII..."
  11369. TLSServerCertificateKey = attribute.Key("tls.server.certificate")
  11370. // TLSServerCertificateChainKey is the attribute Key conforming to the
  11371. // "tls.server.certificate_chain" semantic conventions. It represents the array
  11372. // of PEM-encoded certificates that make up the certificate chain offered by the
  11373. // server. This is usually mutually-exclusive of `server.certificate` since that
  11374. // value should be the first certificate in the chain.
  11375. //
  11376. // Type: string[]
  11377. // RequirementLevel: Recommended
  11378. // Stability: Development
  11379. //
  11380. // Examples: "MII...", "MI..."
  11381. TLSServerCertificateChainKey = attribute.Key("tls.server.certificate_chain")
  11382. // TLSServerHashMd5Key is the attribute Key conforming to the
  11383. // "tls.server.hash.md5" semantic conventions. It represents the certificate
  11384. // fingerprint using the MD5 digest of DER-encoded version of certificate
  11385. // offered by the server. For consistency with other hash values, this value
  11386. // should be formatted as an uppercase hash.
  11387. //
  11388. // Type: string
  11389. // RequirementLevel: Recommended
  11390. // Stability: Development
  11391. //
  11392. // Examples: "0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC"
  11393. TLSServerHashMd5Key = attribute.Key("tls.server.hash.md5")
  11394. // TLSServerHashSha1Key is the attribute Key conforming to the
  11395. // "tls.server.hash.sha1" semantic conventions. It represents the certificate
  11396. // fingerprint using the SHA1 digest of DER-encoded version of certificate
  11397. // offered by the server. For consistency with other hash values, this value
  11398. // should be formatted as an uppercase hash.
  11399. //
  11400. // Type: string
  11401. // RequirementLevel: Recommended
  11402. // Stability: Development
  11403. //
  11404. // Examples: "9E393D93138888D288266C2D915214D1D1CCEB2A"
  11405. TLSServerHashSha1Key = attribute.Key("tls.server.hash.sha1")
  11406. // TLSServerHashSha256Key is the attribute Key conforming to the
  11407. // "tls.server.hash.sha256" semantic conventions. It represents the certificate
  11408. // fingerprint using the SHA256 digest of DER-encoded version of certificate
  11409. // offered by the server. For consistency with other hash values, this value
  11410. // should be formatted as an uppercase hash.
  11411. //
  11412. // Type: string
  11413. // RequirementLevel: Recommended
  11414. // Stability: Development
  11415. //
  11416. // Examples: "0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0"
  11417. TLSServerHashSha256Key = attribute.Key("tls.server.hash.sha256")
  11418. // TLSServerIssuerKey is the attribute Key conforming to the "tls.server.issuer"
  11419. // semantic conventions. It represents the distinguished name of [subject] of
  11420. // the issuer of the x.509 certificate presented by the client.
  11421. //
  11422. // Type: string
  11423. // RequirementLevel: Recommended
  11424. // Stability: Development
  11425. //
  11426. // Examples: "CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com"
  11427. //
  11428. // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
  11429. TLSServerIssuerKey = attribute.Key("tls.server.issuer")
  11430. // TLSServerJa3sKey is the attribute Key conforming to the "tls.server.ja3s"
  11431. // semantic conventions. It represents a hash that identifies servers based on
  11432. // how they perform an SSL/TLS handshake.
  11433. //
  11434. // Type: string
  11435. // RequirementLevel: Recommended
  11436. // Stability: Development
  11437. //
  11438. // Examples: "d4e5b18d6b55c71272893221c96ba240"
  11439. TLSServerJa3sKey = attribute.Key("tls.server.ja3s")
  11440. // TLSServerNotAfterKey is the attribute Key conforming to the
  11441. // "tls.server.not_after" semantic conventions. It represents the date/Time
  11442. // indicating when server certificate is no longer considered valid.
  11443. //
  11444. // Type: string
  11445. // RequirementLevel: Recommended
  11446. // Stability: Development
  11447. //
  11448. // Examples: "2021-01-01T00:00:00.000Z"
  11449. TLSServerNotAfterKey = attribute.Key("tls.server.not_after")
  11450. // TLSServerNotBeforeKey is the attribute Key conforming to the
  11451. // "tls.server.not_before" semantic conventions. It represents the date/Time
  11452. // indicating when server certificate is first considered valid.
  11453. //
  11454. // Type: string
  11455. // RequirementLevel: Recommended
  11456. // Stability: Development
  11457. //
  11458. // Examples: "1970-01-01T00:00:00.000Z"
  11459. TLSServerNotBeforeKey = attribute.Key("tls.server.not_before")
  11460. // TLSServerSubjectKey is the attribute Key conforming to the
  11461. // "tls.server.subject" semantic conventions. It represents the distinguished
  11462. // name of subject of the x.509 certificate presented by the server.
  11463. //
  11464. // Type: string
  11465. // RequirementLevel: Recommended
  11466. // Stability: Development
  11467. //
  11468. // Examples: "CN=myserver, OU=Documentation Team, DC=example, DC=com"
  11469. TLSServerSubjectKey = attribute.Key("tls.server.subject")
  11470. )
  11471. // TLSCipher returns an attribute KeyValue conforming to the "tls.cipher"
  11472. // semantic conventions. It represents the string indicating the [cipher] used
  11473. // during the current connection.
  11474. //
  11475. // [cipher]: https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5
  11476. func TLSCipher(val string) attribute.KeyValue {
  11477. return TLSCipherKey.String(val)
  11478. }
  11479. // TLSClientCertificate returns an attribute KeyValue conforming to the
  11480. // "tls.client.certificate" semantic conventions. It represents the PEM-encoded
  11481. // stand-alone certificate offered by the client. This is usually
  11482. // mutually-exclusive of `client.certificate_chain` since this value also exists
  11483. // in that list.
  11484. func TLSClientCertificate(val string) attribute.KeyValue {
  11485. return TLSClientCertificateKey.String(val)
  11486. }
  11487. // TLSClientCertificateChain returns an attribute KeyValue conforming to the
  11488. // "tls.client.certificate_chain" semantic conventions. It represents the array
  11489. // of PEM-encoded certificates that make up the certificate chain offered by the
  11490. // client. This is usually mutually-exclusive of `client.certificate` since that
  11491. // value should be the first certificate in the chain.
  11492. func TLSClientCertificateChain(val ...string) attribute.KeyValue {
  11493. return TLSClientCertificateChainKey.StringSlice(val)
  11494. }
  11495. // TLSClientHashMd5 returns an attribute KeyValue conforming to the
  11496. // "tls.client.hash.md5" semantic conventions. It represents the certificate
  11497. // fingerprint using the MD5 digest of DER-encoded version of certificate offered
  11498. // by the client. For consistency with other hash values, this value should be
  11499. // formatted as an uppercase hash.
  11500. func TLSClientHashMd5(val string) attribute.KeyValue {
  11501. return TLSClientHashMd5Key.String(val)
  11502. }
  11503. // TLSClientHashSha1 returns an attribute KeyValue conforming to the
  11504. // "tls.client.hash.sha1" semantic conventions. It represents the certificate
  11505. // fingerprint using the SHA1 digest of DER-encoded version of certificate
  11506. // offered by the client. For consistency with other hash values, this value
  11507. // should be formatted as an uppercase hash.
  11508. func TLSClientHashSha1(val string) attribute.KeyValue {
  11509. return TLSClientHashSha1Key.String(val)
  11510. }
  11511. // TLSClientHashSha256 returns an attribute KeyValue conforming to the
  11512. // "tls.client.hash.sha256" semantic conventions. It represents the certificate
  11513. // fingerprint using the SHA256 digest of DER-encoded version of certificate
  11514. // offered by the client. For consistency with other hash values, this value
  11515. // should be formatted as an uppercase hash.
  11516. func TLSClientHashSha256(val string) attribute.KeyValue {
  11517. return TLSClientHashSha256Key.String(val)
  11518. }
  11519. // TLSClientIssuer returns an attribute KeyValue conforming to the
  11520. // "tls.client.issuer" semantic conventions. It represents the distinguished name
  11521. // of [subject] of the issuer of the x.509 certificate presented by the client.
  11522. //
  11523. // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
  11524. func TLSClientIssuer(val string) attribute.KeyValue {
  11525. return TLSClientIssuerKey.String(val)
  11526. }
  11527. // TLSClientJa3 returns an attribute KeyValue conforming to the "tls.client.ja3"
  11528. // semantic conventions. It represents a hash that identifies clients based on
  11529. // how they perform an SSL/TLS handshake.
  11530. func TLSClientJa3(val string) attribute.KeyValue {
  11531. return TLSClientJa3Key.String(val)
  11532. }
  11533. // TLSClientNotAfter returns an attribute KeyValue conforming to the
  11534. // "tls.client.not_after" semantic conventions. It represents the date/Time
  11535. // indicating when client certificate is no longer considered valid.
  11536. func TLSClientNotAfter(val string) attribute.KeyValue {
  11537. return TLSClientNotAfterKey.String(val)
  11538. }
  11539. // TLSClientNotBefore returns an attribute KeyValue conforming to the
  11540. // "tls.client.not_before" semantic conventions. It represents the date/Time
  11541. // indicating when client certificate is first considered valid.
  11542. func TLSClientNotBefore(val string) attribute.KeyValue {
  11543. return TLSClientNotBeforeKey.String(val)
  11544. }
  11545. // TLSClientSubject returns an attribute KeyValue conforming to the
  11546. // "tls.client.subject" semantic conventions. It represents the distinguished
  11547. // name of subject of the x.509 certificate presented by the client.
  11548. func TLSClientSubject(val string) attribute.KeyValue {
  11549. return TLSClientSubjectKey.String(val)
  11550. }
  11551. // TLSClientSupportedCiphers returns an attribute KeyValue conforming to the
  11552. // "tls.client.supported_ciphers" semantic conventions. It represents the array
  11553. // of ciphers offered by the client during the client hello.
  11554. func TLSClientSupportedCiphers(val ...string) attribute.KeyValue {
  11555. return TLSClientSupportedCiphersKey.StringSlice(val)
  11556. }
  11557. // TLSCurve returns an attribute KeyValue conforming to the "tls.curve" semantic
  11558. // conventions. It represents the string indicating the curve used for the given
  11559. // cipher, when applicable.
  11560. func TLSCurve(val string) attribute.KeyValue {
  11561. return TLSCurveKey.String(val)
  11562. }
  11563. // TLSEstablished returns an attribute KeyValue conforming to the
  11564. // "tls.established" semantic conventions. It represents the boolean flag
  11565. // indicating if the TLS negotiation was successful and transitioned to an
  11566. // encrypted tunnel.
  11567. func TLSEstablished(val bool) attribute.KeyValue {
  11568. return TLSEstablishedKey.Bool(val)
  11569. }
  11570. // TLSNextProtocol returns an attribute KeyValue conforming to the
  11571. // "tls.next_protocol" semantic conventions. It represents the string indicating
  11572. // the protocol being tunneled. Per the values in the [IANA registry], this
  11573. // string should be lower case.
  11574. //
  11575. // [IANA registry]: https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
  11576. func TLSNextProtocol(val string) attribute.KeyValue {
  11577. return TLSNextProtocolKey.String(val)
  11578. }
  11579. // TLSProtocolVersion returns an attribute KeyValue conforming to the
  11580. // "tls.protocol.version" semantic conventions. It represents the numeric part of
  11581. // the version parsed from the original string of the negotiated
  11582. // [SSL/TLS protocol version].
  11583. //
  11584. // [SSL/TLS protocol version]: https://docs.openssl.org/1.1.1/man3/SSL_get_version/#return-values
  11585. func TLSProtocolVersion(val string) attribute.KeyValue {
  11586. return TLSProtocolVersionKey.String(val)
  11587. }
  11588. // TLSResumed returns an attribute KeyValue conforming to the "tls.resumed"
  11589. // semantic conventions. It represents the boolean flag indicating if this TLS
  11590. // connection was resumed from an existing TLS negotiation.
  11591. func TLSResumed(val bool) attribute.KeyValue {
  11592. return TLSResumedKey.Bool(val)
  11593. }
  11594. // TLSServerCertificate returns an attribute KeyValue conforming to the
  11595. // "tls.server.certificate" semantic conventions. It represents the PEM-encoded
  11596. // stand-alone certificate offered by the server. This is usually
  11597. // mutually-exclusive of `server.certificate_chain` since this value also exists
  11598. // in that list.
  11599. func TLSServerCertificate(val string) attribute.KeyValue {
  11600. return TLSServerCertificateKey.String(val)
  11601. }
  11602. // TLSServerCertificateChain returns an attribute KeyValue conforming to the
  11603. // "tls.server.certificate_chain" semantic conventions. It represents the array
  11604. // of PEM-encoded certificates that make up the certificate chain offered by the
  11605. // server. This is usually mutually-exclusive of `server.certificate` since that
  11606. // value should be the first certificate in the chain.
  11607. func TLSServerCertificateChain(val ...string) attribute.KeyValue {
  11608. return TLSServerCertificateChainKey.StringSlice(val)
  11609. }
  11610. // TLSServerHashMd5 returns an attribute KeyValue conforming to the
  11611. // "tls.server.hash.md5" semantic conventions. It represents the certificate
  11612. // fingerprint using the MD5 digest of DER-encoded version of certificate offered
  11613. // by the server. For consistency with other hash values, this value should be
  11614. // formatted as an uppercase hash.
  11615. func TLSServerHashMd5(val string) attribute.KeyValue {
  11616. return TLSServerHashMd5Key.String(val)
  11617. }
  11618. // TLSServerHashSha1 returns an attribute KeyValue conforming to the
  11619. // "tls.server.hash.sha1" semantic conventions. It represents the certificate
  11620. // fingerprint using the SHA1 digest of DER-encoded version of certificate
  11621. // offered by the server. For consistency with other hash values, this value
  11622. // should be formatted as an uppercase hash.
  11623. func TLSServerHashSha1(val string) attribute.KeyValue {
  11624. return TLSServerHashSha1Key.String(val)
  11625. }
  11626. // TLSServerHashSha256 returns an attribute KeyValue conforming to the
  11627. // "tls.server.hash.sha256" semantic conventions. It represents the certificate
  11628. // fingerprint using the SHA256 digest of DER-encoded version of certificate
  11629. // offered by the server. For consistency with other hash values, this value
  11630. // should be formatted as an uppercase hash.
  11631. func TLSServerHashSha256(val string) attribute.KeyValue {
  11632. return TLSServerHashSha256Key.String(val)
  11633. }
  11634. // TLSServerIssuer returns an attribute KeyValue conforming to the
  11635. // "tls.server.issuer" semantic conventions. It represents the distinguished name
  11636. // of [subject] of the issuer of the x.509 certificate presented by the client.
  11637. //
  11638. // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
  11639. func TLSServerIssuer(val string) attribute.KeyValue {
  11640. return TLSServerIssuerKey.String(val)
  11641. }
  11642. // TLSServerJa3s returns an attribute KeyValue conforming to the
  11643. // "tls.server.ja3s" semantic conventions. It represents a hash that identifies
  11644. // servers based on how they perform an SSL/TLS handshake.
  11645. func TLSServerJa3s(val string) attribute.KeyValue {
  11646. return TLSServerJa3sKey.String(val)
  11647. }
  11648. // TLSServerNotAfter returns an attribute KeyValue conforming to the
  11649. // "tls.server.not_after" semantic conventions. It represents the date/Time
  11650. // indicating when server certificate is no longer considered valid.
  11651. func TLSServerNotAfter(val string) attribute.KeyValue {
  11652. return TLSServerNotAfterKey.String(val)
  11653. }
  11654. // TLSServerNotBefore returns an attribute KeyValue conforming to the
  11655. // "tls.server.not_before" semantic conventions. It represents the date/Time
  11656. // indicating when server certificate is first considered valid.
  11657. func TLSServerNotBefore(val string) attribute.KeyValue {
  11658. return TLSServerNotBeforeKey.String(val)
  11659. }
  11660. // TLSServerSubject returns an attribute KeyValue conforming to the
  11661. // "tls.server.subject" semantic conventions. It represents the distinguished
  11662. // name of subject of the x.509 certificate presented by the server.
  11663. func TLSServerSubject(val string) attribute.KeyValue {
  11664. return TLSServerSubjectKey.String(val)
  11665. }
  11666. // Enum values for tls.protocol.name
  11667. var (
  11668. // ssl
  11669. // Stability: development
  11670. TLSProtocolNameSsl = TLSProtocolNameKey.String("ssl")
  11671. // tls
  11672. // Stability: development
  11673. TLSProtocolNameTLS = TLSProtocolNameKey.String("tls")
  11674. )
  11675. // Namespace: url
  11676. const (
  11677. // URLDomainKey is the attribute Key conforming to the "url.domain" semantic
  11678. // conventions. It represents the domain extracted from the `url.full`, such as
  11679. // "opentelemetry.io".
  11680. //
  11681. // Type: string
  11682. // RequirementLevel: Recommended
  11683. // Stability: Development
  11684. //
  11685. // Examples: "www.foo.bar", "opentelemetry.io", "3.12.167.2",
  11686. // "[1080:0:0:0:8:800:200C:417A]"
  11687. // Note: In some cases a URL may refer to an IP and/or port directly, without a
  11688. // domain name. In this case, the IP address would go to the domain field. If
  11689. // the URL contains a [literal IPv6 address] enclosed by `[` and `]`, the `[`
  11690. // and `]` characters should also be captured in the domain field.
  11691. //
  11692. // [literal IPv6 address]: https://www.rfc-editor.org/rfc/rfc2732#section-2
  11693. URLDomainKey = attribute.Key("url.domain")
  11694. // URLExtensionKey is the attribute Key conforming to the "url.extension"
  11695. // semantic conventions. It represents the file extension extracted from the
  11696. // `url.full`, excluding the leading dot.
  11697. //
  11698. // Type: string
  11699. // RequirementLevel: Recommended
  11700. // Stability: Development
  11701. //
  11702. // Examples: "png", "gz"
  11703. // Note: The file extension is only set if it exists, as not every url has a
  11704. // file extension. When the file name has multiple extensions `example.tar.gz`,
  11705. // only the last one should be captured `gz`, not `tar.gz`.
  11706. URLExtensionKey = attribute.Key("url.extension")
  11707. // URLFragmentKey is the attribute Key conforming to the "url.fragment" semantic
  11708. // conventions. It represents the [URI fragment] component.
  11709. //
  11710. // Type: string
  11711. // RequirementLevel: Recommended
  11712. // Stability: Stable
  11713. //
  11714. // Examples: "SemConv"
  11715. //
  11716. // [URI fragment]: https://www.rfc-editor.org/rfc/rfc3986#section-3.5
  11717. URLFragmentKey = attribute.Key("url.fragment")
  11718. // URLFullKey is the attribute Key conforming to the "url.full" semantic
  11719. // conventions. It represents the absolute URL describing a network resource
  11720. // according to [RFC3986].
  11721. //
  11722. // Type: string
  11723. // RequirementLevel: Recommended
  11724. // Stability: Stable
  11725. //
  11726. // Examples: "https://www.foo.bar/search?q=OpenTelemetry#SemConv", "//localhost"
  11727. // Note: For network calls, URL usually has
  11728. // `scheme://host[:port][path][?query][#fragment]` format, where the fragment
  11729. // is not transmitted over HTTP, but if it is known, it SHOULD be included
  11730. // nevertheless.
  11731. //
  11732. // `url.full` MUST NOT contain credentials passed via URL in form of
  11733. // `https://username:password@www.example.com/`.
  11734. // In such case username and password SHOULD be redacted and attribute's value
  11735. // SHOULD be `https://REDACTED:REDACTED@www.example.com/`.
  11736. //
  11737. // `url.full` SHOULD capture the absolute URL when it is available (or can be
  11738. // reconstructed).
  11739. //
  11740. // Sensitive content provided in `url.full` SHOULD be scrubbed when
  11741. // instrumentations can identify it.
  11742. //
  11743. //
  11744. // Query string values for the following keys SHOULD be redacted by default and
  11745. // replaced by the
  11746. // value `REDACTED`:
  11747. //
  11748. // - [`AWSAccessKeyId`]
  11749. // - [`Signature`]
  11750. // - [`sig`]
  11751. // - [`X-Goog-Signature`]
  11752. //
  11753. // This list is subject to change over time.
  11754. //
  11755. // When a query string value is redacted, the query string key SHOULD still be
  11756. // preserved, e.g.
  11757. // `https://www.example.com/path?color=blue&sig=REDACTED`.
  11758. //
  11759. // [RFC3986]: https://www.rfc-editor.org/rfc/rfc3986
  11760. // [`AWSAccessKeyId`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
  11761. // [`Signature`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
  11762. // [`sig`]: https://learn.microsoft.com/azure/storage/common/storage-sas-overview#sas-token
  11763. // [`X-Goog-Signature`]: https://cloud.google.com/storage/docs/access-control/signed-urls
  11764. URLFullKey = attribute.Key("url.full")
  11765. // URLOriginalKey is the attribute Key conforming to the "url.original" semantic
  11766. // conventions. It represents the unmodified original URL as seen in the event
  11767. // source.
  11768. //
  11769. // Type: string
  11770. // RequirementLevel: Recommended
  11771. // Stability: Development
  11772. //
  11773. // Examples: "https://www.foo.bar/search?q=OpenTelemetry#SemConv",
  11774. // "search?q=OpenTelemetry"
  11775. // Note: In network monitoring, the observed URL may be a full URL, whereas in
  11776. // access logs, the URL is often just represented as a path. This field is meant
  11777. // to represent the URL as it was observed, complete or not.
  11778. // `url.original` might contain credentials passed via URL in form of
  11779. // `https://username:password@www.example.com/`. In such case password and
  11780. // username SHOULD NOT be redacted and attribute's value SHOULD remain the same.
  11781. URLOriginalKey = attribute.Key("url.original")
  11782. // URLPathKey is the attribute Key conforming to the "url.path" semantic
  11783. // conventions. It represents the [URI path] component.
  11784. //
  11785. // Type: string
  11786. // RequirementLevel: Recommended
  11787. // Stability: Stable
  11788. //
  11789. // Examples: "/search"
  11790. // Note: Sensitive content provided in `url.path` SHOULD be scrubbed when
  11791. // instrumentations can identify it.
  11792. //
  11793. // [URI path]: https://www.rfc-editor.org/rfc/rfc3986#section-3.3
  11794. URLPathKey = attribute.Key("url.path")
  11795. // URLPortKey is the attribute Key conforming to the "url.port" semantic
  11796. // conventions. It represents the port extracted from the `url.full`.
  11797. //
  11798. // Type: int
  11799. // RequirementLevel: Recommended
  11800. // Stability: Development
  11801. //
  11802. // Examples: 443
  11803. URLPortKey = attribute.Key("url.port")
  11804. // URLQueryKey is the attribute Key conforming to the "url.query" semantic
  11805. // conventions. It represents the [URI query] component.
  11806. //
  11807. // Type: string
  11808. // RequirementLevel: Recommended
  11809. // Stability: Stable
  11810. //
  11811. // Examples: "q=OpenTelemetry"
  11812. // Note: Sensitive content provided in `url.query` SHOULD be scrubbed when
  11813. // instrumentations can identify it.
  11814. //
  11815. //
  11816. // Query string values for the following keys SHOULD be redacted by default and
  11817. // replaced by the value `REDACTED`:
  11818. //
  11819. // - [`AWSAccessKeyId`]
  11820. // - [`Signature`]
  11821. // - [`sig`]
  11822. // - [`X-Goog-Signature`]
  11823. //
  11824. // This list is subject to change over time.
  11825. //
  11826. // When a query string value is redacted, the query string key SHOULD still be
  11827. // preserved, e.g.
  11828. // `q=OpenTelemetry&sig=REDACTED`.
  11829. //
  11830. // [URI query]: https://www.rfc-editor.org/rfc/rfc3986#section-3.4
  11831. // [`AWSAccessKeyId`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
  11832. // [`Signature`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
  11833. // [`sig`]: https://learn.microsoft.com/azure/storage/common/storage-sas-overview#sas-token
  11834. // [`X-Goog-Signature`]: https://cloud.google.com/storage/docs/access-control/signed-urls
  11835. URLQueryKey = attribute.Key("url.query")
  11836. // URLRegisteredDomainKey is the attribute Key conforming to the
  11837. // "url.registered_domain" semantic conventions. It represents the highest
  11838. // registered url domain, stripped of the subdomain.
  11839. //
  11840. // Type: string
  11841. // RequirementLevel: Recommended
  11842. // Stability: Development
  11843. //
  11844. // Examples: "example.com", "foo.co.uk"
  11845. // Note: This value can be determined precisely with the [public suffix list].
  11846. // For example, the registered domain for `foo.example.com` is `example.com`.
  11847. // Trying to approximate this by simply taking the last two labels will not work
  11848. // well for TLDs such as `co.uk`.
  11849. //
  11850. // [public suffix list]: https://publicsuffix.org/
  11851. URLRegisteredDomainKey = attribute.Key("url.registered_domain")
  11852. // URLSchemeKey is the attribute Key conforming to the "url.scheme" semantic
  11853. // conventions. It represents the [URI scheme] component identifying the used
  11854. // protocol.
  11855. //
  11856. // Type: string
  11857. // RequirementLevel: Recommended
  11858. // Stability: Stable
  11859. //
  11860. // Examples: "https", "ftp", "telnet"
  11861. //
  11862. // [URI scheme]: https://www.rfc-editor.org/rfc/rfc3986#section-3.1
  11863. URLSchemeKey = attribute.Key("url.scheme")
  11864. // URLSubdomainKey is the attribute Key conforming to the "url.subdomain"
  11865. // semantic conventions. It represents the subdomain portion of a fully
  11866. // qualified domain name includes all of the names except the host name under
  11867. // the registered_domain. In a partially qualified domain, or if the
  11868. // qualification level of the full name cannot be determined, subdomain contains
  11869. // all of the names below the registered domain.
  11870. //
  11871. // Type: string
  11872. // RequirementLevel: Recommended
  11873. // Stability: Development
  11874. //
  11875. // Examples: "east", "sub2.sub1"
  11876. // Note: The subdomain portion of `www.east.mydomain.co.uk` is `east`. If the
  11877. // domain has multiple levels of subdomain, such as `sub2.sub1.example.com`, the
  11878. // subdomain field should contain `sub2.sub1`, with no trailing period.
  11879. URLSubdomainKey = attribute.Key("url.subdomain")
  11880. // URLTemplateKey is the attribute Key conforming to the "url.template" semantic
  11881. // conventions. It represents the low-cardinality template of an
  11882. // [absolute path reference].
  11883. //
  11884. // Type: string
  11885. // RequirementLevel: Recommended
  11886. // Stability: Development
  11887. //
  11888. // Examples: "/users/{id}", "/users/:id", "/users?id={id}"
  11889. //
  11890. // [absolute path reference]: https://www.rfc-editor.org/rfc/rfc3986#section-4.2
  11891. URLTemplateKey = attribute.Key("url.template")
  11892. // URLTopLevelDomainKey is the attribute Key conforming to the
  11893. // "url.top_level_domain" semantic conventions. It represents the effective top
  11894. // level domain (eTLD), also known as the domain suffix, is the last part of the
  11895. // domain name. For example, the top level domain for example.com is `com`.
  11896. //
  11897. // Type: string
  11898. // RequirementLevel: Recommended
  11899. // Stability: Development
  11900. //
  11901. // Examples: "com", "co.uk"
  11902. // Note: This value can be determined precisely with the [public suffix list].
  11903. //
  11904. // [public suffix list]: https://publicsuffix.org/
  11905. URLTopLevelDomainKey = attribute.Key("url.top_level_domain")
  11906. )
  11907. // URLDomain returns an attribute KeyValue conforming to the "url.domain"
  11908. // semantic conventions. It represents the domain extracted from the `url.full`,
  11909. // such as "opentelemetry.io".
  11910. func URLDomain(val string) attribute.KeyValue {
  11911. return URLDomainKey.String(val)
  11912. }
  11913. // URLExtension returns an attribute KeyValue conforming to the "url.extension"
  11914. // semantic conventions. It represents the file extension extracted from the
  11915. // `url.full`, excluding the leading dot.
  11916. func URLExtension(val string) attribute.KeyValue {
  11917. return URLExtensionKey.String(val)
  11918. }
  11919. // URLFragment returns an attribute KeyValue conforming to the "url.fragment"
  11920. // semantic conventions. It represents the [URI fragment] component.
  11921. //
  11922. // [URI fragment]: https://www.rfc-editor.org/rfc/rfc3986#section-3.5
  11923. func URLFragment(val string) attribute.KeyValue {
  11924. return URLFragmentKey.String(val)
  11925. }
  11926. // URLFull returns an attribute KeyValue conforming to the "url.full" semantic
  11927. // conventions. It represents the absolute URL describing a network resource
  11928. // according to [RFC3986].
  11929. //
  11930. // [RFC3986]: https://www.rfc-editor.org/rfc/rfc3986
  11931. func URLFull(val string) attribute.KeyValue {
  11932. return URLFullKey.String(val)
  11933. }
  11934. // URLOriginal returns an attribute KeyValue conforming to the "url.original"
  11935. // semantic conventions. It represents the unmodified original URL as seen in the
  11936. // event source.
  11937. func URLOriginal(val string) attribute.KeyValue {
  11938. return URLOriginalKey.String(val)
  11939. }
  11940. // URLPath returns an attribute KeyValue conforming to the "url.path" semantic
  11941. // conventions. It represents the [URI path] component.
  11942. //
  11943. // [URI path]: https://www.rfc-editor.org/rfc/rfc3986#section-3.3
  11944. func URLPath(val string) attribute.KeyValue {
  11945. return URLPathKey.String(val)
  11946. }
  11947. // URLPort returns an attribute KeyValue conforming to the "url.port" semantic
  11948. // conventions. It represents the port extracted from the `url.full`.
  11949. func URLPort(val int) attribute.KeyValue {
  11950. return URLPortKey.Int(val)
  11951. }
  11952. // URLQuery returns an attribute KeyValue conforming to the "url.query" semantic
  11953. // conventions. It represents the [URI query] component.
  11954. //
  11955. // [URI query]: https://www.rfc-editor.org/rfc/rfc3986#section-3.4
  11956. func URLQuery(val string) attribute.KeyValue {
  11957. return URLQueryKey.String(val)
  11958. }
  11959. // URLRegisteredDomain returns an attribute KeyValue conforming to the
  11960. // "url.registered_domain" semantic conventions. It represents the highest
  11961. // registered url domain, stripped of the subdomain.
  11962. func URLRegisteredDomain(val string) attribute.KeyValue {
  11963. return URLRegisteredDomainKey.String(val)
  11964. }
  11965. // URLScheme returns an attribute KeyValue conforming to the "url.scheme"
  11966. // semantic conventions. It represents the [URI scheme] component identifying the
  11967. // used protocol.
  11968. //
  11969. // [URI scheme]: https://www.rfc-editor.org/rfc/rfc3986#section-3.1
  11970. func URLScheme(val string) attribute.KeyValue {
  11971. return URLSchemeKey.String(val)
  11972. }
  11973. // URLSubdomain returns an attribute KeyValue conforming to the "url.subdomain"
  11974. // semantic conventions. It represents the subdomain portion of a fully qualified
  11975. // domain name includes all of the names except the host name under the
  11976. // registered_domain. In a partially qualified domain, or if the qualification
  11977. // level of the full name cannot be determined, subdomain contains all of the
  11978. // names below the registered domain.
  11979. func URLSubdomain(val string) attribute.KeyValue {
  11980. return URLSubdomainKey.String(val)
  11981. }
  11982. // URLTemplate returns an attribute KeyValue conforming to the "url.template"
  11983. // semantic conventions. It represents the low-cardinality template of an
  11984. // [absolute path reference].
  11985. //
  11986. // [absolute path reference]: https://www.rfc-editor.org/rfc/rfc3986#section-4.2
  11987. func URLTemplate(val string) attribute.KeyValue {
  11988. return URLTemplateKey.String(val)
  11989. }
  11990. // URLTopLevelDomain returns an attribute KeyValue conforming to the
  11991. // "url.top_level_domain" semantic conventions. It represents the effective top
  11992. // level domain (eTLD), also known as the domain suffix, is the last part of the
  11993. // domain name. For example, the top level domain for example.com is `com`.
  11994. func URLTopLevelDomain(val string) attribute.KeyValue {
  11995. return URLTopLevelDomainKey.String(val)
  11996. }
  11997. // Namespace: user
  11998. const (
  11999. // UserEmailKey is the attribute Key conforming to the "user.email" semantic
  12000. // conventions. It represents the user email address.
  12001. //
  12002. // Type: string
  12003. // RequirementLevel: Recommended
  12004. // Stability: Development
  12005. //
  12006. // Examples: "a.einstein@example.com"
  12007. UserEmailKey = attribute.Key("user.email")
  12008. // UserFullNameKey is the attribute Key conforming to the "user.full_name"
  12009. // semantic conventions. It represents the user's full name.
  12010. //
  12011. // Type: string
  12012. // RequirementLevel: Recommended
  12013. // Stability: Development
  12014. //
  12015. // Examples: "Albert Einstein"
  12016. UserFullNameKey = attribute.Key("user.full_name")
  12017. // UserHashKey is the attribute Key conforming to the "user.hash" semantic
  12018. // conventions. It represents the unique user hash to correlate information for
  12019. // a user in anonymized form.
  12020. //
  12021. // Type: string
  12022. // RequirementLevel: Recommended
  12023. // Stability: Development
  12024. //
  12025. // Examples: "364fc68eaf4c8acec74a4e52d7d1feaa"
  12026. // Note: Useful if `user.id` or `user.name` contain confidential information and
  12027. // cannot be used.
  12028. UserHashKey = attribute.Key("user.hash")
  12029. // UserIDKey is the attribute Key conforming to the "user.id" semantic
  12030. // conventions. It represents the unique identifier of the user.
  12031. //
  12032. // Type: string
  12033. // RequirementLevel: Recommended
  12034. // Stability: Development
  12035. //
  12036. // Examples: "S-1-5-21-202424912787-2692429404-2351956786-1000"
  12037. UserIDKey = attribute.Key("user.id")
  12038. // UserNameKey is the attribute Key conforming to the "user.name" semantic
  12039. // conventions. It represents the short name or login/username of the user.
  12040. //
  12041. // Type: string
  12042. // RequirementLevel: Recommended
  12043. // Stability: Development
  12044. //
  12045. // Examples: "a.einstein"
  12046. UserNameKey = attribute.Key("user.name")
  12047. // UserRolesKey is the attribute Key conforming to the "user.roles" semantic
  12048. // conventions. It represents the array of user roles at the time of the event.
  12049. //
  12050. // Type: string[]
  12051. // RequirementLevel: Recommended
  12052. // Stability: Development
  12053. //
  12054. // Examples: "admin", "reporting_user"
  12055. UserRolesKey = attribute.Key("user.roles")
  12056. )
  12057. // UserEmail returns an attribute KeyValue conforming to the "user.email"
  12058. // semantic conventions. It represents the user email address.
  12059. func UserEmail(val string) attribute.KeyValue {
  12060. return UserEmailKey.String(val)
  12061. }
  12062. // UserFullName returns an attribute KeyValue conforming to the "user.full_name"
  12063. // semantic conventions. It represents the user's full name.
  12064. func UserFullName(val string) attribute.KeyValue {
  12065. return UserFullNameKey.String(val)
  12066. }
  12067. // UserHash returns an attribute KeyValue conforming to the "user.hash" semantic
  12068. // conventions. It represents the unique user hash to correlate information for a
  12069. // user in anonymized form.
  12070. func UserHash(val string) attribute.KeyValue {
  12071. return UserHashKey.String(val)
  12072. }
  12073. // UserID returns an attribute KeyValue conforming to the "user.id" semantic
  12074. // conventions. It represents the unique identifier of the user.
  12075. func UserID(val string) attribute.KeyValue {
  12076. return UserIDKey.String(val)
  12077. }
  12078. // UserName returns an attribute KeyValue conforming to the "user.name" semantic
  12079. // conventions. It represents the short name or login/username of the user.
  12080. func UserName(val string) attribute.KeyValue {
  12081. return UserNameKey.String(val)
  12082. }
  12083. // UserRoles returns an attribute KeyValue conforming to the "user.roles"
  12084. // semantic conventions. It represents the array of user roles at the time of the
  12085. // event.
  12086. func UserRoles(val ...string) attribute.KeyValue {
  12087. return UserRolesKey.StringSlice(val)
  12088. }
  12089. // Namespace: user_agent
  12090. const (
  12091. // UserAgentNameKey is the attribute Key conforming to the "user_agent.name"
  12092. // semantic conventions. It represents the name of the user-agent extracted from
  12093. // original. Usually refers to the browser's name.
  12094. //
  12095. // Type: string
  12096. // RequirementLevel: Recommended
  12097. // Stability: Development
  12098. //
  12099. // Examples: "Safari", "YourApp"
  12100. // Note: [Example] of extracting browser's name from original string. In the
  12101. // case of using a user-agent for non-browser products, such as microservices
  12102. // with multiple names/versions inside the `user_agent.original`, the most
  12103. // significant name SHOULD be selected. In such a scenario it should align with
  12104. // `user_agent.version`
  12105. //
  12106. // [Example]: https://www.whatsmyua.info
  12107. UserAgentNameKey = attribute.Key("user_agent.name")
  12108. // UserAgentOriginalKey is the attribute Key conforming to the
  12109. // "user_agent.original" semantic conventions. It represents the value of the
  12110. // [HTTP User-Agent] header sent by the client.
  12111. //
  12112. // Type: string
  12113. // RequirementLevel: Recommended
  12114. // Stability: Stable
  12115. //
  12116. // Examples: "CERN-LineMode/2.15 libwww/2.17b3", "Mozilla/5.0 (iPhone; CPU
  12117. // iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko)
  12118. // Version/14.1.2 Mobile/15E148 Safari/604.1", "YourApp/1.0.0
  12119. // grpc-java-okhttp/1.27.2"
  12120. //
  12121. // [HTTP User-Agent]: https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent
  12122. UserAgentOriginalKey = attribute.Key("user_agent.original")
  12123. // UserAgentOSNameKey is the attribute Key conforming to the
  12124. // "user_agent.os.name" semantic conventions. It represents the human readable
  12125. // operating system name.
  12126. //
  12127. // Type: string
  12128. // RequirementLevel: Recommended
  12129. // Stability: Development
  12130. //
  12131. // Examples: "iOS", "Android", "Ubuntu"
  12132. // Note: For mapping user agent strings to OS names, libraries such as
  12133. // [ua-parser] can be utilized.
  12134. //
  12135. // [ua-parser]: https://github.com/ua-parser
  12136. UserAgentOSNameKey = attribute.Key("user_agent.os.name")
  12137. // UserAgentOSVersionKey is the attribute Key conforming to the
  12138. // "user_agent.os.version" semantic conventions. It represents the version
  12139. // string of the operating system as defined in [Version Attributes].
  12140. //
  12141. // Type: string
  12142. // RequirementLevel: Recommended
  12143. // Stability: Development
  12144. //
  12145. // Examples: "14.2.1", "18.04.1"
  12146. // Note: For mapping user agent strings to OS versions, libraries such as
  12147. // [ua-parser] can be utilized.
  12148. //
  12149. // [Version Attributes]: /docs/resource/README.md#version-attributes
  12150. // [ua-parser]: https://github.com/ua-parser
  12151. UserAgentOSVersionKey = attribute.Key("user_agent.os.version")
  12152. // UserAgentSyntheticTypeKey is the attribute Key conforming to the
  12153. // "user_agent.synthetic.type" semantic conventions. It represents the specifies
  12154. // the category of synthetic traffic, such as tests or bots.
  12155. //
  12156. // Type: Enum
  12157. // RequirementLevel: Recommended
  12158. // Stability: Development
  12159. //
  12160. // Examples:
  12161. // Note: This attribute MAY be derived from the contents of the
  12162. // `user_agent.original` attribute. Components that populate the attribute are
  12163. // responsible for determining what they consider to be synthetic bot or test
  12164. // traffic. This attribute can either be set for self-identification purposes,
  12165. // or on telemetry detected to be generated as a result of a synthetic request.
  12166. // This attribute is useful for distinguishing between genuine client traffic
  12167. // and synthetic traffic generated by bots or tests.
  12168. UserAgentSyntheticTypeKey = attribute.Key("user_agent.synthetic.type")
  12169. // UserAgentVersionKey is the attribute Key conforming to the
  12170. // "user_agent.version" semantic conventions. It represents the version of the
  12171. // user-agent extracted from original. Usually refers to the browser's version.
  12172. //
  12173. // Type: string
  12174. // RequirementLevel: Recommended
  12175. // Stability: Development
  12176. //
  12177. // Examples: "14.1.2", "1.0.0"
  12178. // Note: [Example] of extracting browser's version from original string. In the
  12179. // case of using a user-agent for non-browser products, such as microservices
  12180. // with multiple names/versions inside the `user_agent.original`, the most
  12181. // significant version SHOULD be selected. In such a scenario it should align
  12182. // with `user_agent.name`
  12183. //
  12184. // [Example]: https://www.whatsmyua.info
  12185. UserAgentVersionKey = attribute.Key("user_agent.version")
  12186. )
  12187. // UserAgentName returns an attribute KeyValue conforming to the
  12188. // "user_agent.name" semantic conventions. It represents the name of the
  12189. // user-agent extracted from original. Usually refers to the browser's name.
  12190. func UserAgentName(val string) attribute.KeyValue {
  12191. return UserAgentNameKey.String(val)
  12192. }
  12193. // UserAgentOriginal returns an attribute KeyValue conforming to the
  12194. // "user_agent.original" semantic conventions. It represents the value of the
  12195. // [HTTP User-Agent] header sent by the client.
  12196. //
  12197. // [HTTP User-Agent]: https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent
  12198. func UserAgentOriginal(val string) attribute.KeyValue {
  12199. return UserAgentOriginalKey.String(val)
  12200. }
  12201. // UserAgentOSName returns an attribute KeyValue conforming to the
  12202. // "user_agent.os.name" semantic conventions. It represents the human readable
  12203. // operating system name.
  12204. func UserAgentOSName(val string) attribute.KeyValue {
  12205. return UserAgentOSNameKey.String(val)
  12206. }
  12207. // UserAgentOSVersion returns an attribute KeyValue conforming to the
  12208. // "user_agent.os.version" semantic conventions. It represents the version string
  12209. // of the operating system as defined in [Version Attributes].
  12210. //
  12211. // [Version Attributes]: /docs/resource/README.md#version-attributes
  12212. func UserAgentOSVersion(val string) attribute.KeyValue {
  12213. return UserAgentOSVersionKey.String(val)
  12214. }
  12215. // UserAgentVersion returns an attribute KeyValue conforming to the
  12216. // "user_agent.version" semantic conventions. It represents the version of the
  12217. // user-agent extracted from original. Usually refers to the browser's version.
  12218. func UserAgentVersion(val string) attribute.KeyValue {
  12219. return UserAgentVersionKey.String(val)
  12220. }
  12221. // Enum values for user_agent.synthetic.type
  12222. var (
  12223. // Bot source.
  12224. // Stability: development
  12225. UserAgentSyntheticTypeBot = UserAgentSyntheticTypeKey.String("bot")
  12226. // Synthetic test source.
  12227. // Stability: development
  12228. UserAgentSyntheticTypeTest = UserAgentSyntheticTypeKey.String("test")
  12229. )
  12230. // Namespace: vcs
  12231. const (
  12232. // VCSChangeIDKey is the attribute Key conforming to the "vcs.change.id"
  12233. // semantic conventions. It represents the ID of the change (pull request/merge
  12234. // request/changelist) if applicable. This is usually a unique (within
  12235. // repository) identifier generated by the VCS system.
  12236. //
  12237. // Type: string
  12238. // RequirementLevel: Recommended
  12239. // Stability: Development
  12240. //
  12241. // Examples: "123"
  12242. VCSChangeIDKey = attribute.Key("vcs.change.id")
  12243. // VCSChangeStateKey is the attribute Key conforming to the "vcs.change.state"
  12244. // semantic conventions. It represents the state of the change (pull
  12245. // request/merge request/changelist).
  12246. //
  12247. // Type: Enum
  12248. // RequirementLevel: Recommended
  12249. // Stability: Development
  12250. //
  12251. // Examples: "open", "closed", "merged"
  12252. VCSChangeStateKey = attribute.Key("vcs.change.state")
  12253. // VCSChangeTitleKey is the attribute Key conforming to the "vcs.change.title"
  12254. // semantic conventions. It represents the human readable title of the change
  12255. // (pull request/merge request/changelist). This title is often a brief summary
  12256. // of the change and may get merged in to a ref as the commit summary.
  12257. //
  12258. // Type: string
  12259. // RequirementLevel: Recommended
  12260. // Stability: Development
  12261. //
  12262. // Examples: "Fixes broken thing", "feat: add my new feature", "[chore] update
  12263. // dependency"
  12264. VCSChangeTitleKey = attribute.Key("vcs.change.title")
  12265. // VCSLineChangeTypeKey is the attribute Key conforming to the
  12266. // "vcs.line_change.type" semantic conventions. It represents the type of line
  12267. // change being measured on a branch or change.
  12268. //
  12269. // Type: Enum
  12270. // RequirementLevel: Recommended
  12271. // Stability: Development
  12272. //
  12273. // Examples: "added", "removed"
  12274. VCSLineChangeTypeKey = attribute.Key("vcs.line_change.type")
  12275. // VCSOwnerNameKey is the attribute Key conforming to the "vcs.owner.name"
  12276. // semantic conventions. It represents the group owner within the version
  12277. // control system.
  12278. //
  12279. // Type: string
  12280. // RequirementLevel: Recommended
  12281. // Stability: Development
  12282. //
  12283. // Examples: "my-org", "myteam", "business-unit"
  12284. VCSOwnerNameKey = attribute.Key("vcs.owner.name")
  12285. // VCSProviderNameKey is the attribute Key conforming to the "vcs.provider.name"
  12286. // semantic conventions. It represents the name of the version control system
  12287. // provider.
  12288. //
  12289. // Type: Enum
  12290. // RequirementLevel: Recommended
  12291. // Stability: Development
  12292. //
  12293. // Examples: "github", "gitlab", "gitea", "bitbucket"
  12294. VCSProviderNameKey = attribute.Key("vcs.provider.name")
  12295. // VCSRefBaseNameKey is the attribute Key conforming to the "vcs.ref.base.name"
  12296. // semantic conventions. It represents the name of the [reference] such as
  12297. // **branch** or **tag** in the repository.
  12298. //
  12299. // Type: string
  12300. // RequirementLevel: Recommended
  12301. // Stability: Development
  12302. //
  12303. // Examples: "my-feature-branch", "tag-1-test"
  12304. // Note: `base` refers to the starting point of a change. For example, `main`
  12305. // would be the base reference of type branch if you've created a new
  12306. // reference of type branch from it and created new commits.
  12307. //
  12308. // [reference]: https://git-scm.com/docs/gitglossary#def_ref
  12309. VCSRefBaseNameKey = attribute.Key("vcs.ref.base.name")
  12310. // VCSRefBaseRevisionKey is the attribute Key conforming to the
  12311. // "vcs.ref.base.revision" semantic conventions. It represents the revision,
  12312. // literally [revised version], The revision most often refers to a commit
  12313. // object in Git, or a revision number in SVN.
  12314. //
  12315. // Type: string
  12316. // RequirementLevel: Recommended
  12317. // Stability: Development
  12318. //
  12319. // Examples: "9d59409acf479dfa0df1aa568182e43e43df8bbe28d60fcf2bc52e30068802cc",
  12320. // "main", "123", "HEAD"
  12321. // Note: `base` refers to the starting point of a change. For example, `main`
  12322. // would be the base reference of type branch if you've created a new
  12323. // reference of type branch from it and created new commits. The
  12324. // revision can be a full [hash value (see
  12325. // glossary)],
  12326. // of the recorded change to a ref within a repository pointing to a
  12327. // commit [commit] object. It does
  12328. // not necessarily have to be a hash; it can simply define a [revision
  12329. // number]
  12330. // which is an integer that is monotonically increasing. In cases where
  12331. // it is identical to the `ref.base.name`, it SHOULD still be included.
  12332. // It is up to the implementer to decide which value to set as the
  12333. // revision based on the VCS system and situational context.
  12334. //
  12335. // [revised version]: https://www.merriam-webster.com/dictionary/revision
  12336. // [hash value (see
  12337. // glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
  12338. // [commit]: https://git-scm.com/docs/git-commit
  12339. // [revision
  12340. // number]: https://svnbook.red-bean.com/en/1.7/svn.tour.revs.specifiers.html
  12341. VCSRefBaseRevisionKey = attribute.Key("vcs.ref.base.revision")
  12342. // VCSRefBaseTypeKey is the attribute Key conforming to the "vcs.ref.base.type"
  12343. // semantic conventions. It represents the type of the [reference] in the
  12344. // repository.
  12345. //
  12346. // Type: Enum
  12347. // RequirementLevel: Recommended
  12348. // Stability: Development
  12349. //
  12350. // Examples: "branch", "tag"
  12351. // Note: `base` refers to the starting point of a change. For example, `main`
  12352. // would be the base reference of type branch if you've created a new
  12353. // reference of type branch from it and created new commits.
  12354. //
  12355. // [reference]: https://git-scm.com/docs/gitglossary#def_ref
  12356. VCSRefBaseTypeKey = attribute.Key("vcs.ref.base.type")
  12357. // VCSRefHeadNameKey is the attribute Key conforming to the "vcs.ref.head.name"
  12358. // semantic conventions. It represents the name of the [reference] such as
  12359. // **branch** or **tag** in the repository.
  12360. //
  12361. // Type: string
  12362. // RequirementLevel: Recommended
  12363. // Stability: Development
  12364. //
  12365. // Examples: "my-feature-branch", "tag-1-test"
  12366. // Note: `head` refers to where you are right now; the current reference at a
  12367. // given time.
  12368. //
  12369. // [reference]: https://git-scm.com/docs/gitglossary#def_ref
  12370. VCSRefHeadNameKey = attribute.Key("vcs.ref.head.name")
  12371. // VCSRefHeadRevisionKey is the attribute Key conforming to the
  12372. // "vcs.ref.head.revision" semantic conventions. It represents the revision,
  12373. // literally [revised version], The revision most often refers to a commit
  12374. // object in Git, or a revision number in SVN.
  12375. //
  12376. // Type: string
  12377. // RequirementLevel: Recommended
  12378. // Stability: Development
  12379. //
  12380. // Examples: "9d59409acf479dfa0df1aa568182e43e43df8bbe28d60fcf2bc52e30068802cc",
  12381. // "main", "123", "HEAD"
  12382. // Note: `head` refers to where you are right now; the current reference at a
  12383. // given time.The revision can be a full [hash value (see
  12384. // glossary)],
  12385. // of the recorded change to a ref within a repository pointing to a
  12386. // commit [commit] object. It does
  12387. // not necessarily have to be a hash; it can simply define a [revision
  12388. // number]
  12389. // which is an integer that is monotonically increasing. In cases where
  12390. // it is identical to the `ref.head.name`, it SHOULD still be included.
  12391. // It is up to the implementer to decide which value to set as the
  12392. // revision based on the VCS system and situational context.
  12393. //
  12394. // [revised version]: https://www.merriam-webster.com/dictionary/revision
  12395. // [hash value (see
  12396. // glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
  12397. // [commit]: https://git-scm.com/docs/git-commit
  12398. // [revision
  12399. // number]: https://svnbook.red-bean.com/en/1.7/svn.tour.revs.specifiers.html
  12400. VCSRefHeadRevisionKey = attribute.Key("vcs.ref.head.revision")
  12401. // VCSRefHeadTypeKey is the attribute Key conforming to the "vcs.ref.head.type"
  12402. // semantic conventions. It represents the type of the [reference] in the
  12403. // repository.
  12404. //
  12405. // Type: Enum
  12406. // RequirementLevel: Recommended
  12407. // Stability: Development
  12408. //
  12409. // Examples: "branch", "tag"
  12410. // Note: `head` refers to where you are right now; the current reference at a
  12411. // given time.
  12412. //
  12413. // [reference]: https://git-scm.com/docs/gitglossary#def_ref
  12414. VCSRefHeadTypeKey = attribute.Key("vcs.ref.head.type")
  12415. // VCSRefTypeKey is the attribute Key conforming to the "vcs.ref.type" semantic
  12416. // conventions. It represents the type of the [reference] in the repository.
  12417. //
  12418. // Type: Enum
  12419. // RequirementLevel: Recommended
  12420. // Stability: Development
  12421. //
  12422. // Examples: "branch", "tag"
  12423. //
  12424. // [reference]: https://git-scm.com/docs/gitglossary#def_ref
  12425. VCSRefTypeKey = attribute.Key("vcs.ref.type")
  12426. // VCSRepositoryNameKey is the attribute Key conforming to the
  12427. // "vcs.repository.name" semantic conventions. It represents the human readable
  12428. // name of the repository. It SHOULD NOT include any additional identifier like
  12429. // Group/SubGroup in GitLab or organization in GitHub.
  12430. //
  12431. // Type: string
  12432. // RequirementLevel: Recommended
  12433. // Stability: Development
  12434. //
  12435. // Examples: "semantic-conventions", "my-cool-repo"
  12436. // Note: Due to it only being the name, it can clash with forks of the same
  12437. // repository if collecting telemetry across multiple orgs or groups in
  12438. // the same backends.
  12439. VCSRepositoryNameKey = attribute.Key("vcs.repository.name")
  12440. // VCSRepositoryURLFullKey is the attribute Key conforming to the
  12441. // "vcs.repository.url.full" semantic conventions. It represents the
  12442. // [canonical URL] of the repository providing the complete HTTP(S) address in
  12443. // order to locate and identify the repository through a browser.
  12444. //
  12445. // Type: string
  12446. // RequirementLevel: Recommended
  12447. // Stability: Development
  12448. //
  12449. // Examples:
  12450. // "https://github.com/opentelemetry/open-telemetry-collector-contrib",
  12451. // "https://gitlab.com/my-org/my-project/my-projects-project/repo"
  12452. // Note: In Git Version Control Systems, the canonical URL SHOULD NOT include
  12453. // the `.git` extension.
  12454. //
  12455. // [canonical URL]: https://support.google.com/webmasters/answer/10347851?hl=en#:~:text=A%20canonical%20URL%20is%20the,Google%20chooses%20one%20as%20canonical.
  12456. VCSRepositoryURLFullKey = attribute.Key("vcs.repository.url.full")
  12457. // VCSRevisionDeltaDirectionKey is the attribute Key conforming to the
  12458. // "vcs.revision_delta.direction" semantic conventions. It represents the type
  12459. // of revision comparison.
  12460. //
  12461. // Type: Enum
  12462. // RequirementLevel: Recommended
  12463. // Stability: Development
  12464. //
  12465. // Examples: "ahead", "behind"
  12466. VCSRevisionDeltaDirectionKey = attribute.Key("vcs.revision_delta.direction")
  12467. )
  12468. // VCSChangeID returns an attribute KeyValue conforming to the "vcs.change.id"
  12469. // semantic conventions. It represents the ID of the change (pull request/merge
  12470. // request/changelist) if applicable. This is usually a unique (within
  12471. // repository) identifier generated by the VCS system.
  12472. func VCSChangeID(val string) attribute.KeyValue {
  12473. return VCSChangeIDKey.String(val)
  12474. }
  12475. // VCSChangeTitle returns an attribute KeyValue conforming to the
  12476. // "vcs.change.title" semantic conventions. It represents the human readable
  12477. // title of the change (pull request/merge request/changelist). This title is
  12478. // often a brief summary of the change and may get merged in to a ref as the
  12479. // commit summary.
  12480. func VCSChangeTitle(val string) attribute.KeyValue {
  12481. return VCSChangeTitleKey.String(val)
  12482. }
  12483. // VCSOwnerName returns an attribute KeyValue conforming to the "vcs.owner.name"
  12484. // semantic conventions. It represents the group owner within the version control
  12485. // system.
  12486. func VCSOwnerName(val string) attribute.KeyValue {
  12487. return VCSOwnerNameKey.String(val)
  12488. }
  12489. // VCSRefBaseName returns an attribute KeyValue conforming to the
  12490. // "vcs.ref.base.name" semantic conventions. It represents the name of the
  12491. // [reference] such as **branch** or **tag** in the repository.
  12492. //
  12493. // [reference]: https://git-scm.com/docs/gitglossary#def_ref
  12494. func VCSRefBaseName(val string) attribute.KeyValue {
  12495. return VCSRefBaseNameKey.String(val)
  12496. }
  12497. // VCSRefBaseRevision returns an attribute KeyValue conforming to the
  12498. // "vcs.ref.base.revision" semantic conventions. It represents the revision,
  12499. // literally [revised version], The revision most often refers to a commit object
  12500. // in Git, or a revision number in SVN.
  12501. //
  12502. // [revised version]: https://www.merriam-webster.com/dictionary/revision
  12503. func VCSRefBaseRevision(val string) attribute.KeyValue {
  12504. return VCSRefBaseRevisionKey.String(val)
  12505. }
  12506. // VCSRefHeadName returns an attribute KeyValue conforming to the
  12507. // "vcs.ref.head.name" semantic conventions. It represents the name of the
  12508. // [reference] such as **branch** or **tag** in the repository.
  12509. //
  12510. // [reference]: https://git-scm.com/docs/gitglossary#def_ref
  12511. func VCSRefHeadName(val string) attribute.KeyValue {
  12512. return VCSRefHeadNameKey.String(val)
  12513. }
  12514. // VCSRefHeadRevision returns an attribute KeyValue conforming to the
  12515. // "vcs.ref.head.revision" semantic conventions. It represents the revision,
  12516. // literally [revised version], The revision most often refers to a commit object
  12517. // in Git, or a revision number in SVN.
  12518. //
  12519. // [revised version]: https://www.merriam-webster.com/dictionary/revision
  12520. func VCSRefHeadRevision(val string) attribute.KeyValue {
  12521. return VCSRefHeadRevisionKey.String(val)
  12522. }
  12523. // VCSRepositoryName returns an attribute KeyValue conforming to the
  12524. // "vcs.repository.name" semantic conventions. It represents the human readable
  12525. // name of the repository. It SHOULD NOT include any additional identifier like
  12526. // Group/SubGroup in GitLab or organization in GitHub.
  12527. func VCSRepositoryName(val string) attribute.KeyValue {
  12528. return VCSRepositoryNameKey.String(val)
  12529. }
  12530. // VCSRepositoryURLFull returns an attribute KeyValue conforming to the
  12531. // "vcs.repository.url.full" semantic conventions. It represents the
  12532. // [canonical URL] of the repository providing the complete HTTP(S) address in
  12533. // order to locate and identify the repository through a browser.
  12534. //
  12535. // [canonical URL]: https://support.google.com/webmasters/answer/10347851?hl=en#:~:text=A%20canonical%20URL%20is%20the,Google%20chooses%20one%20as%20canonical.
  12536. func VCSRepositoryURLFull(val string) attribute.KeyValue {
  12537. return VCSRepositoryURLFullKey.String(val)
  12538. }
  12539. // Enum values for vcs.change.state
  12540. var (
  12541. // Open means the change is currently active and under review. It hasn't been
  12542. // merged into the target branch yet, and it's still possible to make changes or
  12543. // add comments.
  12544. // Stability: development
  12545. VCSChangeStateOpen = VCSChangeStateKey.String("open")
  12546. // WIP (work-in-progress, draft) means the change is still in progress and not
  12547. // yet ready for a full review. It might still undergo significant changes.
  12548. // Stability: development
  12549. VCSChangeStateWip = VCSChangeStateKey.String("wip")
  12550. // Closed means the merge request has been closed without merging. This can
  12551. // happen for various reasons, such as the changes being deemed unnecessary, the
  12552. // issue being resolved in another way, or the author deciding to withdraw the
  12553. // request.
  12554. // Stability: development
  12555. VCSChangeStateClosed = VCSChangeStateKey.String("closed")
  12556. // Merged indicates that the change has been successfully integrated into the
  12557. // target codebase.
  12558. // Stability: development
  12559. VCSChangeStateMerged = VCSChangeStateKey.String("merged")
  12560. )
  12561. // Enum values for vcs.line_change.type
  12562. var (
  12563. // How many lines were added.
  12564. // Stability: development
  12565. VCSLineChangeTypeAdded = VCSLineChangeTypeKey.String("added")
  12566. // How many lines were removed.
  12567. // Stability: development
  12568. VCSLineChangeTypeRemoved = VCSLineChangeTypeKey.String("removed")
  12569. )
  12570. // Enum values for vcs.provider.name
  12571. var (
  12572. // [GitHub]
  12573. // Stability: development
  12574. //
  12575. // [GitHub]: https://github.com
  12576. VCSProviderNameGithub = VCSProviderNameKey.String("github")
  12577. // [GitLab]
  12578. // Stability: development
  12579. //
  12580. // [GitLab]: https://gitlab.com
  12581. VCSProviderNameGitlab = VCSProviderNameKey.String("gitlab")
  12582. // Deprecated: Replaced by `gitea`.
  12583. VCSProviderNameGittea = VCSProviderNameKey.String("gittea")
  12584. // [Gitea]
  12585. // Stability: development
  12586. //
  12587. // [Gitea]: https://gitea.io
  12588. VCSProviderNameGitea = VCSProviderNameKey.String("gitea")
  12589. // [Bitbucket]
  12590. // Stability: development
  12591. //
  12592. // [Bitbucket]: https://bitbucket.org
  12593. VCSProviderNameBitbucket = VCSProviderNameKey.String("bitbucket")
  12594. )
  12595. // Enum values for vcs.ref.base.type
  12596. var (
  12597. // [branch]
  12598. // Stability: development
  12599. //
  12600. // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
  12601. VCSRefBaseTypeBranch = VCSRefBaseTypeKey.String("branch")
  12602. // [tag]
  12603. // Stability: development
  12604. //
  12605. // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
  12606. VCSRefBaseTypeTag = VCSRefBaseTypeKey.String("tag")
  12607. )
  12608. // Enum values for vcs.ref.head.type
  12609. var (
  12610. // [branch]
  12611. // Stability: development
  12612. //
  12613. // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
  12614. VCSRefHeadTypeBranch = VCSRefHeadTypeKey.String("branch")
  12615. // [tag]
  12616. // Stability: development
  12617. //
  12618. // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
  12619. VCSRefHeadTypeTag = VCSRefHeadTypeKey.String("tag")
  12620. )
  12621. // Enum values for vcs.ref.type
  12622. var (
  12623. // [branch]
  12624. // Stability: development
  12625. //
  12626. // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
  12627. VCSRefTypeBranch = VCSRefTypeKey.String("branch")
  12628. // [tag]
  12629. // Stability: development
  12630. //
  12631. // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
  12632. VCSRefTypeTag = VCSRefTypeKey.String("tag")
  12633. )
  12634. // Enum values for vcs.revision_delta.direction
  12635. var (
  12636. // How many revisions the change is behind the target ref.
  12637. // Stability: development
  12638. VCSRevisionDeltaDirectionBehind = VCSRevisionDeltaDirectionKey.String("behind")
  12639. // How many revisions the change is ahead of the target ref.
  12640. // Stability: development
  12641. VCSRevisionDeltaDirectionAhead = VCSRevisionDeltaDirectionKey.String("ahead")
  12642. )
  12643. // Namespace: webengine
  12644. const (
  12645. // WebEngineDescriptionKey is the attribute Key conforming to the
  12646. // "webengine.description" semantic conventions. It represents the additional
  12647. // description of the web engine (e.g. detailed version and edition
  12648. // information).
  12649. //
  12650. // Type: string
  12651. // RequirementLevel: Recommended
  12652. // Stability: Development
  12653. //
  12654. // Examples: "WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) -
  12655. // 2.2.2.Final"
  12656. WebEngineDescriptionKey = attribute.Key("webengine.description")
  12657. // WebEngineNameKey is the attribute Key conforming to the "webengine.name"
  12658. // semantic conventions. It represents the name of the web engine.
  12659. //
  12660. // Type: string
  12661. // RequirementLevel: Recommended
  12662. // Stability: Development
  12663. //
  12664. // Examples: "WildFly"
  12665. WebEngineNameKey = attribute.Key("webengine.name")
  12666. // WebEngineVersionKey is the attribute Key conforming to the
  12667. // "webengine.version" semantic conventions. It represents the version of the
  12668. // web engine.
  12669. //
  12670. // Type: string
  12671. // RequirementLevel: Recommended
  12672. // Stability: Development
  12673. //
  12674. // Examples: "21.0.0"
  12675. WebEngineVersionKey = attribute.Key("webengine.version")
  12676. )
  12677. // WebEngineDescription returns an attribute KeyValue conforming to the
  12678. // "webengine.description" semantic conventions. It represents the additional
  12679. // description of the web engine (e.g. detailed version and edition information).
  12680. func WebEngineDescription(val string) attribute.KeyValue {
  12681. return WebEngineDescriptionKey.String(val)
  12682. }
  12683. // WebEngineName returns an attribute KeyValue conforming to the "webengine.name"
  12684. // semantic conventions. It represents the name of the web engine.
  12685. func WebEngineName(val string) attribute.KeyValue {
  12686. return WebEngineNameKey.String(val)
  12687. }
  12688. // WebEngineVersion returns an attribute KeyValue conforming to the
  12689. // "webengine.version" semantic conventions. It represents the version of the web
  12690. // engine.
  12691. func WebEngineVersion(val string) attribute.KeyValue {
  12692. return WebEngineVersionKey.String(val)
  12693. }