attribute_group.go 584 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193
  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.37.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 in the
  27. // [Android API levels documentation].
  28. //
  29. // Type: string
  30. // RequirementLevel: Recommended
  31. // Stability: Development
  32. //
  33. // Examples: "33", "32"
  34. //
  35. // [Android API levels documentation]: https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels
  36. AndroidOSAPILevelKey = attribute.Key("android.os.api_level")
  37. )
  38. // AndroidOSAPILevel returns an attribute KeyValue conforming to the
  39. // "android.os.api_level" semantic conventions. It represents the uniquely
  40. // identifies the framework API revision offered by a version (`os.version`) of
  41. // the android operating system. More information can be found in the
  42. // [Android API levels documentation].
  43. //
  44. // [Android API levels documentation]: https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels
  45. func AndroidOSAPILevel(val string) attribute.KeyValue {
  46. return AndroidOSAPILevelKey.String(val)
  47. }
  48. // Enum values for android.app.state
  49. var (
  50. // Any time before Activity.onResume() or, if the app has no Activity,
  51. // Context.startService() has been called in the app for the first time.
  52. //
  53. // Stability: development
  54. AndroidAppStateCreated = AndroidAppStateKey.String("created")
  55. // Any time after Activity.onPause() or, if the app has no Activity,
  56. // Context.stopService() has been called when the app was in the foreground
  57. // state.
  58. //
  59. // Stability: development
  60. AndroidAppStateBackground = AndroidAppStateKey.String("background")
  61. // Any time after Activity.onResume() or, if the app has no Activity,
  62. // Context.startService() has been called when the app was in either the created
  63. // or background states.
  64. //
  65. // Stability: development
  66. AndroidAppStateForeground = AndroidAppStateKey.String("foreground")
  67. )
  68. // Namespace: app
  69. const (
  70. // AppBuildIDKey is the attribute Key conforming to the "app.build_id" semantic
  71. // conventions. It represents the unique identifier for a particular build or
  72. // compilation of the application.
  73. //
  74. // Type: string
  75. // RequirementLevel: Recommended
  76. // Stability: Development
  77. //
  78. // Examples: "6cff0a7e-cefc-4668-96f5-1273d8b334d0",
  79. // "9f2b833506aa6973a92fde9733e6271f", "my-app-1.0.0-code-123"
  80. AppBuildIDKey = attribute.Key("app.build_id")
  81. // AppInstallationIDKey is the attribute Key conforming to the
  82. // "app.installation.id" semantic conventions. It represents a unique identifier
  83. // representing the installation of an application on a specific device.
  84. //
  85. // Type: string
  86. // RequirementLevel: Recommended
  87. // Stability: Development
  88. //
  89. // Examples: "2ab2916d-a51f-4ac8-80ee-45ac31a28092"
  90. // Note: Its value SHOULD persist across launches of the same application
  91. // installation, including through application upgrades.
  92. // It SHOULD change if the application is uninstalled or if all applications of
  93. // the vendor are uninstalled.
  94. // Additionally, users might be able to reset this value (e.g. by clearing
  95. // application data).
  96. // If an app is installed multiple times on the same device (e.g. in different
  97. // accounts on Android), each `app.installation.id` SHOULD have a different
  98. // value.
  99. // If multiple OpenTelemetry SDKs are used within the same application, they
  100. // SHOULD use the same value for `app.installation.id`.
  101. // Hardware IDs (e.g. serial number, IMEI, MAC address) MUST NOT be used as the
  102. // `app.installation.id`.
  103. //
  104. // For iOS, this value SHOULD be equal to the [vendor identifier].
  105. //
  106. // For Android, examples of `app.installation.id` implementations include:
  107. //
  108. // - [Firebase Installation ID].
  109. // - A globally unique UUID which is persisted across sessions in your
  110. // application.
  111. // - [App set ID].
  112. // - [`Settings.getString(Settings.Secure.ANDROID_ID)`].
  113. //
  114. // More information about Android identifier best practices can be found in the
  115. // [Android user data IDs guide].
  116. //
  117. // [vendor identifier]: https://developer.apple.com/documentation/uikit/uidevice/identifierforvendor
  118. // [Firebase Installation ID]: https://firebase.google.com/docs/projects/manage-installations
  119. // [App set ID]: https://developer.android.com/identity/app-set-id
  120. // [`Settings.getString(Settings.Secure.ANDROID_ID)`]: https://developer.android.com/reference/android/provider/Settings.Secure#ANDROID_ID
  121. // [Android user data IDs guide]: https://developer.android.com/training/articles/user-data-ids
  122. AppInstallationIDKey = attribute.Key("app.installation.id")
  123. // AppJankFrameCountKey is the attribute Key conforming to the
  124. // "app.jank.frame_count" semantic conventions. It represents a number of frame
  125. // renders that experienced jank.
  126. //
  127. // Type: int
  128. // RequirementLevel: Recommended
  129. // Stability: Development
  130. //
  131. // Examples: 9, 42
  132. // Note: Depending on platform limitations, the value provided MAY be
  133. // approximation.
  134. AppJankFrameCountKey = attribute.Key("app.jank.frame_count")
  135. // AppJankPeriodKey is the attribute Key conforming to the "app.jank.period"
  136. // semantic conventions. It represents the time period, in seconds, for which
  137. // this jank is being reported.
  138. //
  139. // Type: double
  140. // RequirementLevel: Recommended
  141. // Stability: Development
  142. //
  143. // Examples: 1.0, 5.0, 10.24
  144. AppJankPeriodKey = attribute.Key("app.jank.period")
  145. // AppJankThresholdKey is the attribute Key conforming to the
  146. // "app.jank.threshold" semantic conventions. It represents the minimum
  147. // rendering threshold for this jank, in seconds.
  148. //
  149. // Type: double
  150. // RequirementLevel: Recommended
  151. // Stability: Development
  152. //
  153. // Examples: 0.016, 0.7, 1.024
  154. AppJankThresholdKey = attribute.Key("app.jank.threshold")
  155. // AppScreenCoordinateXKey is the attribute Key conforming to the
  156. // "app.screen.coordinate.x" semantic conventions. It represents the x
  157. // (horizontal) coordinate of a screen coordinate, in screen pixels.
  158. //
  159. // Type: int
  160. // RequirementLevel: Recommended
  161. // Stability: Development
  162. //
  163. // Examples: 0, 131
  164. AppScreenCoordinateXKey = attribute.Key("app.screen.coordinate.x")
  165. // AppScreenCoordinateYKey is the attribute Key conforming to the
  166. // "app.screen.coordinate.y" semantic conventions. It represents the y
  167. // (vertical) component of a screen coordinate, in screen pixels.
  168. //
  169. // Type: int
  170. // RequirementLevel: Recommended
  171. // Stability: Development
  172. //
  173. // Examples: 12, 99
  174. AppScreenCoordinateYKey = attribute.Key("app.screen.coordinate.y")
  175. // AppWidgetIDKey is the attribute Key conforming to the "app.widget.id"
  176. // semantic conventions. It represents an identifier that uniquely
  177. // differentiates this widget from other widgets in the same application.
  178. //
  179. // Type: string
  180. // RequirementLevel: Recommended
  181. // Stability: Development
  182. //
  183. // Examples: "f9bc787d-ff05-48ad-90e1-fca1d46130b3", "submit_order_1829"
  184. // Note: A widget is an application component, typically an on-screen visual GUI
  185. // element.
  186. AppWidgetIDKey = attribute.Key("app.widget.id")
  187. // AppWidgetNameKey is the attribute Key conforming to the "app.widget.name"
  188. // semantic conventions. It represents the name of an application widget.
  189. //
  190. // Type: string
  191. // RequirementLevel: Recommended
  192. // Stability: Development
  193. //
  194. // Examples: "submit", "attack", "Clear Cart"
  195. // Note: A widget is an application component, typically an on-screen visual GUI
  196. // element.
  197. AppWidgetNameKey = attribute.Key("app.widget.name")
  198. )
  199. // AppBuildID returns an attribute KeyValue conforming to the "app.build_id"
  200. // semantic conventions. It represents the unique identifier for a particular
  201. // build or compilation of the application.
  202. func AppBuildID(val string) attribute.KeyValue {
  203. return AppBuildIDKey.String(val)
  204. }
  205. // AppInstallationID returns an attribute KeyValue conforming to the
  206. // "app.installation.id" semantic conventions. It represents a unique identifier
  207. // representing the installation of an application on a specific device.
  208. func AppInstallationID(val string) attribute.KeyValue {
  209. return AppInstallationIDKey.String(val)
  210. }
  211. // AppJankFrameCount returns an attribute KeyValue conforming to the
  212. // "app.jank.frame_count" semantic conventions. It represents a number of frame
  213. // renders that experienced jank.
  214. func AppJankFrameCount(val int) attribute.KeyValue {
  215. return AppJankFrameCountKey.Int(val)
  216. }
  217. // AppJankPeriod returns an attribute KeyValue conforming to the
  218. // "app.jank.period" semantic conventions. It represents the time period, in
  219. // seconds, for which this jank is being reported.
  220. func AppJankPeriod(val float64) attribute.KeyValue {
  221. return AppJankPeriodKey.Float64(val)
  222. }
  223. // AppJankThreshold returns an attribute KeyValue conforming to the
  224. // "app.jank.threshold" semantic conventions. It represents the minimum rendering
  225. // threshold for this jank, in seconds.
  226. func AppJankThreshold(val float64) attribute.KeyValue {
  227. return AppJankThresholdKey.Float64(val)
  228. }
  229. // AppScreenCoordinateX returns an attribute KeyValue conforming to the
  230. // "app.screen.coordinate.x" semantic conventions. It represents the x
  231. // (horizontal) coordinate of a screen coordinate, in screen pixels.
  232. func AppScreenCoordinateX(val int) attribute.KeyValue {
  233. return AppScreenCoordinateXKey.Int(val)
  234. }
  235. // AppScreenCoordinateY returns an attribute KeyValue conforming to the
  236. // "app.screen.coordinate.y" semantic conventions. It represents the y (vertical)
  237. // component of a screen coordinate, in screen pixels.
  238. func AppScreenCoordinateY(val int) attribute.KeyValue {
  239. return AppScreenCoordinateYKey.Int(val)
  240. }
  241. // AppWidgetID returns an attribute KeyValue conforming to the "app.widget.id"
  242. // semantic conventions. It represents an identifier that uniquely differentiates
  243. // this widget from other widgets in the same application.
  244. func AppWidgetID(val string) attribute.KeyValue {
  245. return AppWidgetIDKey.String(val)
  246. }
  247. // AppWidgetName returns an attribute KeyValue conforming to the
  248. // "app.widget.name" semantic conventions. It represents the name of an
  249. // application widget.
  250. func AppWidgetName(val string) attribute.KeyValue {
  251. return AppWidgetNameKey.String(val)
  252. }
  253. // Namespace: artifact
  254. const (
  255. // ArtifactAttestationFilenameKey is the attribute Key conforming to the
  256. // "artifact.attestation.filename" semantic conventions. It represents the
  257. // provenance filename of the built attestation which directly relates to the
  258. // build artifact filename. This filename SHOULD accompany the artifact at
  259. // publish time. See the [SLSA Relationship] specification for more information.
  260. //
  261. // Type: string
  262. // RequirementLevel: Recommended
  263. // Stability: Development
  264. //
  265. // Examples: "golang-binary-amd64-v0.1.0.attestation",
  266. // "docker-image-amd64-v0.1.0.intoto.json1", "release-1.tar.gz.attestation",
  267. // "file-name-package.tar.gz.intoto.json1"
  268. //
  269. // [SLSA Relationship]: https://slsa.dev/spec/v1.0/distributing-provenance#relationship-between-artifacts-and-attestations
  270. ArtifactAttestationFilenameKey = attribute.Key("artifact.attestation.filename")
  271. // ArtifactAttestationHashKey is the attribute Key conforming to the
  272. // "artifact.attestation.hash" semantic conventions. It represents the full
  273. // [hash value (see glossary)], of the built attestation. Some envelopes in the
  274. // [software attestation space] also refer to this as the **digest**.
  275. //
  276. // Type: string
  277. // RequirementLevel: Recommended
  278. // Stability: Development
  279. //
  280. // Examples: "1b31dfcd5b7f9267bf2ff47651df1cfb9147b9e4df1f335accf65b4cda498408"
  281. //
  282. // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
  283. // [software attestation space]: https://github.com/in-toto/attestation/tree/main/spec
  284. ArtifactAttestationHashKey = attribute.Key("artifact.attestation.hash")
  285. // ArtifactAttestationIDKey is the attribute Key conforming to the
  286. // "artifact.attestation.id" semantic conventions. It represents the id of the
  287. // build [software attestation].
  288. //
  289. // Type: string
  290. // RequirementLevel: Recommended
  291. // Stability: Development
  292. //
  293. // Examples: "123"
  294. //
  295. // [software attestation]: https://slsa.dev/attestation-model
  296. ArtifactAttestationIDKey = attribute.Key("artifact.attestation.id")
  297. // ArtifactFilenameKey is the attribute Key conforming to the
  298. // "artifact.filename" semantic conventions. It represents the human readable
  299. // file name of the artifact, typically generated during build and release
  300. // processes. Often includes the package name and version in the file name.
  301. //
  302. // Type: string
  303. // RequirementLevel: Recommended
  304. // Stability: Development
  305. //
  306. // Examples: "golang-binary-amd64-v0.1.0", "docker-image-amd64-v0.1.0",
  307. // "release-1.tar.gz", "file-name-package.tar.gz"
  308. // Note: This file name can also act as the [Package Name]
  309. // in cases where the package ecosystem maps accordingly.
  310. // Additionally, the artifact [can be published]
  311. // for others, but that is not a guarantee.
  312. //
  313. // [Package Name]: https://slsa.dev/spec/v1.0/terminology#package-model
  314. // [can be published]: https://slsa.dev/spec/v1.0/terminology#software-supply-chain
  315. ArtifactFilenameKey = attribute.Key("artifact.filename")
  316. // ArtifactHashKey is the attribute Key conforming to the "artifact.hash"
  317. // semantic conventions. It represents the full [hash value (see glossary)],
  318. // often found in checksum.txt on a release of the artifact and used to verify
  319. // package integrity.
  320. //
  321. // Type: string
  322. // RequirementLevel: Recommended
  323. // Stability: Development
  324. //
  325. // Examples: "9ff4c52759e2c4ac70b7d517bc7fcdc1cda631ca0045271ddd1b192544f8a3e9"
  326. // Note: The specific algorithm used to create the cryptographic hash value is
  327. // not defined. In situations where an artifact has multiple
  328. // cryptographic hashes, it is up to the implementer to choose which
  329. // hash value to set here; this should be the most secure hash algorithm
  330. // that is suitable for the situation and consistent with the
  331. // corresponding attestation. The implementer can then provide the other
  332. // hash values through an additional set of attribute extensions as they
  333. // deem necessary.
  334. //
  335. // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
  336. ArtifactHashKey = attribute.Key("artifact.hash")
  337. // ArtifactPurlKey is the attribute Key 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
  340. // packaged artifact.
  341. //
  342. // Type: string
  343. // RequirementLevel: Recommended
  344. // Stability: Development
  345. //
  346. // Examples: "pkg:github/package-url/purl-spec@1209109710924",
  347. // "pkg:npm/foo@12.12.3"
  348. //
  349. // [Package URL]: https://github.com/package-url/purl-spec
  350. // [package artifact]: https://slsa.dev/spec/v1.0/terminology#package-model
  351. ArtifactPurlKey = attribute.Key("artifact.purl")
  352. // ArtifactVersionKey is the attribute Key conforming to the "artifact.version"
  353. // semantic conventions. It represents the version of the artifact.
  354. //
  355. // Type: string
  356. // RequirementLevel: Recommended
  357. // Stability: Development
  358. //
  359. // Examples: "v0.1.0", "1.2.1", "122691-build"
  360. ArtifactVersionKey = attribute.Key("artifact.version")
  361. )
  362. // ArtifactAttestationFilename returns an attribute KeyValue conforming to the
  363. // "artifact.attestation.filename" semantic conventions. It represents the
  364. // provenance filename of the built attestation which directly relates to the
  365. // build artifact filename. This filename SHOULD accompany the artifact at
  366. // publish time. See the [SLSA Relationship] specification for more information.
  367. //
  368. // [SLSA Relationship]: https://slsa.dev/spec/v1.0/distributing-provenance#relationship-between-artifacts-and-attestations
  369. func ArtifactAttestationFilename(val string) attribute.KeyValue {
  370. return ArtifactAttestationFilenameKey.String(val)
  371. }
  372. // ArtifactAttestationHash returns an attribute KeyValue conforming to the
  373. // "artifact.attestation.hash" semantic conventions. It represents the full
  374. // [hash value (see glossary)], of the built attestation. Some envelopes in the
  375. // [software attestation space] also refer to this as the **digest**.
  376. //
  377. // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
  378. // [software attestation space]: https://github.com/in-toto/attestation/tree/main/spec
  379. func ArtifactAttestationHash(val string) attribute.KeyValue {
  380. return ArtifactAttestationHashKey.String(val)
  381. }
  382. // ArtifactAttestationID returns an attribute KeyValue conforming to the
  383. // "artifact.attestation.id" semantic conventions. It represents the id of the
  384. // build [software attestation].
  385. //
  386. // [software attestation]: https://slsa.dev/attestation-model
  387. func ArtifactAttestationID(val string) attribute.KeyValue {
  388. return ArtifactAttestationIDKey.String(val)
  389. }
  390. // ArtifactFilename returns an attribute KeyValue conforming to the
  391. // "artifact.filename" semantic conventions. It represents the human readable
  392. // file name of the artifact, typically generated during build and release
  393. // processes. Often includes the package name and version in the file name.
  394. func ArtifactFilename(val string) attribute.KeyValue {
  395. return ArtifactFilenameKey.String(val)
  396. }
  397. // ArtifactHash returns an attribute KeyValue conforming to the "artifact.hash"
  398. // semantic conventions. It represents the full [hash value (see glossary)],
  399. // often found in checksum.txt on a release of the artifact and used to verify
  400. // package integrity.
  401. //
  402. // [hash value (see glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
  403. func ArtifactHash(val string) attribute.KeyValue {
  404. return ArtifactHashKey.String(val)
  405. }
  406. // ArtifactPurl returns an attribute KeyValue conforming to the "artifact.purl"
  407. // semantic conventions. It represents the [Package URL] of the
  408. // [package artifact] provides a standard way to identify and locate the packaged
  409. // artifact.
  410. //
  411. // [Package URL]: https://github.com/package-url/purl-spec
  412. // [package artifact]: https://slsa.dev/spec/v1.0/terminology#package-model
  413. func ArtifactPurl(val string) attribute.KeyValue {
  414. return ArtifactPurlKey.String(val)
  415. }
  416. // ArtifactVersion returns an attribute KeyValue conforming to the
  417. // "artifact.version" semantic conventions. It represents the version of the
  418. // artifact.
  419. func ArtifactVersion(val string) attribute.KeyValue {
  420. return ArtifactVersionKey.String(val)
  421. }
  422. // Namespace: aws
  423. const (
  424. // AWSBedrockGuardrailIDKey is the attribute Key conforming to the
  425. // "aws.bedrock.guardrail.id" semantic conventions. It represents the unique
  426. // identifier of the AWS Bedrock Guardrail. A [guardrail] helps safeguard and
  427. // prevent unwanted behavior from model responses or user messages.
  428. //
  429. // Type: string
  430. // RequirementLevel: Recommended
  431. // Stability: Development
  432. //
  433. // Examples: "sgi5gkybzqak"
  434. //
  435. // [guardrail]: https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html
  436. AWSBedrockGuardrailIDKey = attribute.Key("aws.bedrock.guardrail.id")
  437. // AWSBedrockKnowledgeBaseIDKey is the attribute Key conforming to the
  438. // "aws.bedrock.knowledge_base.id" semantic conventions. It represents the
  439. // unique identifier of the AWS Bedrock Knowledge base. A [knowledge base] is a
  440. // bank of information that can be queried by models to generate more relevant
  441. // responses and augment prompts.
  442. //
  443. // Type: string
  444. // RequirementLevel: Recommended
  445. // Stability: Development
  446. //
  447. // Examples: "XFWUPB9PAW"
  448. //
  449. // [knowledge base]: https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base.html
  450. AWSBedrockKnowledgeBaseIDKey = attribute.Key("aws.bedrock.knowledge_base.id")
  451. // AWSDynamoDBAttributeDefinitionsKey is the attribute Key conforming to the
  452. // "aws.dynamodb.attribute_definitions" semantic conventions. It represents the
  453. // JSON-serialized value of each item in the `AttributeDefinitions` request
  454. // field.
  455. //
  456. // Type: string[]
  457. // RequirementLevel: Recommended
  458. // Stability: Development
  459. //
  460. // Examples: "{ "AttributeName": "string", "AttributeType": "string" }"
  461. AWSDynamoDBAttributeDefinitionsKey = attribute.Key("aws.dynamodb.attribute_definitions")
  462. // AWSDynamoDBAttributesToGetKey is the attribute Key conforming to the
  463. // "aws.dynamodb.attributes_to_get" semantic conventions. It represents the
  464. // value of the `AttributesToGet` request parameter.
  465. //
  466. // Type: string[]
  467. // RequirementLevel: Recommended
  468. // Stability: Development
  469. //
  470. // Examples: "lives", "id"
  471. AWSDynamoDBAttributesToGetKey = attribute.Key("aws.dynamodb.attributes_to_get")
  472. // AWSDynamoDBConsistentReadKey is the attribute Key conforming to the
  473. // "aws.dynamodb.consistent_read" semantic conventions. It represents the value
  474. // of the `ConsistentRead` request parameter.
  475. //
  476. // Type: boolean
  477. // RequirementLevel: Recommended
  478. // Stability: Development
  479. //
  480. // Examples:
  481. AWSDynamoDBConsistentReadKey = attribute.Key("aws.dynamodb.consistent_read")
  482. // AWSDynamoDBConsumedCapacityKey is the attribute Key conforming to the
  483. // "aws.dynamodb.consumed_capacity" semantic conventions. It represents the
  484. // JSON-serialized value of each item in the `ConsumedCapacity` response field.
  485. //
  486. // Type: string[]
  487. // RequirementLevel: Recommended
  488. // Stability: Development
  489. //
  490. // Examples: "{ "CapacityUnits": number, "GlobalSecondaryIndexes": { "string" :
  491. // { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits":
  492. // number } }, "LocalSecondaryIndexes": { "string" : { "CapacityUnits": number,
  493. // "ReadCapacityUnits": number, "WriteCapacityUnits": number } },
  494. // "ReadCapacityUnits": number, "Table": { "CapacityUnits": number,
  495. // "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName":
  496. // "string", "WriteCapacityUnits": number }"
  497. AWSDynamoDBConsumedCapacityKey = attribute.Key("aws.dynamodb.consumed_capacity")
  498. // AWSDynamoDBCountKey is the attribute Key conforming to the
  499. // "aws.dynamodb.count" semantic conventions. It represents the value of the
  500. // `Count` response parameter.
  501. //
  502. // Type: int
  503. // RequirementLevel: Recommended
  504. // Stability: Development
  505. //
  506. // Examples: 10
  507. AWSDynamoDBCountKey = attribute.Key("aws.dynamodb.count")
  508. // AWSDynamoDBExclusiveStartTableKey is the attribute Key conforming to the
  509. // "aws.dynamodb.exclusive_start_table" semantic conventions. It represents the
  510. // value of the `ExclusiveStartTableName` request parameter.
  511. //
  512. // Type: string
  513. // RequirementLevel: Recommended
  514. // Stability: Development
  515. //
  516. // Examples: "Users", "CatsTable"
  517. AWSDynamoDBExclusiveStartTableKey = attribute.Key("aws.dynamodb.exclusive_start_table")
  518. // AWSDynamoDBGlobalSecondaryIndexUpdatesKey is the attribute Key conforming to
  519. // the "aws.dynamodb.global_secondary_index_updates" semantic conventions. It
  520. // represents the JSON-serialized value of each item in the
  521. // `GlobalSecondaryIndexUpdates` request field.
  522. //
  523. // Type: string[]
  524. // RequirementLevel: Recommended
  525. // Stability: Development
  526. //
  527. // Examples: "{ "Create": { "IndexName": "string", "KeySchema": [ {
  528. // "AttributeName": "string", "KeyType": "string" } ], "Projection": {
  529. // "NonKeyAttributes": [ "string" ], "ProjectionType": "string" },
  530. // "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits":
  531. // number } }"
  532. AWSDynamoDBGlobalSecondaryIndexUpdatesKey = attribute.Key("aws.dynamodb.global_secondary_index_updates")
  533. // AWSDynamoDBGlobalSecondaryIndexesKey is the attribute Key conforming to the
  534. // "aws.dynamodb.global_secondary_indexes" semantic conventions. It represents
  535. // the JSON-serialized value of each item of the `GlobalSecondaryIndexes`
  536. // request field.
  537. //
  538. // Type: string[]
  539. // RequirementLevel: Recommended
  540. // Stability: Development
  541. //
  542. // Examples: "{ "IndexName": "string", "KeySchema": [ { "AttributeName":
  543. // "string", "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [
  544. // "string" ], "ProjectionType": "string" }, "ProvisionedThroughput": {
  545. // "ReadCapacityUnits": number, "WriteCapacityUnits": number } }"
  546. AWSDynamoDBGlobalSecondaryIndexesKey = attribute.Key("aws.dynamodb.global_secondary_indexes")
  547. // AWSDynamoDBIndexNameKey is the attribute Key conforming to the
  548. // "aws.dynamodb.index_name" semantic conventions. It represents the value of
  549. // the `IndexName` request parameter.
  550. //
  551. // Type: string
  552. // RequirementLevel: Recommended
  553. // Stability: Development
  554. //
  555. // Examples: "name_to_group"
  556. AWSDynamoDBIndexNameKey = attribute.Key("aws.dynamodb.index_name")
  557. // AWSDynamoDBItemCollectionMetricsKey is the attribute Key conforming to the
  558. // "aws.dynamodb.item_collection_metrics" semantic conventions. It represents
  559. // the JSON-serialized value of the `ItemCollectionMetrics` response field.
  560. //
  561. // Type: string
  562. // RequirementLevel: Recommended
  563. // Stability: Development
  564. //
  565. // Examples: "{ "string" : [ { "ItemCollectionKey": { "string" : { "B": blob,
  566. // "BOOL": boolean, "BS": [ blob ], "L": [ "AttributeValue" ], "M": { "string" :
  567. // "AttributeValue" }, "N": "string", "NS": [ "string" ], "NULL": boolean, "S":
  568. // "string", "SS": [ "string" ] } }, "SizeEstimateRangeGB": [ number ] } ] }"
  569. AWSDynamoDBItemCollectionMetricsKey = attribute.Key("aws.dynamodb.item_collection_metrics")
  570. // AWSDynamoDBLimitKey is the attribute Key conforming to the
  571. // "aws.dynamodb.limit" semantic conventions. It represents the value of the
  572. // `Limit` request parameter.
  573. //
  574. // Type: int
  575. // RequirementLevel: Recommended
  576. // Stability: Development
  577. //
  578. // Examples: 10
  579. AWSDynamoDBLimitKey = attribute.Key("aws.dynamodb.limit")
  580. // AWSDynamoDBLocalSecondaryIndexesKey is the attribute Key conforming to the
  581. // "aws.dynamodb.local_secondary_indexes" semantic conventions. It represents
  582. // the JSON-serialized value of each item of the `LocalSecondaryIndexes` request
  583. // field.
  584. //
  585. // Type: string[]
  586. // RequirementLevel: Recommended
  587. // Stability: Development
  588. //
  589. // Examples: "{ "IndexArn": "string", "IndexName": "string", "IndexSizeBytes":
  590. // number, "ItemCount": number, "KeySchema": [ { "AttributeName": "string",
  591. // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ],
  592. // "ProjectionType": "string" } }"
  593. AWSDynamoDBLocalSecondaryIndexesKey = attribute.Key("aws.dynamodb.local_secondary_indexes")
  594. // AWSDynamoDBProjectionKey is the attribute Key conforming to the
  595. // "aws.dynamodb.projection" semantic conventions. It represents the value of
  596. // the `ProjectionExpression` request parameter.
  597. //
  598. // Type: string
  599. // RequirementLevel: Recommended
  600. // Stability: Development
  601. //
  602. // Examples: "Title", "Title, Price, Color", "Title, Description, RelatedItems,
  603. // ProductReviews"
  604. AWSDynamoDBProjectionKey = attribute.Key("aws.dynamodb.projection")
  605. // AWSDynamoDBProvisionedReadCapacityKey is the attribute Key conforming to the
  606. // "aws.dynamodb.provisioned_read_capacity" semantic conventions. It represents
  607. // the value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter.
  608. //
  609. // Type: double
  610. // RequirementLevel: Recommended
  611. // Stability: Development
  612. //
  613. // Examples: 1.0, 2.0
  614. AWSDynamoDBProvisionedReadCapacityKey = attribute.Key("aws.dynamodb.provisioned_read_capacity")
  615. // AWSDynamoDBProvisionedWriteCapacityKey is the attribute Key conforming to the
  616. // "aws.dynamodb.provisioned_write_capacity" semantic conventions. It represents
  617. // the value of the `ProvisionedThroughput.WriteCapacityUnits` request
  618. // parameter.
  619. //
  620. // Type: double
  621. // RequirementLevel: Recommended
  622. // Stability: Development
  623. //
  624. // Examples: 1.0, 2.0
  625. AWSDynamoDBProvisionedWriteCapacityKey = attribute.Key("aws.dynamodb.provisioned_write_capacity")
  626. // AWSDynamoDBScanForwardKey is the attribute Key conforming to the
  627. // "aws.dynamodb.scan_forward" semantic conventions. It represents the value of
  628. // the `ScanIndexForward` request parameter.
  629. //
  630. // Type: boolean
  631. // RequirementLevel: Recommended
  632. // Stability: Development
  633. //
  634. // Examples:
  635. AWSDynamoDBScanForwardKey = attribute.Key("aws.dynamodb.scan_forward")
  636. // AWSDynamoDBScannedCountKey is the attribute Key conforming to the
  637. // "aws.dynamodb.scanned_count" semantic conventions. It represents the value of
  638. // the `ScannedCount` response parameter.
  639. //
  640. // Type: int
  641. // RequirementLevel: Recommended
  642. // Stability: Development
  643. //
  644. // Examples: 50
  645. AWSDynamoDBScannedCountKey = attribute.Key("aws.dynamodb.scanned_count")
  646. // AWSDynamoDBSegmentKey is the attribute Key conforming to the
  647. // "aws.dynamodb.segment" semantic conventions. It represents the value of the
  648. // `Segment` request parameter.
  649. //
  650. // Type: int
  651. // RequirementLevel: Recommended
  652. // Stability: Development
  653. //
  654. // Examples: 10
  655. AWSDynamoDBSegmentKey = attribute.Key("aws.dynamodb.segment")
  656. // AWSDynamoDBSelectKey is the attribute Key conforming to the
  657. // "aws.dynamodb.select" semantic conventions. It represents the value of the
  658. // `Select` request parameter.
  659. //
  660. // Type: string
  661. // RequirementLevel: Recommended
  662. // Stability: Development
  663. //
  664. // Examples: "ALL_ATTRIBUTES", "COUNT"
  665. AWSDynamoDBSelectKey = attribute.Key("aws.dynamodb.select")
  666. // AWSDynamoDBTableCountKey is the attribute Key conforming to the
  667. // "aws.dynamodb.table_count" semantic conventions. It represents the number of
  668. // items in the `TableNames` response parameter.
  669. //
  670. // Type: int
  671. // RequirementLevel: Recommended
  672. // Stability: Development
  673. //
  674. // Examples: 20
  675. AWSDynamoDBTableCountKey = attribute.Key("aws.dynamodb.table_count")
  676. // AWSDynamoDBTableNamesKey is the attribute Key conforming to the
  677. // "aws.dynamodb.table_names" semantic conventions. It represents the keys in
  678. // the `RequestItems` object field.
  679. //
  680. // Type: string[]
  681. // RequirementLevel: Recommended
  682. // Stability: Development
  683. //
  684. // Examples: "Users", "Cats"
  685. AWSDynamoDBTableNamesKey = attribute.Key("aws.dynamodb.table_names")
  686. // AWSDynamoDBTotalSegmentsKey is the attribute Key conforming to the
  687. // "aws.dynamodb.total_segments" semantic conventions. It represents the value
  688. // of the `TotalSegments` request parameter.
  689. //
  690. // Type: int
  691. // RequirementLevel: Recommended
  692. // Stability: Development
  693. //
  694. // Examples: 100
  695. AWSDynamoDBTotalSegmentsKey = attribute.Key("aws.dynamodb.total_segments")
  696. // AWSECSClusterARNKey is the attribute Key conforming to the
  697. // "aws.ecs.cluster.arn" semantic conventions. It represents the ARN of an
  698. // [ECS cluster].
  699. //
  700. // Type: string
  701. // RequirementLevel: Recommended
  702. // Stability: Development
  703. //
  704. // Examples: "arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster"
  705. //
  706. // [ECS cluster]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html
  707. AWSECSClusterARNKey = attribute.Key("aws.ecs.cluster.arn")
  708. // AWSECSContainerARNKey is the attribute Key conforming to the
  709. // "aws.ecs.container.arn" semantic conventions. It represents the Amazon
  710. // Resource Name (ARN) of an [ECS container instance].
  711. //
  712. // Type: string
  713. // RequirementLevel: Recommended
  714. // Stability: Development
  715. //
  716. // Examples:
  717. // "arn:aws:ecs:us-west-1:123456789123:container/32624152-9086-4f0e-acae-1a75b14fe4d9"
  718. //
  719. // [ECS container instance]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html
  720. AWSECSContainerARNKey = attribute.Key("aws.ecs.container.arn")
  721. // AWSECSLaunchtypeKey is the attribute Key conforming to the
  722. // "aws.ecs.launchtype" semantic conventions. It represents the [launch type]
  723. // for an ECS task.
  724. //
  725. // Type: Enum
  726. // RequirementLevel: Recommended
  727. // Stability: Development
  728. //
  729. // Examples:
  730. //
  731. // [launch type]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html
  732. AWSECSLaunchtypeKey = attribute.Key("aws.ecs.launchtype")
  733. // AWSECSTaskARNKey is the attribute Key conforming to the "aws.ecs.task.arn"
  734. // semantic conventions. It represents the ARN of a running [ECS task].
  735. //
  736. // Type: string
  737. // RequirementLevel: Recommended
  738. // Stability: Development
  739. //
  740. // Examples:
  741. // "arn:aws:ecs:us-west-1:123456789123:task/10838bed-421f-43ef-870a-f43feacbbb5b",
  742. // "arn:aws:ecs:us-west-1:123456789123:task/my-cluster/task-id/23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd"
  743. //
  744. // [ECS task]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids
  745. AWSECSTaskARNKey = attribute.Key("aws.ecs.task.arn")
  746. // AWSECSTaskFamilyKey is the attribute Key conforming to the
  747. // "aws.ecs.task.family" semantic conventions. It represents the family name of
  748. // the [ECS task definition] used to create the ECS task.
  749. //
  750. // Type: string
  751. // RequirementLevel: Recommended
  752. // Stability: Development
  753. //
  754. // Examples: "opentelemetry-family"
  755. //
  756. // [ECS task definition]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html
  757. AWSECSTaskFamilyKey = attribute.Key("aws.ecs.task.family")
  758. // AWSECSTaskIDKey is the attribute Key conforming to the "aws.ecs.task.id"
  759. // semantic conventions. It represents the ID of a running ECS task. The ID MUST
  760. // be extracted from `task.arn`.
  761. //
  762. // Type: string
  763. // RequirementLevel: Recommended
  764. // Stability: Development
  765. //
  766. // Examples: "10838bed-421f-43ef-870a-f43feacbbb5b",
  767. // "23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd"
  768. AWSECSTaskIDKey = attribute.Key("aws.ecs.task.id")
  769. // AWSECSTaskRevisionKey is the attribute Key conforming to the
  770. // "aws.ecs.task.revision" semantic conventions. It represents the revision for
  771. // the task definition used to create the ECS task.
  772. //
  773. // Type: string
  774. // RequirementLevel: Recommended
  775. // Stability: Development
  776. //
  777. // Examples: "8", "26"
  778. AWSECSTaskRevisionKey = attribute.Key("aws.ecs.task.revision")
  779. // AWSEKSClusterARNKey is the attribute Key conforming to the
  780. // "aws.eks.cluster.arn" semantic conventions. It represents the ARN of an EKS
  781. // cluster.
  782. //
  783. // Type: string
  784. // RequirementLevel: Recommended
  785. // Stability: Development
  786. //
  787. // Examples: "arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster"
  788. AWSEKSClusterARNKey = attribute.Key("aws.eks.cluster.arn")
  789. // AWSExtendedRequestIDKey is the attribute Key conforming to the
  790. // "aws.extended_request_id" semantic conventions. It represents the AWS
  791. // extended request ID as returned in the response header `x-amz-id-2`.
  792. //
  793. // Type: string
  794. // RequirementLevel: Recommended
  795. // Stability: Development
  796. //
  797. // Examples:
  798. // "wzHcyEWfmOGDIE5QOhTAqFDoDWP3y8IUvpNINCwL9N4TEHbUw0/gZJ+VZTmCNCWR7fezEN3eCiQ="
  799. AWSExtendedRequestIDKey = attribute.Key("aws.extended_request_id")
  800. // AWSKinesisStreamNameKey is the attribute Key conforming to the
  801. // "aws.kinesis.stream_name" semantic conventions. It represents the name of the
  802. // AWS Kinesis [stream] the request refers to. Corresponds to the
  803. // `--stream-name` parameter of the Kinesis [describe-stream] operation.
  804. //
  805. // Type: string
  806. // RequirementLevel: Recommended
  807. // Stability: Development
  808. //
  809. // Examples: "some-stream-name"
  810. //
  811. // [stream]: https://docs.aws.amazon.com/streams/latest/dev/introduction.html
  812. // [describe-stream]: https://docs.aws.amazon.com/cli/latest/reference/kinesis/describe-stream.html
  813. AWSKinesisStreamNameKey = attribute.Key("aws.kinesis.stream_name")
  814. // AWSLambdaInvokedARNKey is the attribute Key conforming to the
  815. // "aws.lambda.invoked_arn" semantic conventions. It represents the full invoked
  816. // ARN as provided on the `Context` passed to the function (
  817. // `Lambda-Runtime-Invoked-Function-Arn` header on the
  818. // `/runtime/invocation/next` applicable).
  819. //
  820. // Type: string
  821. // RequirementLevel: Recommended
  822. // Stability: Development
  823. //
  824. // Examples: "arn:aws:lambda:us-east-1:123456:function:myfunction:myalias"
  825. // Note: This may be different from `cloud.resource_id` if an alias is involved.
  826. AWSLambdaInvokedARNKey = attribute.Key("aws.lambda.invoked_arn")
  827. // AWSLambdaResourceMappingIDKey is the attribute Key conforming to the
  828. // "aws.lambda.resource_mapping.id" semantic conventions. It represents the UUID
  829. // of the [AWS Lambda EvenSource Mapping]. An event source is mapped to a lambda
  830. // function. It's contents are read by Lambda and used to trigger a function.
  831. // This isn't available in the lambda execution context or the lambda runtime
  832. // environtment. This is going to be populated by the AWS SDK for each language
  833. // when that UUID is present. Some of these operations are
  834. // Create/Delete/Get/List/Update EventSourceMapping.
  835. //
  836. // Type: string
  837. // RequirementLevel: Recommended
  838. // Stability: Development
  839. //
  840. // Examples: "587ad24b-03b9-4413-8202-bbd56b36e5b7"
  841. //
  842. // [AWS Lambda EvenSource Mapping]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html
  843. AWSLambdaResourceMappingIDKey = attribute.Key("aws.lambda.resource_mapping.id")
  844. // AWSLogGroupARNsKey is the attribute Key conforming to the
  845. // "aws.log.group.arns" semantic conventions. It represents the Amazon Resource
  846. // Name(s) (ARN) of the AWS log group(s).
  847. //
  848. // Type: string[]
  849. // RequirementLevel: Recommended
  850. // Stability: Development
  851. //
  852. // Examples: "arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:*"
  853. // Note: See the [log group ARN format documentation].
  854. //
  855. // [log group ARN format documentation]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format
  856. AWSLogGroupARNsKey = attribute.Key("aws.log.group.arns")
  857. // AWSLogGroupNamesKey is the attribute Key conforming to the
  858. // "aws.log.group.names" semantic conventions. It represents the name(s) of the
  859. // AWS log group(s) an application is writing to.
  860. //
  861. // Type: string[]
  862. // RequirementLevel: Recommended
  863. // Stability: Development
  864. //
  865. // Examples: "/aws/lambda/my-function", "opentelemetry-service"
  866. // Note: Multiple log groups must be supported for cases like multi-container
  867. // applications, where a single application has sidecar containers, and each
  868. // write to their own log group.
  869. AWSLogGroupNamesKey = attribute.Key("aws.log.group.names")
  870. // AWSLogStreamARNsKey is the attribute Key conforming to the
  871. // "aws.log.stream.arns" semantic conventions. It represents the ARN(s) of the
  872. // AWS log stream(s).
  873. //
  874. // Type: string[]
  875. // RequirementLevel: Recommended
  876. // Stability: Development
  877. //
  878. // Examples:
  879. // "arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:log-stream:logs/main/10838bed-421f-43ef-870a-f43feacbbb5b"
  880. // Note: See the [log stream ARN format documentation]. One log group can
  881. // contain several log streams, so these ARNs necessarily identify both a log
  882. // group and a log stream.
  883. //
  884. // [log stream ARN format documentation]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format
  885. AWSLogStreamARNsKey = attribute.Key("aws.log.stream.arns")
  886. // AWSLogStreamNamesKey is the attribute Key conforming to the
  887. // "aws.log.stream.names" semantic conventions. It represents the name(s) of the
  888. // AWS log stream(s) an application is writing to.
  889. //
  890. // Type: string[]
  891. // RequirementLevel: Recommended
  892. // Stability: Development
  893. //
  894. // Examples: "logs/main/10838bed-421f-43ef-870a-f43feacbbb5b"
  895. AWSLogStreamNamesKey = attribute.Key("aws.log.stream.names")
  896. // AWSRequestIDKey is the attribute Key conforming to the "aws.request_id"
  897. // semantic conventions. It represents the AWS request ID as returned in the
  898. // response headers `x-amzn-requestid`, `x-amzn-request-id` or
  899. // `x-amz-request-id`.
  900. //
  901. // Type: string
  902. // RequirementLevel: Recommended
  903. // Stability: Development
  904. //
  905. // Examples: "79b9da39-b7ae-508a-a6bc-864b2829c622", "C9ER4AJX75574TDJ"
  906. AWSRequestIDKey = attribute.Key("aws.request_id")
  907. // AWSS3BucketKey is the attribute Key conforming to the "aws.s3.bucket"
  908. // semantic conventions. It represents the S3 bucket name the request refers to.
  909. // Corresponds to the `--bucket` parameter of the [S3 API] operations.
  910. //
  911. // Type: string
  912. // RequirementLevel: Recommended
  913. // Stability: Development
  914. //
  915. // Examples: "some-bucket-name"
  916. // Note: The `bucket` attribute is applicable to all S3 operations that
  917. // reference a bucket, i.e. that require the bucket name as a mandatory
  918. // parameter.
  919. // This applies to almost all S3 operations except `list-buckets`.
  920. //
  921. // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
  922. AWSS3BucketKey = attribute.Key("aws.s3.bucket")
  923. // AWSS3CopySourceKey is the attribute Key conforming to the
  924. // "aws.s3.copy_source" semantic conventions. It represents the source object
  925. // (in the form `bucket`/`key`) for the copy operation.
  926. //
  927. // Type: string
  928. // RequirementLevel: Recommended
  929. // Stability: Development
  930. //
  931. // Examples: "someFile.yml"
  932. // Note: The `copy_source` attribute applies to S3 copy operations and
  933. // corresponds to the `--copy-source` parameter
  934. // of the [copy-object operation within the S3 API].
  935. // This applies in particular to the following operations:
  936. //
  937. // - [copy-object]
  938. // - [upload-part-copy]
  939. //
  940. //
  941. // [copy-object operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html
  942. // [copy-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html
  943. // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
  944. AWSS3CopySourceKey = attribute.Key("aws.s3.copy_source")
  945. // AWSS3DeleteKey is the attribute Key conforming to the "aws.s3.delete"
  946. // semantic conventions. It represents the delete request container that
  947. // specifies the objects to be deleted.
  948. //
  949. // Type: string
  950. // RequirementLevel: Recommended
  951. // Stability: Development
  952. //
  953. // Examples:
  954. // "Objects=[{Key=string,VersionId=string},{Key=string,VersionId=string}],Quiet=boolean"
  955. // Note: The `delete` attribute is only applicable to the [delete-object]
  956. // operation.
  957. // The `delete` attribute corresponds to the `--delete` parameter of the
  958. // [delete-objects operation within the S3 API].
  959. //
  960. // [delete-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html
  961. // [delete-objects operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-objects.html
  962. AWSS3DeleteKey = attribute.Key("aws.s3.delete")
  963. // AWSS3KeyKey is the attribute Key conforming to the "aws.s3.key" semantic
  964. // conventions. It represents the S3 object key the request refers to.
  965. // Corresponds to the `--key` parameter of the [S3 API] operations.
  966. //
  967. // Type: string
  968. // RequirementLevel: Recommended
  969. // Stability: Development
  970. //
  971. // Examples: "someFile.yml"
  972. // Note: The `key` attribute is applicable to all object-related S3 operations,
  973. // i.e. that require the object key as a mandatory parameter.
  974. // This applies in particular to the following operations:
  975. //
  976. // - [copy-object]
  977. // - [delete-object]
  978. // - [get-object]
  979. // - [head-object]
  980. // - [put-object]
  981. // - [restore-object]
  982. // - [select-object-content]
  983. // - [abort-multipart-upload]
  984. // - [complete-multipart-upload]
  985. // - [create-multipart-upload]
  986. // - [list-parts]
  987. // - [upload-part]
  988. // - [upload-part-copy]
  989. //
  990. //
  991. // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
  992. // [copy-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html
  993. // [delete-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html
  994. // [get-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/get-object.html
  995. // [head-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/head-object.html
  996. // [put-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/put-object.html
  997. // [restore-object]: https://docs.aws.amazon.com/cli/latest/reference/s3api/restore-object.html
  998. // [select-object-content]: https://docs.aws.amazon.com/cli/latest/reference/s3api/select-object-content.html
  999. // [abort-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html
  1000. // [complete-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.html
  1001. // [create-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/create-multipart-upload.html
  1002. // [list-parts]: https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html
  1003. // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
  1004. // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
  1005. AWSS3KeyKey = attribute.Key("aws.s3.key")
  1006. // AWSS3PartNumberKey is the attribute Key conforming to the
  1007. // "aws.s3.part_number" semantic conventions. It represents the part number of
  1008. // the part being uploaded in a multipart-upload operation. This is a positive
  1009. // integer between 1 and 10,000.
  1010. //
  1011. // Type: int
  1012. // RequirementLevel: Recommended
  1013. // Stability: Development
  1014. //
  1015. // Examples: 3456
  1016. // Note: The `part_number` attribute is only applicable to the [upload-part]
  1017. // and [upload-part-copy] operations.
  1018. // The `part_number` attribute corresponds to the `--part-number` parameter of
  1019. // the
  1020. // [upload-part operation within the S3 API].
  1021. //
  1022. // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
  1023. // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
  1024. // [upload-part operation within the S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
  1025. AWSS3PartNumberKey = attribute.Key("aws.s3.part_number")
  1026. // AWSS3UploadIDKey is the attribute Key conforming to the "aws.s3.upload_id"
  1027. // semantic conventions. It represents the upload ID that identifies the
  1028. // multipart upload.
  1029. //
  1030. // Type: string
  1031. // RequirementLevel: Recommended
  1032. // Stability: Development
  1033. //
  1034. // Examples: "dfRtDYWFbkRONycy.Yxwh66Yjlx.cph0gtNBtJ"
  1035. // Note: The `upload_id` attribute applies to S3 multipart-upload operations and
  1036. // corresponds to the `--upload-id` parameter
  1037. // of the [S3 API] multipart operations.
  1038. // This applies in particular to the following operations:
  1039. //
  1040. // - [abort-multipart-upload]
  1041. // - [complete-multipart-upload]
  1042. // - [list-parts]
  1043. // - [upload-part]
  1044. // - [upload-part-copy]
  1045. //
  1046. //
  1047. // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
  1048. // [abort-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html
  1049. // [complete-multipart-upload]: https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.html
  1050. // [list-parts]: https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html
  1051. // [upload-part]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html
  1052. // [upload-part-copy]: https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html
  1053. AWSS3UploadIDKey = attribute.Key("aws.s3.upload_id")
  1054. // AWSSecretsmanagerSecretARNKey is the attribute Key conforming to the
  1055. // "aws.secretsmanager.secret.arn" semantic conventions. It represents the ARN
  1056. // of the Secret stored in the Secrets Mangger.
  1057. //
  1058. // Type: string
  1059. // RequirementLevel: Recommended
  1060. // Stability: Development
  1061. //
  1062. // Examples:
  1063. // "arn:aws:secretsmanager:us-east-1:123456789012:secret:SecretName-6RandomCharacters"
  1064. AWSSecretsmanagerSecretARNKey = attribute.Key("aws.secretsmanager.secret.arn")
  1065. // AWSSNSTopicARNKey is the attribute Key conforming to the "aws.sns.topic.arn"
  1066. // semantic conventions. It represents the ARN of the AWS SNS Topic. An Amazon
  1067. // SNS [topic] is a logical access point that acts as a communication channel.
  1068. //
  1069. // Type: string
  1070. // RequirementLevel: Recommended
  1071. // Stability: Development
  1072. //
  1073. // Examples: "arn:aws:sns:us-east-1:123456789012:mystack-mytopic-NZJ5JSMVGFIE"
  1074. //
  1075. // [topic]: https://docs.aws.amazon.com/sns/latest/dg/sns-create-topic.html
  1076. AWSSNSTopicARNKey = attribute.Key("aws.sns.topic.arn")
  1077. // AWSSQSQueueURLKey is the attribute Key conforming to the "aws.sqs.queue.url"
  1078. // semantic conventions. It represents the URL of the AWS SQS Queue. It's a
  1079. // unique identifier for a queue in Amazon Simple Queue Service (SQS) and is
  1080. // used to access the queue and perform actions on it.
  1081. //
  1082. // Type: string
  1083. // RequirementLevel: Recommended
  1084. // Stability: Development
  1085. //
  1086. // Examples: "https://sqs.us-east-1.amazonaws.com/123456789012/MyQueue"
  1087. AWSSQSQueueURLKey = attribute.Key("aws.sqs.queue.url")
  1088. // AWSStepFunctionsActivityARNKey is the attribute Key conforming to the
  1089. // "aws.step_functions.activity.arn" semantic conventions. It represents the ARN
  1090. // of the AWS Step Functions Activity.
  1091. //
  1092. // Type: string
  1093. // RequirementLevel: Recommended
  1094. // Stability: Development
  1095. //
  1096. // Examples: "arn:aws:states:us-east-1:123456789012:activity:get-greeting"
  1097. AWSStepFunctionsActivityARNKey = attribute.Key("aws.step_functions.activity.arn")
  1098. // AWSStepFunctionsStateMachineARNKey is the attribute Key conforming to the
  1099. // "aws.step_functions.state_machine.arn" semantic conventions. It represents
  1100. // the ARN of the AWS Step Functions State Machine.
  1101. //
  1102. // Type: string
  1103. // RequirementLevel: Recommended
  1104. // Stability: Development
  1105. //
  1106. // Examples:
  1107. // "arn:aws:states:us-east-1:123456789012:stateMachine:myStateMachine:1"
  1108. AWSStepFunctionsStateMachineARNKey = attribute.Key("aws.step_functions.state_machine.arn")
  1109. )
  1110. // AWSBedrockGuardrailID returns an attribute KeyValue conforming to the
  1111. // "aws.bedrock.guardrail.id" semantic conventions. It represents the unique
  1112. // identifier of the AWS Bedrock Guardrail. A [guardrail] helps safeguard and
  1113. // prevent unwanted behavior from model responses or user messages.
  1114. //
  1115. // [guardrail]: https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html
  1116. func AWSBedrockGuardrailID(val string) attribute.KeyValue {
  1117. return AWSBedrockGuardrailIDKey.String(val)
  1118. }
  1119. // AWSBedrockKnowledgeBaseID returns an attribute KeyValue conforming to the
  1120. // "aws.bedrock.knowledge_base.id" semantic conventions. It represents the unique
  1121. // identifier of the AWS Bedrock Knowledge base. A [knowledge base] is a bank of
  1122. // information that can be queried by models to generate more relevant responses
  1123. // and augment prompts.
  1124. //
  1125. // [knowledge base]: https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base.html
  1126. func AWSBedrockKnowledgeBaseID(val string) attribute.KeyValue {
  1127. return AWSBedrockKnowledgeBaseIDKey.String(val)
  1128. }
  1129. // AWSDynamoDBAttributeDefinitions returns an attribute KeyValue conforming to
  1130. // the "aws.dynamodb.attribute_definitions" semantic conventions. It represents
  1131. // the JSON-serialized value of each item in the `AttributeDefinitions` request
  1132. // field.
  1133. func AWSDynamoDBAttributeDefinitions(val ...string) attribute.KeyValue {
  1134. return AWSDynamoDBAttributeDefinitionsKey.StringSlice(val)
  1135. }
  1136. // AWSDynamoDBAttributesToGet returns an attribute KeyValue conforming to the
  1137. // "aws.dynamodb.attributes_to_get" semantic conventions. It represents the value
  1138. // of the `AttributesToGet` request parameter.
  1139. func AWSDynamoDBAttributesToGet(val ...string) attribute.KeyValue {
  1140. return AWSDynamoDBAttributesToGetKey.StringSlice(val)
  1141. }
  1142. // AWSDynamoDBConsistentRead returns an attribute KeyValue conforming to the
  1143. // "aws.dynamodb.consistent_read" semantic conventions. It represents the value
  1144. // of the `ConsistentRead` request parameter.
  1145. func AWSDynamoDBConsistentRead(val bool) attribute.KeyValue {
  1146. return AWSDynamoDBConsistentReadKey.Bool(val)
  1147. }
  1148. // AWSDynamoDBConsumedCapacity returns an attribute KeyValue conforming to the
  1149. // "aws.dynamodb.consumed_capacity" semantic conventions. It represents the
  1150. // JSON-serialized value of each item in the `ConsumedCapacity` response field.
  1151. func AWSDynamoDBConsumedCapacity(val ...string) attribute.KeyValue {
  1152. return AWSDynamoDBConsumedCapacityKey.StringSlice(val)
  1153. }
  1154. // AWSDynamoDBCount returns an attribute KeyValue conforming to the
  1155. // "aws.dynamodb.count" semantic conventions. It represents the value of the
  1156. // `Count` response parameter.
  1157. func AWSDynamoDBCount(val int) attribute.KeyValue {
  1158. return AWSDynamoDBCountKey.Int(val)
  1159. }
  1160. // AWSDynamoDBExclusiveStartTable returns an attribute KeyValue conforming to the
  1161. // "aws.dynamodb.exclusive_start_table" semantic conventions. It represents the
  1162. // value of the `ExclusiveStartTableName` request parameter.
  1163. func AWSDynamoDBExclusiveStartTable(val string) attribute.KeyValue {
  1164. return AWSDynamoDBExclusiveStartTableKey.String(val)
  1165. }
  1166. // AWSDynamoDBGlobalSecondaryIndexUpdates returns an attribute KeyValue
  1167. // conforming to the "aws.dynamodb.global_secondary_index_updates" semantic
  1168. // conventions. It represents the JSON-serialized value of each item in the
  1169. // `GlobalSecondaryIndexUpdates` request field.
  1170. func AWSDynamoDBGlobalSecondaryIndexUpdates(val ...string) attribute.KeyValue {
  1171. return AWSDynamoDBGlobalSecondaryIndexUpdatesKey.StringSlice(val)
  1172. }
  1173. // AWSDynamoDBGlobalSecondaryIndexes returns an attribute KeyValue conforming to
  1174. // the "aws.dynamodb.global_secondary_indexes" semantic conventions. It
  1175. // represents the JSON-serialized value of each item of the
  1176. // `GlobalSecondaryIndexes` request field.
  1177. func AWSDynamoDBGlobalSecondaryIndexes(val ...string) attribute.KeyValue {
  1178. return AWSDynamoDBGlobalSecondaryIndexesKey.StringSlice(val)
  1179. }
  1180. // AWSDynamoDBIndexName returns an attribute KeyValue conforming to the
  1181. // "aws.dynamodb.index_name" semantic conventions. It represents the value of the
  1182. // `IndexName` request parameter.
  1183. func AWSDynamoDBIndexName(val string) attribute.KeyValue {
  1184. return AWSDynamoDBIndexNameKey.String(val)
  1185. }
  1186. // AWSDynamoDBItemCollectionMetrics returns an attribute KeyValue conforming to
  1187. // the "aws.dynamodb.item_collection_metrics" semantic conventions. It represents
  1188. // the JSON-serialized value of the `ItemCollectionMetrics` response field.
  1189. func AWSDynamoDBItemCollectionMetrics(val string) attribute.KeyValue {
  1190. return AWSDynamoDBItemCollectionMetricsKey.String(val)
  1191. }
  1192. // AWSDynamoDBLimit returns an attribute KeyValue conforming to the
  1193. // "aws.dynamodb.limit" semantic conventions. It represents the value of the
  1194. // `Limit` request parameter.
  1195. func AWSDynamoDBLimit(val int) attribute.KeyValue {
  1196. return AWSDynamoDBLimitKey.Int(val)
  1197. }
  1198. // AWSDynamoDBLocalSecondaryIndexes returns an attribute KeyValue conforming to
  1199. // the "aws.dynamodb.local_secondary_indexes" semantic conventions. It represents
  1200. // the JSON-serialized value of each item of the `LocalSecondaryIndexes` request
  1201. // field.
  1202. func AWSDynamoDBLocalSecondaryIndexes(val ...string) attribute.KeyValue {
  1203. return AWSDynamoDBLocalSecondaryIndexesKey.StringSlice(val)
  1204. }
  1205. // AWSDynamoDBProjection returns an attribute KeyValue conforming to the
  1206. // "aws.dynamodb.projection" semantic conventions. It represents the value of the
  1207. // `ProjectionExpression` request parameter.
  1208. func AWSDynamoDBProjection(val string) attribute.KeyValue {
  1209. return AWSDynamoDBProjectionKey.String(val)
  1210. }
  1211. // AWSDynamoDBProvisionedReadCapacity returns an attribute KeyValue conforming to
  1212. // the "aws.dynamodb.provisioned_read_capacity" semantic conventions. It
  1213. // represents the value of the `ProvisionedThroughput.ReadCapacityUnits` request
  1214. // parameter.
  1215. func AWSDynamoDBProvisionedReadCapacity(val float64) attribute.KeyValue {
  1216. return AWSDynamoDBProvisionedReadCapacityKey.Float64(val)
  1217. }
  1218. // AWSDynamoDBProvisionedWriteCapacity returns an attribute KeyValue conforming
  1219. // to the "aws.dynamodb.provisioned_write_capacity" semantic conventions. It
  1220. // represents the value of the `ProvisionedThroughput.WriteCapacityUnits` request
  1221. // parameter.
  1222. func AWSDynamoDBProvisionedWriteCapacity(val float64) attribute.KeyValue {
  1223. return AWSDynamoDBProvisionedWriteCapacityKey.Float64(val)
  1224. }
  1225. // AWSDynamoDBScanForward returns an attribute KeyValue conforming to the
  1226. // "aws.dynamodb.scan_forward" semantic conventions. It represents the value of
  1227. // the `ScanIndexForward` request parameter.
  1228. func AWSDynamoDBScanForward(val bool) attribute.KeyValue {
  1229. return AWSDynamoDBScanForwardKey.Bool(val)
  1230. }
  1231. // AWSDynamoDBScannedCount returns an attribute KeyValue conforming to the
  1232. // "aws.dynamodb.scanned_count" semantic conventions. It represents the value of
  1233. // the `ScannedCount` response parameter.
  1234. func AWSDynamoDBScannedCount(val int) attribute.KeyValue {
  1235. return AWSDynamoDBScannedCountKey.Int(val)
  1236. }
  1237. // AWSDynamoDBSegment returns an attribute KeyValue conforming to the
  1238. // "aws.dynamodb.segment" semantic conventions. It represents the value of the
  1239. // `Segment` request parameter.
  1240. func AWSDynamoDBSegment(val int) attribute.KeyValue {
  1241. return AWSDynamoDBSegmentKey.Int(val)
  1242. }
  1243. // AWSDynamoDBSelect returns an attribute KeyValue conforming to the
  1244. // "aws.dynamodb.select" semantic conventions. It represents the value of the
  1245. // `Select` request parameter.
  1246. func AWSDynamoDBSelect(val string) attribute.KeyValue {
  1247. return AWSDynamoDBSelectKey.String(val)
  1248. }
  1249. // AWSDynamoDBTableCount returns an attribute KeyValue conforming to the
  1250. // "aws.dynamodb.table_count" semantic conventions. It represents the number of
  1251. // items in the `TableNames` response parameter.
  1252. func AWSDynamoDBTableCount(val int) attribute.KeyValue {
  1253. return AWSDynamoDBTableCountKey.Int(val)
  1254. }
  1255. // AWSDynamoDBTableNames returns an attribute KeyValue conforming to the
  1256. // "aws.dynamodb.table_names" semantic conventions. It represents the keys in the
  1257. // `RequestItems` object field.
  1258. func AWSDynamoDBTableNames(val ...string) attribute.KeyValue {
  1259. return AWSDynamoDBTableNamesKey.StringSlice(val)
  1260. }
  1261. // AWSDynamoDBTotalSegments returns an attribute KeyValue conforming to the
  1262. // "aws.dynamodb.total_segments" semantic conventions. It represents the value of
  1263. // the `TotalSegments` request parameter.
  1264. func AWSDynamoDBTotalSegments(val int) attribute.KeyValue {
  1265. return AWSDynamoDBTotalSegmentsKey.Int(val)
  1266. }
  1267. // AWSECSClusterARN returns an attribute KeyValue conforming to the
  1268. // "aws.ecs.cluster.arn" semantic conventions. It represents the ARN of an
  1269. // [ECS cluster].
  1270. //
  1271. // [ECS cluster]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html
  1272. func AWSECSClusterARN(val string) attribute.KeyValue {
  1273. return AWSECSClusterARNKey.String(val)
  1274. }
  1275. // AWSECSContainerARN returns an attribute KeyValue conforming to the
  1276. // "aws.ecs.container.arn" semantic conventions. It represents the Amazon
  1277. // Resource Name (ARN) of an [ECS container instance].
  1278. //
  1279. // [ECS container instance]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html
  1280. func AWSECSContainerARN(val string) attribute.KeyValue {
  1281. return AWSECSContainerARNKey.String(val)
  1282. }
  1283. // AWSECSTaskARN returns an attribute KeyValue conforming to the
  1284. // "aws.ecs.task.arn" semantic conventions. It represents the ARN of a running
  1285. // [ECS task].
  1286. //
  1287. // [ECS task]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids
  1288. func AWSECSTaskARN(val string) attribute.KeyValue {
  1289. return AWSECSTaskARNKey.String(val)
  1290. }
  1291. // AWSECSTaskFamily returns an attribute KeyValue conforming to the
  1292. // "aws.ecs.task.family" semantic conventions. It represents the family name of
  1293. // the [ECS task definition] used to create the ECS task.
  1294. //
  1295. // [ECS task definition]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html
  1296. func AWSECSTaskFamily(val string) attribute.KeyValue {
  1297. return AWSECSTaskFamilyKey.String(val)
  1298. }
  1299. // AWSECSTaskID returns an attribute KeyValue conforming to the "aws.ecs.task.id"
  1300. // semantic conventions. It represents the ID of a running ECS task. The ID MUST
  1301. // be extracted from `task.arn`.
  1302. func AWSECSTaskID(val string) attribute.KeyValue {
  1303. return AWSECSTaskIDKey.String(val)
  1304. }
  1305. // AWSECSTaskRevision returns an attribute KeyValue conforming to the
  1306. // "aws.ecs.task.revision" semantic conventions. It represents the revision for
  1307. // the task definition used to create the ECS task.
  1308. func AWSECSTaskRevision(val string) attribute.KeyValue {
  1309. return AWSECSTaskRevisionKey.String(val)
  1310. }
  1311. // AWSEKSClusterARN returns an attribute KeyValue conforming to the
  1312. // "aws.eks.cluster.arn" semantic conventions. It represents the ARN of an EKS
  1313. // cluster.
  1314. func AWSEKSClusterARN(val string) attribute.KeyValue {
  1315. return AWSEKSClusterARNKey.String(val)
  1316. }
  1317. // AWSExtendedRequestID returns an attribute KeyValue conforming to the
  1318. // "aws.extended_request_id" semantic conventions. It represents the AWS extended
  1319. // request ID as returned in the response header `x-amz-id-2`.
  1320. func AWSExtendedRequestID(val string) attribute.KeyValue {
  1321. return AWSExtendedRequestIDKey.String(val)
  1322. }
  1323. // AWSKinesisStreamName returns an attribute KeyValue conforming to the
  1324. // "aws.kinesis.stream_name" semantic conventions. It represents the name of the
  1325. // AWS Kinesis [stream] the request refers to. Corresponds to the `--stream-name`
  1326. // parameter of the Kinesis [describe-stream] operation.
  1327. //
  1328. // [stream]: https://docs.aws.amazon.com/streams/latest/dev/introduction.html
  1329. // [describe-stream]: https://docs.aws.amazon.com/cli/latest/reference/kinesis/describe-stream.html
  1330. func AWSKinesisStreamName(val string) attribute.KeyValue {
  1331. return AWSKinesisStreamNameKey.String(val)
  1332. }
  1333. // AWSLambdaInvokedARN returns an attribute KeyValue conforming to the
  1334. // "aws.lambda.invoked_arn" semantic conventions. It represents the full invoked
  1335. // ARN as provided on the `Context` passed to the function (
  1336. // `Lambda-Runtime-Invoked-Function-Arn` header on the `/runtime/invocation/next`
  1337. // applicable).
  1338. func AWSLambdaInvokedARN(val string) attribute.KeyValue {
  1339. return AWSLambdaInvokedARNKey.String(val)
  1340. }
  1341. // AWSLambdaResourceMappingID returns an attribute KeyValue conforming to the
  1342. // "aws.lambda.resource_mapping.id" semantic conventions. It represents the UUID
  1343. // of the [AWS Lambda EvenSource Mapping]. An event source is mapped to a lambda
  1344. // function. It's contents are read by Lambda and used to trigger a function.
  1345. // This isn't available in the lambda execution context or the lambda runtime
  1346. // environtment. This is going to be populated by the AWS SDK for each language
  1347. // when that UUID is present. Some of these operations are
  1348. // Create/Delete/Get/List/Update EventSourceMapping.
  1349. //
  1350. // [AWS Lambda EvenSource Mapping]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html
  1351. func AWSLambdaResourceMappingID(val string) attribute.KeyValue {
  1352. return AWSLambdaResourceMappingIDKey.String(val)
  1353. }
  1354. // AWSLogGroupARNs returns an attribute KeyValue conforming to the
  1355. // "aws.log.group.arns" semantic conventions. It represents the Amazon Resource
  1356. // Name(s) (ARN) of the AWS log group(s).
  1357. func AWSLogGroupARNs(val ...string) attribute.KeyValue {
  1358. return AWSLogGroupARNsKey.StringSlice(val)
  1359. }
  1360. // AWSLogGroupNames returns an attribute KeyValue conforming to the
  1361. // "aws.log.group.names" semantic conventions. It represents the name(s) of the
  1362. // AWS log group(s) an application is writing to.
  1363. func AWSLogGroupNames(val ...string) attribute.KeyValue {
  1364. return AWSLogGroupNamesKey.StringSlice(val)
  1365. }
  1366. // AWSLogStreamARNs returns an attribute KeyValue conforming to the
  1367. // "aws.log.stream.arns" semantic conventions. It represents the ARN(s) of the
  1368. // AWS log stream(s).
  1369. func AWSLogStreamARNs(val ...string) attribute.KeyValue {
  1370. return AWSLogStreamARNsKey.StringSlice(val)
  1371. }
  1372. // AWSLogStreamNames returns an attribute KeyValue conforming to the
  1373. // "aws.log.stream.names" semantic conventions. It represents the name(s) of the
  1374. // AWS log stream(s) an application is writing to.
  1375. func AWSLogStreamNames(val ...string) attribute.KeyValue {
  1376. return AWSLogStreamNamesKey.StringSlice(val)
  1377. }
  1378. // AWSRequestID returns an attribute KeyValue conforming to the "aws.request_id"
  1379. // semantic conventions. It represents the AWS request ID as returned in the
  1380. // response headers `x-amzn-requestid`, `x-amzn-request-id` or `x-amz-request-id`
  1381. // .
  1382. func AWSRequestID(val string) attribute.KeyValue {
  1383. return AWSRequestIDKey.String(val)
  1384. }
  1385. // AWSS3Bucket returns an attribute KeyValue conforming to the "aws.s3.bucket"
  1386. // semantic conventions. It represents the S3 bucket name the request refers to.
  1387. // Corresponds to the `--bucket` parameter of the [S3 API] operations.
  1388. //
  1389. // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
  1390. func AWSS3Bucket(val string) attribute.KeyValue {
  1391. return AWSS3BucketKey.String(val)
  1392. }
  1393. // AWSS3CopySource returns an attribute KeyValue conforming to the
  1394. // "aws.s3.copy_source" semantic conventions. It represents the source object (in
  1395. // the form `bucket`/`key`) for the copy operation.
  1396. func AWSS3CopySource(val string) attribute.KeyValue {
  1397. return AWSS3CopySourceKey.String(val)
  1398. }
  1399. // AWSS3Delete returns an attribute KeyValue conforming to the "aws.s3.delete"
  1400. // semantic conventions. It represents the delete request container that
  1401. // specifies the objects to be deleted.
  1402. func AWSS3Delete(val string) attribute.KeyValue {
  1403. return AWSS3DeleteKey.String(val)
  1404. }
  1405. // AWSS3Key returns an attribute KeyValue conforming to the "aws.s3.key" semantic
  1406. // conventions. It represents the S3 object key the request refers to.
  1407. // Corresponds to the `--key` parameter of the [S3 API] operations.
  1408. //
  1409. // [S3 API]: https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html
  1410. func AWSS3Key(val string) attribute.KeyValue {
  1411. return AWSS3KeyKey.String(val)
  1412. }
  1413. // AWSS3PartNumber returns an attribute KeyValue conforming to the
  1414. // "aws.s3.part_number" semantic conventions. It represents the part number of
  1415. // the part being uploaded in a multipart-upload operation. This is a positive
  1416. // integer between 1 and 10,000.
  1417. func AWSS3PartNumber(val int) attribute.KeyValue {
  1418. return AWSS3PartNumberKey.Int(val)
  1419. }
  1420. // AWSS3UploadID returns an attribute KeyValue conforming to the
  1421. // "aws.s3.upload_id" semantic conventions. It represents the upload ID that
  1422. // identifies the multipart upload.
  1423. func AWSS3UploadID(val string) attribute.KeyValue {
  1424. return AWSS3UploadIDKey.String(val)
  1425. }
  1426. // AWSSecretsmanagerSecretARN returns an attribute KeyValue conforming to the
  1427. // "aws.secretsmanager.secret.arn" semantic conventions. It represents the ARN of
  1428. // the Secret stored in the Secrets Mangger.
  1429. func AWSSecretsmanagerSecretARN(val string) attribute.KeyValue {
  1430. return AWSSecretsmanagerSecretARNKey.String(val)
  1431. }
  1432. // AWSSNSTopicARN returns an attribute KeyValue conforming to the
  1433. // "aws.sns.topic.arn" semantic conventions. It represents the ARN of the AWS SNS
  1434. // Topic. An Amazon SNS [topic] is a logical access point that acts as a
  1435. // communication channel.
  1436. //
  1437. // [topic]: https://docs.aws.amazon.com/sns/latest/dg/sns-create-topic.html
  1438. func AWSSNSTopicARN(val string) attribute.KeyValue {
  1439. return AWSSNSTopicARNKey.String(val)
  1440. }
  1441. // AWSSQSQueueURL returns an attribute KeyValue conforming to the
  1442. // "aws.sqs.queue.url" semantic conventions. It represents the URL of the AWS SQS
  1443. // Queue. It's a unique identifier for a queue in Amazon Simple Queue Service
  1444. // (SQS) and is used to access the queue and perform actions on it.
  1445. func AWSSQSQueueURL(val string) attribute.KeyValue {
  1446. return AWSSQSQueueURLKey.String(val)
  1447. }
  1448. // AWSStepFunctionsActivityARN returns an attribute KeyValue conforming to the
  1449. // "aws.step_functions.activity.arn" semantic conventions. It represents the ARN
  1450. // of the AWS Step Functions Activity.
  1451. func AWSStepFunctionsActivityARN(val string) attribute.KeyValue {
  1452. return AWSStepFunctionsActivityARNKey.String(val)
  1453. }
  1454. // AWSStepFunctionsStateMachineARN returns an attribute KeyValue conforming to
  1455. // the "aws.step_functions.state_machine.arn" semantic conventions. It represents
  1456. // the ARN of the AWS Step Functions State Machine.
  1457. func AWSStepFunctionsStateMachineARN(val string) attribute.KeyValue {
  1458. return AWSStepFunctionsStateMachineARNKey.String(val)
  1459. }
  1460. // Enum values for aws.ecs.launchtype
  1461. var (
  1462. // Amazon EC2
  1463. // Stability: development
  1464. AWSECSLaunchtypeEC2 = AWSECSLaunchtypeKey.String("ec2")
  1465. // Amazon Fargate
  1466. // Stability: development
  1467. AWSECSLaunchtypeFargate = AWSECSLaunchtypeKey.String("fargate")
  1468. )
  1469. // Namespace: azure
  1470. const (
  1471. // AzureClientIDKey is the attribute Key conforming to the "azure.client.id"
  1472. // semantic conventions. It represents the unique identifier of the client
  1473. // instance.
  1474. //
  1475. // Type: string
  1476. // RequirementLevel: Recommended
  1477. // Stability: Development
  1478. //
  1479. // Examples: "3ba4827d-4422-483f-b59f-85b74211c11d", "storage-client-1"
  1480. AzureClientIDKey = attribute.Key("azure.client.id")
  1481. // AzureCosmosDBConnectionModeKey is the attribute Key conforming to the
  1482. // "azure.cosmosdb.connection.mode" semantic conventions. It represents the
  1483. // cosmos client connection mode.
  1484. //
  1485. // Type: Enum
  1486. // RequirementLevel: Recommended
  1487. // Stability: Development
  1488. //
  1489. // Examples:
  1490. AzureCosmosDBConnectionModeKey = attribute.Key("azure.cosmosdb.connection.mode")
  1491. // AzureCosmosDBConsistencyLevelKey is the attribute Key conforming to the
  1492. // "azure.cosmosdb.consistency.level" semantic conventions. It represents the
  1493. // account or request [consistency level].
  1494. //
  1495. // Type: Enum
  1496. // RequirementLevel: Recommended
  1497. // Stability: Development
  1498. //
  1499. // Examples: "Eventual", "ConsistentPrefix", "BoundedStaleness", "Strong",
  1500. // "Session"
  1501. //
  1502. // [consistency level]: https://learn.microsoft.com/azure/cosmos-db/consistency-levels
  1503. AzureCosmosDBConsistencyLevelKey = attribute.Key("azure.cosmosdb.consistency.level")
  1504. // AzureCosmosDBOperationContactedRegionsKey is the attribute Key conforming to
  1505. // the "azure.cosmosdb.operation.contacted_regions" semantic conventions. It
  1506. // represents the list of regions contacted during operation in the order that
  1507. // they were contacted. If there is more than one region listed, it indicates
  1508. // that the operation was performed on multiple regions i.e. cross-regional
  1509. // call.
  1510. //
  1511. // Type: string[]
  1512. // RequirementLevel: Recommended
  1513. // Stability: Development
  1514. //
  1515. // Examples: "North Central US", "Australia East", "Australia Southeast"
  1516. // Note: Region name matches the format of `displayName` in [Azure Location API]
  1517. //
  1518. // [Azure Location API]: https://learn.microsoft.com/rest/api/subscription/subscriptions/list-locations?view=rest-subscription-2021-10-01&tabs=HTTP#location
  1519. AzureCosmosDBOperationContactedRegionsKey = attribute.Key("azure.cosmosdb.operation.contacted_regions")
  1520. // AzureCosmosDBOperationRequestChargeKey is the attribute Key conforming to the
  1521. // "azure.cosmosdb.operation.request_charge" semantic conventions. It represents
  1522. // the number of request units consumed by the operation.
  1523. //
  1524. // Type: double
  1525. // RequirementLevel: Recommended
  1526. // Stability: Development
  1527. //
  1528. // Examples: 46.18, 1.0
  1529. AzureCosmosDBOperationRequestChargeKey = attribute.Key("azure.cosmosdb.operation.request_charge")
  1530. // AzureCosmosDBRequestBodySizeKey is the attribute Key conforming to the
  1531. // "azure.cosmosdb.request.body.size" semantic conventions. It represents the
  1532. // request payload size in bytes.
  1533. //
  1534. // Type: int
  1535. // RequirementLevel: Recommended
  1536. // Stability: Development
  1537. //
  1538. // Examples:
  1539. AzureCosmosDBRequestBodySizeKey = attribute.Key("azure.cosmosdb.request.body.size")
  1540. // AzureCosmosDBResponseSubStatusCodeKey is the attribute Key conforming to the
  1541. // "azure.cosmosdb.response.sub_status_code" semantic conventions. It represents
  1542. // the cosmos DB sub status code.
  1543. //
  1544. // Type: int
  1545. // RequirementLevel: Recommended
  1546. // Stability: Development
  1547. //
  1548. // Examples: 1000, 1002
  1549. AzureCosmosDBResponseSubStatusCodeKey = attribute.Key("azure.cosmosdb.response.sub_status_code")
  1550. // AzureResourceProviderNamespaceKey is the attribute Key conforming to the
  1551. // "azure.resource_provider.namespace" semantic conventions. It represents the
  1552. // [Azure Resource Provider Namespace] as recognized by the client.
  1553. //
  1554. // Type: string
  1555. // RequirementLevel: Recommended
  1556. // Stability: Development
  1557. //
  1558. // Examples: "Microsoft.Storage", "Microsoft.KeyVault", "Microsoft.ServiceBus"
  1559. //
  1560. // [Azure Resource Provider Namespace]: https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers
  1561. AzureResourceProviderNamespaceKey = attribute.Key("azure.resource_provider.namespace")
  1562. // AzureServiceRequestIDKey is the attribute Key conforming to the
  1563. // "azure.service.request.id" semantic conventions. It represents the unique
  1564. // identifier of the service request. It's generated by the Azure service and
  1565. // returned with the response.
  1566. //
  1567. // Type: string
  1568. // RequirementLevel: Recommended
  1569. // Stability: Development
  1570. //
  1571. // Examples: "00000000-0000-0000-0000-000000000000"
  1572. AzureServiceRequestIDKey = attribute.Key("azure.service.request.id")
  1573. )
  1574. // AzureClientID returns an attribute KeyValue conforming to the
  1575. // "azure.client.id" semantic conventions. It represents the unique identifier of
  1576. // the client instance.
  1577. func AzureClientID(val string) attribute.KeyValue {
  1578. return AzureClientIDKey.String(val)
  1579. }
  1580. // AzureCosmosDBOperationContactedRegions returns an attribute KeyValue
  1581. // conforming to the "azure.cosmosdb.operation.contacted_regions" semantic
  1582. // conventions. It represents the list of regions contacted during operation in
  1583. // the order that they were contacted. If there is more than one region listed,
  1584. // it indicates that the operation was performed on multiple regions i.e.
  1585. // cross-regional call.
  1586. func AzureCosmosDBOperationContactedRegions(val ...string) attribute.KeyValue {
  1587. return AzureCosmosDBOperationContactedRegionsKey.StringSlice(val)
  1588. }
  1589. // AzureCosmosDBOperationRequestCharge returns an attribute KeyValue conforming
  1590. // to the "azure.cosmosdb.operation.request_charge" semantic conventions. It
  1591. // represents the number of request units consumed by the operation.
  1592. func AzureCosmosDBOperationRequestCharge(val float64) attribute.KeyValue {
  1593. return AzureCosmosDBOperationRequestChargeKey.Float64(val)
  1594. }
  1595. // AzureCosmosDBRequestBodySize returns an attribute KeyValue conforming to the
  1596. // "azure.cosmosdb.request.body.size" semantic conventions. It represents the
  1597. // request payload size in bytes.
  1598. func AzureCosmosDBRequestBodySize(val int) attribute.KeyValue {
  1599. return AzureCosmosDBRequestBodySizeKey.Int(val)
  1600. }
  1601. // AzureCosmosDBResponseSubStatusCode returns an attribute KeyValue conforming to
  1602. // the "azure.cosmosdb.response.sub_status_code" semantic conventions. It
  1603. // represents the cosmos DB sub status code.
  1604. func AzureCosmosDBResponseSubStatusCode(val int) attribute.KeyValue {
  1605. return AzureCosmosDBResponseSubStatusCodeKey.Int(val)
  1606. }
  1607. // AzureResourceProviderNamespace returns an attribute KeyValue conforming to the
  1608. // "azure.resource_provider.namespace" semantic conventions. It represents the
  1609. // [Azure Resource Provider Namespace] as recognized by the client.
  1610. //
  1611. // [Azure Resource Provider Namespace]: https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers
  1612. func AzureResourceProviderNamespace(val string) attribute.KeyValue {
  1613. return AzureResourceProviderNamespaceKey.String(val)
  1614. }
  1615. // AzureServiceRequestID returns an attribute KeyValue conforming to the
  1616. // "azure.service.request.id" semantic conventions. It represents the unique
  1617. // identifier of the service request. It's generated by the Azure service and
  1618. // returned with the response.
  1619. func AzureServiceRequestID(val string) attribute.KeyValue {
  1620. return AzureServiceRequestIDKey.String(val)
  1621. }
  1622. // Enum values for azure.cosmosdb.connection.mode
  1623. var (
  1624. // Gateway (HTTP) connection.
  1625. // Stability: development
  1626. AzureCosmosDBConnectionModeGateway = AzureCosmosDBConnectionModeKey.String("gateway")
  1627. // Direct connection.
  1628. // Stability: development
  1629. AzureCosmosDBConnectionModeDirect = AzureCosmosDBConnectionModeKey.String("direct")
  1630. )
  1631. // Enum values for azure.cosmosdb.consistency.level
  1632. var (
  1633. // Strong
  1634. // Stability: development
  1635. AzureCosmosDBConsistencyLevelStrong = AzureCosmosDBConsistencyLevelKey.String("Strong")
  1636. // Bounded Staleness
  1637. // Stability: development
  1638. AzureCosmosDBConsistencyLevelBoundedStaleness = AzureCosmosDBConsistencyLevelKey.String("BoundedStaleness")
  1639. // Session
  1640. // Stability: development
  1641. AzureCosmosDBConsistencyLevelSession = AzureCosmosDBConsistencyLevelKey.String("Session")
  1642. // Eventual
  1643. // Stability: development
  1644. AzureCosmosDBConsistencyLevelEventual = AzureCosmosDBConsistencyLevelKey.String("Eventual")
  1645. // Consistent Prefix
  1646. // Stability: development
  1647. AzureCosmosDBConsistencyLevelConsistentPrefix = AzureCosmosDBConsistencyLevelKey.String("ConsistentPrefix")
  1648. )
  1649. // Namespace: browser
  1650. const (
  1651. // BrowserBrandsKey is the attribute Key conforming to the "browser.brands"
  1652. // semantic conventions. It represents the array of brand name and version
  1653. // separated by a space.
  1654. //
  1655. // Type: string[]
  1656. // RequirementLevel: Recommended
  1657. // Stability: Development
  1658. //
  1659. // Examples: " Not A;Brand 99", "Chromium 99", "Chrome 99"
  1660. // Note: This value is intended to be taken from the [UA client hints API] (
  1661. // `navigator.userAgentData.brands`).
  1662. //
  1663. // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface
  1664. BrowserBrandsKey = attribute.Key("browser.brands")
  1665. // BrowserLanguageKey is the attribute Key conforming to the "browser.language"
  1666. // semantic conventions. It represents the preferred language of the user using
  1667. // the browser.
  1668. //
  1669. // Type: string
  1670. // RequirementLevel: Recommended
  1671. // Stability: Development
  1672. //
  1673. // Examples: "en", "en-US", "fr", "fr-FR"
  1674. // Note: This value is intended to be taken from the Navigator API
  1675. // `navigator.language`.
  1676. BrowserLanguageKey = attribute.Key("browser.language")
  1677. // BrowserMobileKey is the attribute Key conforming to the "browser.mobile"
  1678. // semantic conventions. It represents a boolean that is true if the browser is
  1679. // running on a mobile device.
  1680. //
  1681. // Type: boolean
  1682. // RequirementLevel: Recommended
  1683. // Stability: Development
  1684. //
  1685. // Examples:
  1686. // Note: This value is intended to be taken from the [UA client hints API] (
  1687. // `navigator.userAgentData.mobile`). If unavailable, this attribute SHOULD be
  1688. // left unset.
  1689. //
  1690. // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface
  1691. BrowserMobileKey = attribute.Key("browser.mobile")
  1692. // BrowserPlatformKey is the attribute Key conforming to the "browser.platform"
  1693. // semantic conventions. It represents the platform on which the browser is
  1694. // running.
  1695. //
  1696. // Type: string
  1697. // RequirementLevel: Recommended
  1698. // Stability: Development
  1699. //
  1700. // Examples: "Windows", "macOS", "Android"
  1701. // Note: This value is intended to be taken from the [UA client hints API] (
  1702. // `navigator.userAgentData.platform`). If unavailable, the legacy
  1703. // `navigator.platform` API SHOULD NOT be used instead and this attribute SHOULD
  1704. // be left unset in order for the values to be consistent.
  1705. // The list of possible values is defined in the
  1706. // [W3C User-Agent Client Hints specification]. Note that some (but not all) of
  1707. // these values can overlap with values in the
  1708. // [`os.type` and `os.name` attributes]. However, for consistency, the values in
  1709. // the `browser.platform` attribute should capture the exact value that the user
  1710. // agent provides.
  1711. //
  1712. // [UA client hints API]: https://wicg.github.io/ua-client-hints/#interface
  1713. // [W3C User-Agent Client Hints specification]: https://wicg.github.io/ua-client-hints/#sec-ch-ua-platform
  1714. // [`os.type` and `os.name` attributes]: ./os.md
  1715. BrowserPlatformKey = attribute.Key("browser.platform")
  1716. )
  1717. // BrowserBrands returns an attribute KeyValue conforming to the "browser.brands"
  1718. // semantic conventions. It represents the array of brand name and version
  1719. // separated by a space.
  1720. func BrowserBrands(val ...string) attribute.KeyValue {
  1721. return BrowserBrandsKey.StringSlice(val)
  1722. }
  1723. // BrowserLanguage returns an attribute KeyValue conforming to the
  1724. // "browser.language" semantic conventions. It represents the preferred language
  1725. // of the user using the browser.
  1726. func BrowserLanguage(val string) attribute.KeyValue {
  1727. return BrowserLanguageKey.String(val)
  1728. }
  1729. // BrowserMobile returns an attribute KeyValue conforming to the "browser.mobile"
  1730. // semantic conventions. It represents a boolean that is true if the browser is
  1731. // running on a mobile device.
  1732. func BrowserMobile(val bool) attribute.KeyValue {
  1733. return BrowserMobileKey.Bool(val)
  1734. }
  1735. // BrowserPlatform returns an attribute KeyValue conforming to the
  1736. // "browser.platform" semantic conventions. It represents the platform on which
  1737. // the browser is running.
  1738. func BrowserPlatform(val string) attribute.KeyValue {
  1739. return BrowserPlatformKey.String(val)
  1740. }
  1741. // Namespace: cassandra
  1742. const (
  1743. // CassandraConsistencyLevelKey is the attribute Key conforming to the
  1744. // "cassandra.consistency.level" semantic conventions. It represents the
  1745. // consistency level of the query. Based on consistency values from [CQL].
  1746. //
  1747. // Type: Enum
  1748. // RequirementLevel: Recommended
  1749. // Stability: Development
  1750. //
  1751. // Examples:
  1752. //
  1753. // [CQL]: https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html
  1754. CassandraConsistencyLevelKey = attribute.Key("cassandra.consistency.level")
  1755. // CassandraCoordinatorDCKey is the attribute Key conforming to the
  1756. // "cassandra.coordinator.dc" semantic conventions. It represents the data
  1757. // center of the coordinating node for a query.
  1758. //
  1759. // Type: string
  1760. // RequirementLevel: Recommended
  1761. // Stability: Development
  1762. //
  1763. // Examples: us-west-2
  1764. CassandraCoordinatorDCKey = attribute.Key("cassandra.coordinator.dc")
  1765. // CassandraCoordinatorIDKey is the attribute Key conforming to the
  1766. // "cassandra.coordinator.id" semantic conventions. It represents the ID of the
  1767. // coordinating node for a query.
  1768. //
  1769. // Type: string
  1770. // RequirementLevel: Recommended
  1771. // Stability: Development
  1772. //
  1773. // Examples: be13faa2-8574-4d71-926d-27f16cf8a7af
  1774. CassandraCoordinatorIDKey = attribute.Key("cassandra.coordinator.id")
  1775. // CassandraPageSizeKey is the attribute Key conforming to the
  1776. // "cassandra.page.size" semantic conventions. It represents the fetch size used
  1777. // for paging, i.e. how many rows will be returned at once.
  1778. //
  1779. // Type: int
  1780. // RequirementLevel: Recommended
  1781. // Stability: Development
  1782. //
  1783. // Examples: 5000
  1784. CassandraPageSizeKey = attribute.Key("cassandra.page.size")
  1785. // CassandraQueryIdempotentKey is the attribute Key conforming to the
  1786. // "cassandra.query.idempotent" semantic conventions. It represents the whether
  1787. // or not the query is idempotent.
  1788. //
  1789. // Type: boolean
  1790. // RequirementLevel: Recommended
  1791. // Stability: Development
  1792. //
  1793. // Examples:
  1794. CassandraQueryIdempotentKey = attribute.Key("cassandra.query.idempotent")
  1795. // CassandraSpeculativeExecutionCountKey is the attribute Key conforming to the
  1796. // "cassandra.speculative_execution.count" semantic conventions. It represents
  1797. // the number of times a query was speculatively executed. Not set or `0` if the
  1798. // query was not executed speculatively.
  1799. //
  1800. // Type: int
  1801. // RequirementLevel: Recommended
  1802. // Stability: Development
  1803. //
  1804. // Examples: 0, 2
  1805. CassandraSpeculativeExecutionCountKey = attribute.Key("cassandra.speculative_execution.count")
  1806. )
  1807. // CassandraCoordinatorDC returns an attribute KeyValue conforming to the
  1808. // "cassandra.coordinator.dc" semantic conventions. It represents the data center
  1809. // of the coordinating node for a query.
  1810. func CassandraCoordinatorDC(val string) attribute.KeyValue {
  1811. return CassandraCoordinatorDCKey.String(val)
  1812. }
  1813. // CassandraCoordinatorID returns an attribute KeyValue conforming to the
  1814. // "cassandra.coordinator.id" semantic conventions. It represents the ID of the
  1815. // coordinating node for a query.
  1816. func CassandraCoordinatorID(val string) attribute.KeyValue {
  1817. return CassandraCoordinatorIDKey.String(val)
  1818. }
  1819. // CassandraPageSize returns an attribute KeyValue conforming to the
  1820. // "cassandra.page.size" semantic conventions. It represents the fetch size used
  1821. // for paging, i.e. how many rows will be returned at once.
  1822. func CassandraPageSize(val int) attribute.KeyValue {
  1823. return CassandraPageSizeKey.Int(val)
  1824. }
  1825. // CassandraQueryIdempotent returns an attribute KeyValue conforming to the
  1826. // "cassandra.query.idempotent" semantic conventions. It represents the whether
  1827. // or not the query is idempotent.
  1828. func CassandraQueryIdempotent(val bool) attribute.KeyValue {
  1829. return CassandraQueryIdempotentKey.Bool(val)
  1830. }
  1831. // CassandraSpeculativeExecutionCount returns an attribute KeyValue conforming to
  1832. // the "cassandra.speculative_execution.count" semantic conventions. It
  1833. // represents the number of times a query was speculatively executed. Not set or
  1834. // `0` if the query was not executed speculatively.
  1835. func CassandraSpeculativeExecutionCount(val int) attribute.KeyValue {
  1836. return CassandraSpeculativeExecutionCountKey.Int(val)
  1837. }
  1838. // Enum values for cassandra.consistency.level
  1839. var (
  1840. // All
  1841. // Stability: development
  1842. CassandraConsistencyLevelAll = CassandraConsistencyLevelKey.String("all")
  1843. // Each Quorum
  1844. // Stability: development
  1845. CassandraConsistencyLevelEachQuorum = CassandraConsistencyLevelKey.String("each_quorum")
  1846. // Quorum
  1847. // Stability: development
  1848. CassandraConsistencyLevelQuorum = CassandraConsistencyLevelKey.String("quorum")
  1849. // Local Quorum
  1850. // Stability: development
  1851. CassandraConsistencyLevelLocalQuorum = CassandraConsistencyLevelKey.String("local_quorum")
  1852. // One
  1853. // Stability: development
  1854. CassandraConsistencyLevelOne = CassandraConsistencyLevelKey.String("one")
  1855. // Two
  1856. // Stability: development
  1857. CassandraConsistencyLevelTwo = CassandraConsistencyLevelKey.String("two")
  1858. // Three
  1859. // Stability: development
  1860. CassandraConsistencyLevelThree = CassandraConsistencyLevelKey.String("three")
  1861. // Local One
  1862. // Stability: development
  1863. CassandraConsistencyLevelLocalOne = CassandraConsistencyLevelKey.String("local_one")
  1864. // Any
  1865. // Stability: development
  1866. CassandraConsistencyLevelAny = CassandraConsistencyLevelKey.String("any")
  1867. // Serial
  1868. // Stability: development
  1869. CassandraConsistencyLevelSerial = CassandraConsistencyLevelKey.String("serial")
  1870. // Local Serial
  1871. // Stability: development
  1872. CassandraConsistencyLevelLocalSerial = CassandraConsistencyLevelKey.String("local_serial")
  1873. )
  1874. // Namespace: cicd
  1875. const (
  1876. // CICDPipelineActionNameKey is the attribute Key conforming to the
  1877. // "cicd.pipeline.action.name" semantic conventions. It represents the kind of
  1878. // action a pipeline run is performing.
  1879. //
  1880. // Type: Enum
  1881. // RequirementLevel: Recommended
  1882. // Stability: Development
  1883. //
  1884. // Examples: "BUILD", "RUN", "SYNC"
  1885. CICDPipelineActionNameKey = attribute.Key("cicd.pipeline.action.name")
  1886. // CICDPipelineNameKey is the attribute Key conforming to the
  1887. // "cicd.pipeline.name" semantic conventions. It represents the human readable
  1888. // name of the pipeline within a CI/CD system.
  1889. //
  1890. // Type: string
  1891. // RequirementLevel: Recommended
  1892. // Stability: Development
  1893. //
  1894. // Examples: "Build and Test", "Lint", "Deploy Go Project",
  1895. // "deploy_to_environment"
  1896. CICDPipelineNameKey = attribute.Key("cicd.pipeline.name")
  1897. // CICDPipelineResultKey is the attribute Key conforming to the
  1898. // "cicd.pipeline.result" semantic conventions. It represents the result of a
  1899. // pipeline run.
  1900. //
  1901. // Type: Enum
  1902. // RequirementLevel: Recommended
  1903. // Stability: Development
  1904. //
  1905. // Examples: "success", "failure", "timeout", "skipped"
  1906. CICDPipelineResultKey = attribute.Key("cicd.pipeline.result")
  1907. // CICDPipelineRunIDKey is the attribute Key conforming to the
  1908. // "cicd.pipeline.run.id" semantic conventions. It represents the unique
  1909. // identifier of a pipeline run within a CI/CD system.
  1910. //
  1911. // Type: string
  1912. // RequirementLevel: Recommended
  1913. // Stability: Development
  1914. //
  1915. // Examples: "120912"
  1916. CICDPipelineRunIDKey = attribute.Key("cicd.pipeline.run.id")
  1917. // CICDPipelineRunStateKey is the attribute Key conforming to the
  1918. // "cicd.pipeline.run.state" semantic conventions. It represents the pipeline
  1919. // run goes through these states during its lifecycle.
  1920. //
  1921. // Type: Enum
  1922. // RequirementLevel: Recommended
  1923. // Stability: Development
  1924. //
  1925. // Examples: "pending", "executing", "finalizing"
  1926. CICDPipelineRunStateKey = attribute.Key("cicd.pipeline.run.state")
  1927. // CICDPipelineRunURLFullKey is the attribute Key conforming to the
  1928. // "cicd.pipeline.run.url.full" semantic conventions. It represents the [URL] of
  1929. // the pipeline run, providing the complete address in order to locate and
  1930. // identify the pipeline run.
  1931. //
  1932. // Type: string
  1933. // RequirementLevel: Recommended
  1934. // Stability: Development
  1935. //
  1936. // Examples:
  1937. // "https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763?pr=1075"
  1938. //
  1939. // [URL]: https://wikipedia.org/wiki/URL
  1940. CICDPipelineRunURLFullKey = attribute.Key("cicd.pipeline.run.url.full")
  1941. // CICDPipelineTaskNameKey is the attribute Key conforming to the
  1942. // "cicd.pipeline.task.name" semantic conventions. It represents the human
  1943. // readable name of a task within a pipeline. Task here most closely aligns with
  1944. // a [computing process] in a pipeline. Other terms for tasks include commands,
  1945. // steps, and procedures.
  1946. //
  1947. // Type: string
  1948. // RequirementLevel: Recommended
  1949. // Stability: Development
  1950. //
  1951. // Examples: "Run GoLang Linter", "Go Build", "go-test", "deploy_binary"
  1952. //
  1953. // [computing process]: https://wikipedia.org/wiki/Pipeline_(computing)
  1954. CICDPipelineTaskNameKey = attribute.Key("cicd.pipeline.task.name")
  1955. // CICDPipelineTaskRunIDKey is the attribute Key conforming to the
  1956. // "cicd.pipeline.task.run.id" semantic conventions. It represents the unique
  1957. // identifier of a task run within a pipeline.
  1958. //
  1959. // Type: string
  1960. // RequirementLevel: Recommended
  1961. // Stability: Development
  1962. //
  1963. // Examples: "12097"
  1964. CICDPipelineTaskRunIDKey = attribute.Key("cicd.pipeline.task.run.id")
  1965. // CICDPipelineTaskRunResultKey is the attribute Key conforming to the
  1966. // "cicd.pipeline.task.run.result" semantic conventions. It represents the
  1967. // result of a task run.
  1968. //
  1969. // Type: Enum
  1970. // RequirementLevel: Recommended
  1971. // Stability: Development
  1972. //
  1973. // Examples: "success", "failure", "timeout", "skipped"
  1974. CICDPipelineTaskRunResultKey = attribute.Key("cicd.pipeline.task.run.result")
  1975. // CICDPipelineTaskRunURLFullKey is the attribute Key conforming to the
  1976. // "cicd.pipeline.task.run.url.full" semantic conventions. It represents the
  1977. // [URL] of the pipeline task run, providing the complete address in order to
  1978. // locate and identify the pipeline task run.
  1979. //
  1980. // Type: string
  1981. // RequirementLevel: Recommended
  1982. // Stability: Development
  1983. //
  1984. // Examples:
  1985. // "https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763/job/26920038674?pr=1075"
  1986. //
  1987. // [URL]: https://wikipedia.org/wiki/URL
  1988. CICDPipelineTaskRunURLFullKey = attribute.Key("cicd.pipeline.task.run.url.full")
  1989. // CICDPipelineTaskTypeKey is the attribute Key conforming to the
  1990. // "cicd.pipeline.task.type" semantic conventions. It represents the type of the
  1991. // task within a pipeline.
  1992. //
  1993. // Type: Enum
  1994. // RequirementLevel: Recommended
  1995. // Stability: Development
  1996. //
  1997. // Examples: "build", "test", "deploy"
  1998. CICDPipelineTaskTypeKey = attribute.Key("cicd.pipeline.task.type")
  1999. // CICDSystemComponentKey is the attribute Key conforming to the
  2000. // "cicd.system.component" semantic conventions. It represents the name of a
  2001. // component of the CICD system.
  2002. //
  2003. // Type: string
  2004. // RequirementLevel: Recommended
  2005. // Stability: Development
  2006. //
  2007. // Examples: "controller", "scheduler", "agent"
  2008. CICDSystemComponentKey = attribute.Key("cicd.system.component")
  2009. // CICDWorkerIDKey is the attribute Key conforming to the "cicd.worker.id"
  2010. // semantic conventions. It represents the unique identifier of a worker within
  2011. // a CICD system.
  2012. //
  2013. // Type: string
  2014. // RequirementLevel: Recommended
  2015. // Stability: Development
  2016. //
  2017. // Examples: "abc123", "10.0.1.2", "controller"
  2018. CICDWorkerIDKey = attribute.Key("cicd.worker.id")
  2019. // CICDWorkerNameKey is the attribute Key conforming to the "cicd.worker.name"
  2020. // semantic conventions. It represents the name of a worker within a CICD
  2021. // system.
  2022. //
  2023. // Type: string
  2024. // RequirementLevel: Recommended
  2025. // Stability: Development
  2026. //
  2027. // Examples: "agent-abc", "controller", "Ubuntu LTS"
  2028. CICDWorkerNameKey = attribute.Key("cicd.worker.name")
  2029. // CICDWorkerStateKey is the attribute Key conforming to the "cicd.worker.state"
  2030. // semantic conventions. It represents the state of a CICD worker / agent.
  2031. //
  2032. // Type: Enum
  2033. // RequirementLevel: Recommended
  2034. // Stability: Development
  2035. //
  2036. // Examples: "idle", "busy", "down"
  2037. CICDWorkerStateKey = attribute.Key("cicd.worker.state")
  2038. // CICDWorkerURLFullKey is the attribute Key conforming to the
  2039. // "cicd.worker.url.full" semantic conventions. It represents the [URL] of the
  2040. // worker, providing the complete address in order to locate and identify the
  2041. // worker.
  2042. //
  2043. // Type: string
  2044. // RequirementLevel: Recommended
  2045. // Stability: Development
  2046. //
  2047. // Examples: "https://cicd.example.org/worker/abc123"
  2048. //
  2049. // [URL]: https://wikipedia.org/wiki/URL
  2050. CICDWorkerURLFullKey = attribute.Key("cicd.worker.url.full")
  2051. )
  2052. // CICDPipelineName returns an attribute KeyValue conforming to the
  2053. // "cicd.pipeline.name" semantic conventions. It represents the human readable
  2054. // name of the pipeline within a CI/CD system.
  2055. func CICDPipelineName(val string) attribute.KeyValue {
  2056. return CICDPipelineNameKey.String(val)
  2057. }
  2058. // CICDPipelineRunID returns an attribute KeyValue conforming to the
  2059. // "cicd.pipeline.run.id" semantic conventions. It represents the unique
  2060. // identifier of a pipeline run within a CI/CD system.
  2061. func CICDPipelineRunID(val string) attribute.KeyValue {
  2062. return CICDPipelineRunIDKey.String(val)
  2063. }
  2064. // CICDPipelineRunURLFull returns an attribute KeyValue conforming to the
  2065. // "cicd.pipeline.run.url.full" semantic conventions. It represents the [URL] of
  2066. // the pipeline run, providing the complete address in order to locate and
  2067. // identify the pipeline run.
  2068. //
  2069. // [URL]: https://wikipedia.org/wiki/URL
  2070. func CICDPipelineRunURLFull(val string) attribute.KeyValue {
  2071. return CICDPipelineRunURLFullKey.String(val)
  2072. }
  2073. // CICDPipelineTaskName returns an attribute KeyValue conforming to the
  2074. // "cicd.pipeline.task.name" semantic conventions. It represents the human
  2075. // readable name of a task within a pipeline. Task here most closely aligns with
  2076. // a [computing process] in a pipeline. Other terms for tasks include commands,
  2077. // steps, and procedures.
  2078. //
  2079. // [computing process]: https://wikipedia.org/wiki/Pipeline_(computing)
  2080. func CICDPipelineTaskName(val string) attribute.KeyValue {
  2081. return CICDPipelineTaskNameKey.String(val)
  2082. }
  2083. // CICDPipelineTaskRunID returns an attribute KeyValue conforming to the
  2084. // "cicd.pipeline.task.run.id" semantic conventions. It represents the unique
  2085. // identifier of a task run within a pipeline.
  2086. func CICDPipelineTaskRunID(val string) attribute.KeyValue {
  2087. return CICDPipelineTaskRunIDKey.String(val)
  2088. }
  2089. // CICDPipelineTaskRunURLFull returns an attribute KeyValue conforming to the
  2090. // "cicd.pipeline.task.run.url.full" semantic conventions. It represents the
  2091. // [URL] of the pipeline task run, providing the complete address in order to
  2092. // locate and identify the pipeline task run.
  2093. //
  2094. // [URL]: https://wikipedia.org/wiki/URL
  2095. func CICDPipelineTaskRunURLFull(val string) attribute.KeyValue {
  2096. return CICDPipelineTaskRunURLFullKey.String(val)
  2097. }
  2098. // CICDSystemComponent returns an attribute KeyValue conforming to the
  2099. // "cicd.system.component" semantic conventions. It represents the name of a
  2100. // component of the CICD system.
  2101. func CICDSystemComponent(val string) attribute.KeyValue {
  2102. return CICDSystemComponentKey.String(val)
  2103. }
  2104. // CICDWorkerID returns an attribute KeyValue conforming to the "cicd.worker.id"
  2105. // semantic conventions. It represents the unique identifier of a worker within a
  2106. // CICD system.
  2107. func CICDWorkerID(val string) attribute.KeyValue {
  2108. return CICDWorkerIDKey.String(val)
  2109. }
  2110. // CICDWorkerName returns an attribute KeyValue conforming to the
  2111. // "cicd.worker.name" semantic conventions. It represents the name of a worker
  2112. // within a CICD system.
  2113. func CICDWorkerName(val string) attribute.KeyValue {
  2114. return CICDWorkerNameKey.String(val)
  2115. }
  2116. // CICDWorkerURLFull returns an attribute KeyValue conforming to the
  2117. // "cicd.worker.url.full" semantic conventions. It represents the [URL] of the
  2118. // worker, providing the complete address in order to locate and identify the
  2119. // worker.
  2120. //
  2121. // [URL]: https://wikipedia.org/wiki/URL
  2122. func CICDWorkerURLFull(val string) attribute.KeyValue {
  2123. return CICDWorkerURLFullKey.String(val)
  2124. }
  2125. // Enum values for cicd.pipeline.action.name
  2126. var (
  2127. // The pipeline run is executing a build.
  2128. // Stability: development
  2129. CICDPipelineActionNameBuild = CICDPipelineActionNameKey.String("BUILD")
  2130. // The pipeline run is executing.
  2131. // Stability: development
  2132. CICDPipelineActionNameRun = CICDPipelineActionNameKey.String("RUN")
  2133. // The pipeline run is executing a sync.
  2134. // Stability: development
  2135. CICDPipelineActionNameSync = CICDPipelineActionNameKey.String("SYNC")
  2136. )
  2137. // Enum values for cicd.pipeline.result
  2138. var (
  2139. // The pipeline run finished successfully.
  2140. // Stability: development
  2141. CICDPipelineResultSuccess = CICDPipelineResultKey.String("success")
  2142. // The pipeline run did not finish successfully, eg. due to a compile error or a
  2143. // failing test. Such failures are usually detected by non-zero exit codes of
  2144. // the tools executed in the pipeline run.
  2145. // Stability: development
  2146. CICDPipelineResultFailure = CICDPipelineResultKey.String("failure")
  2147. // The pipeline run failed due to an error in the CICD system, eg. due to the
  2148. // worker being killed.
  2149. // Stability: development
  2150. CICDPipelineResultError = CICDPipelineResultKey.String("error")
  2151. // A timeout caused the pipeline run to be interrupted.
  2152. // Stability: development
  2153. CICDPipelineResultTimeout = CICDPipelineResultKey.String("timeout")
  2154. // The pipeline run was cancelled, eg. by a user manually cancelling the
  2155. // pipeline run.
  2156. // Stability: development
  2157. CICDPipelineResultCancellation = CICDPipelineResultKey.String("cancellation")
  2158. // The pipeline run was skipped, eg. due to a precondition not being met.
  2159. // Stability: development
  2160. CICDPipelineResultSkip = CICDPipelineResultKey.String("skip")
  2161. )
  2162. // Enum values for cicd.pipeline.run.state
  2163. var (
  2164. // The run pending state spans from the event triggering the pipeline run until
  2165. // the execution of the run starts (eg. time spent in a queue, provisioning
  2166. // agents, creating run resources).
  2167. //
  2168. // Stability: development
  2169. CICDPipelineRunStatePending = CICDPipelineRunStateKey.String("pending")
  2170. // The executing state spans the execution of any run tasks (eg. build, test).
  2171. // Stability: development
  2172. CICDPipelineRunStateExecuting = CICDPipelineRunStateKey.String("executing")
  2173. // The finalizing state spans from when the run has finished executing (eg.
  2174. // cleanup of run resources).
  2175. // Stability: development
  2176. CICDPipelineRunStateFinalizing = CICDPipelineRunStateKey.String("finalizing")
  2177. )
  2178. // Enum values for cicd.pipeline.task.run.result
  2179. var (
  2180. // The task run finished successfully.
  2181. // Stability: development
  2182. CICDPipelineTaskRunResultSuccess = CICDPipelineTaskRunResultKey.String("success")
  2183. // The task run did not finish successfully, eg. due to a compile error or a
  2184. // failing test. Such failures are usually detected by non-zero exit codes of
  2185. // the tools executed in the task run.
  2186. // Stability: development
  2187. CICDPipelineTaskRunResultFailure = CICDPipelineTaskRunResultKey.String("failure")
  2188. // The task run failed due to an error in the CICD system, eg. due to the worker
  2189. // being killed.
  2190. // Stability: development
  2191. CICDPipelineTaskRunResultError = CICDPipelineTaskRunResultKey.String("error")
  2192. // A timeout caused the task run to be interrupted.
  2193. // Stability: development
  2194. CICDPipelineTaskRunResultTimeout = CICDPipelineTaskRunResultKey.String("timeout")
  2195. // The task run was cancelled, eg. by a user manually cancelling the task run.
  2196. // Stability: development
  2197. CICDPipelineTaskRunResultCancellation = CICDPipelineTaskRunResultKey.String("cancellation")
  2198. // The task run was skipped, eg. due to a precondition not being met.
  2199. // Stability: development
  2200. CICDPipelineTaskRunResultSkip = CICDPipelineTaskRunResultKey.String("skip")
  2201. )
  2202. // Enum values for cicd.pipeline.task.type
  2203. var (
  2204. // build
  2205. // Stability: development
  2206. CICDPipelineTaskTypeBuild = CICDPipelineTaskTypeKey.String("build")
  2207. // test
  2208. // Stability: development
  2209. CICDPipelineTaskTypeTest = CICDPipelineTaskTypeKey.String("test")
  2210. // deploy
  2211. // Stability: development
  2212. CICDPipelineTaskTypeDeploy = CICDPipelineTaskTypeKey.String("deploy")
  2213. )
  2214. // Enum values for cicd.worker.state
  2215. var (
  2216. // The worker is not performing work for the CICD system. It is available to the
  2217. // CICD system to perform work on (online / idle).
  2218. // Stability: development
  2219. CICDWorkerStateAvailable = CICDWorkerStateKey.String("available")
  2220. // The worker is performing work for the CICD system.
  2221. // Stability: development
  2222. CICDWorkerStateBusy = CICDWorkerStateKey.String("busy")
  2223. // The worker is not available to the CICD system (disconnected / down).
  2224. // Stability: development
  2225. CICDWorkerStateOffline = CICDWorkerStateKey.String("offline")
  2226. )
  2227. // Namespace: client
  2228. const (
  2229. // ClientAddressKey is the attribute Key conforming to the "client.address"
  2230. // semantic conventions. It represents the client address - domain name if
  2231. // available without reverse DNS lookup; otherwise, IP address or Unix domain
  2232. // socket name.
  2233. //
  2234. // Type: string
  2235. // RequirementLevel: Recommended
  2236. // Stability: Stable
  2237. //
  2238. // Examples: "client.example.com", "10.1.2.80", "/tmp/my.sock"
  2239. // Note: When observed from the server side, and when communicating through an
  2240. // intermediary, `client.address` SHOULD represent the client address behind any
  2241. // intermediaries, for example proxies, if it's available.
  2242. ClientAddressKey = attribute.Key("client.address")
  2243. // ClientPortKey is the attribute Key conforming to the "client.port" semantic
  2244. // conventions. It represents the client port number.
  2245. //
  2246. // Type: int
  2247. // RequirementLevel: Recommended
  2248. // Stability: Stable
  2249. //
  2250. // Examples: 65123
  2251. // Note: When observed from the server side, and when communicating through an
  2252. // intermediary, `client.port` SHOULD represent the client port behind any
  2253. // intermediaries, for example proxies, if it's available.
  2254. ClientPortKey = attribute.Key("client.port")
  2255. )
  2256. // ClientAddress returns an attribute KeyValue conforming to the "client.address"
  2257. // semantic conventions. It represents the client address - domain name if
  2258. // available without reverse DNS lookup; otherwise, IP address or Unix domain
  2259. // socket name.
  2260. func ClientAddress(val string) attribute.KeyValue {
  2261. return ClientAddressKey.String(val)
  2262. }
  2263. // ClientPort returns an attribute KeyValue conforming to the "client.port"
  2264. // semantic conventions. It represents the client port number.
  2265. func ClientPort(val int) attribute.KeyValue {
  2266. return ClientPortKey.Int(val)
  2267. }
  2268. // Namespace: cloud
  2269. const (
  2270. // CloudAccountIDKey is the attribute Key conforming to the "cloud.account.id"
  2271. // semantic conventions. It represents the cloud account ID the resource is
  2272. // assigned to.
  2273. //
  2274. // Type: string
  2275. // RequirementLevel: Recommended
  2276. // Stability: Development
  2277. //
  2278. // Examples: "111111111111", "opentelemetry"
  2279. CloudAccountIDKey = attribute.Key("cloud.account.id")
  2280. // CloudAvailabilityZoneKey is the attribute Key conforming to the
  2281. // "cloud.availability_zone" semantic conventions. It represents the cloud
  2282. // regions often have multiple, isolated locations known as zones to increase
  2283. // availability. Availability zone represents the zone where the resource is
  2284. // running.
  2285. //
  2286. // Type: string
  2287. // RequirementLevel: Recommended
  2288. // Stability: Development
  2289. //
  2290. // Examples: "us-east-1c"
  2291. // Note: Availability zones are called "zones" on Alibaba Cloud and Google
  2292. // Cloud.
  2293. CloudAvailabilityZoneKey = attribute.Key("cloud.availability_zone")
  2294. // CloudPlatformKey is the attribute Key conforming to the "cloud.platform"
  2295. // semantic conventions. It represents the cloud platform in use.
  2296. //
  2297. // Type: Enum
  2298. // RequirementLevel: Recommended
  2299. // Stability: Development
  2300. //
  2301. // Examples:
  2302. // Note: The prefix of the service SHOULD match the one specified in
  2303. // `cloud.provider`.
  2304. CloudPlatformKey = attribute.Key("cloud.platform")
  2305. // CloudProviderKey is the attribute Key conforming to the "cloud.provider"
  2306. // semantic conventions. It represents the name of the cloud provider.
  2307. //
  2308. // Type: Enum
  2309. // RequirementLevel: Recommended
  2310. // Stability: Development
  2311. //
  2312. // Examples:
  2313. CloudProviderKey = attribute.Key("cloud.provider")
  2314. // CloudRegionKey is the attribute Key conforming to the "cloud.region" semantic
  2315. // conventions. It represents the geographical region within a cloud provider.
  2316. // When associated with a resource, this attribute specifies the region where
  2317. // the resource operates. When calling services or APIs deployed on a cloud,
  2318. // this attribute identifies the region where the called destination is
  2319. // deployed.
  2320. //
  2321. // Type: string
  2322. // RequirementLevel: Recommended
  2323. // Stability: Development
  2324. //
  2325. // Examples: "us-central1", "us-east-1"
  2326. // Note: Refer to your provider's docs to see the available regions, for example
  2327. // [Alibaba Cloud regions], [AWS regions], [Azure regions],
  2328. // [Google Cloud regions], or [Tencent Cloud regions].
  2329. //
  2330. // [Alibaba Cloud regions]: https://www.alibabacloud.com/help/doc-detail/40654.htm
  2331. // [AWS regions]: https://aws.amazon.com/about-aws/global-infrastructure/regions_az/
  2332. // [Azure regions]: https://azure.microsoft.com/global-infrastructure/geographies/
  2333. // [Google Cloud regions]: https://cloud.google.com/about/locations
  2334. // [Tencent Cloud regions]: https://www.tencentcloud.com/document/product/213/6091
  2335. CloudRegionKey = attribute.Key("cloud.region")
  2336. // CloudResourceIDKey is the attribute Key conforming to the "cloud.resource_id"
  2337. // semantic conventions. It represents the cloud provider-specific native
  2338. // identifier of the monitored cloud resource (e.g. an [ARN] on AWS, a
  2339. // [fully qualified resource ID] on Azure, a [full resource name] on GCP).
  2340. //
  2341. // Type: string
  2342. // RequirementLevel: Recommended
  2343. // Stability: Development
  2344. //
  2345. // Examples: "arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function",
  2346. // "//run.googleapis.com/projects/PROJECT_ID/locations/LOCATION_ID/services/SERVICE_ID",
  2347. // "/subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>
  2348. // /providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>"
  2349. // Note: On some cloud providers, it may not be possible to determine the full
  2350. // ID at startup,
  2351. // so it may be necessary to set `cloud.resource_id` as a span attribute
  2352. // instead.
  2353. //
  2354. // The exact value to use for `cloud.resource_id` depends on the cloud provider.
  2355. // The following well-known definitions MUST be used if you set this attribute
  2356. // and they apply:
  2357. //
  2358. // - **AWS Lambda:** The function [ARN].
  2359. // Take care not to use the "invoked ARN" directly but replace any
  2360. // [alias suffix]
  2361. // with the resolved function version, as the same runtime instance may be
  2362. // invocable with
  2363. // multiple different aliases.
  2364. // - **GCP:** The [URI of the resource]
  2365. // - **Azure:** The [Fully Qualified Resource ID] of the invoked function,
  2366. // *not* the function app, having the form
  2367. //
  2368. // `/subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>`
  2369. // .
  2370. // This means that a span attribute MUST be used, as an Azure function app
  2371. // can host multiple functions that would usually share
  2372. // a TracerProvider.
  2373. //
  2374. //
  2375. // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
  2376. // [fully qualified resource ID]: https://learn.microsoft.com/rest/api/resources/resources/get-by-id
  2377. // [full resource name]: https://google.aip.dev/122#full-resource-names
  2378. // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
  2379. // [alias suffix]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html
  2380. // [URI of the resource]: https://cloud.google.com/iam/docs/full-resource-names
  2381. // [Fully Qualified Resource ID]: https://learn.microsoft.com/rest/api/resources/resources/get-by-id
  2382. CloudResourceIDKey = attribute.Key("cloud.resource_id")
  2383. )
  2384. // CloudAccountID returns an attribute KeyValue conforming to the
  2385. // "cloud.account.id" semantic conventions. It represents the cloud account ID
  2386. // the resource is assigned to.
  2387. func CloudAccountID(val string) attribute.KeyValue {
  2388. return CloudAccountIDKey.String(val)
  2389. }
  2390. // CloudAvailabilityZone returns an attribute KeyValue conforming to the
  2391. // "cloud.availability_zone" semantic conventions. It represents the cloud
  2392. // regions often have multiple, isolated locations known as zones to increase
  2393. // availability. Availability zone represents the zone where the resource is
  2394. // running.
  2395. func CloudAvailabilityZone(val string) attribute.KeyValue {
  2396. return CloudAvailabilityZoneKey.String(val)
  2397. }
  2398. // CloudRegion returns an attribute KeyValue conforming to the "cloud.region"
  2399. // semantic conventions. It represents the geographical region within a cloud
  2400. // provider. When associated with a resource, this attribute specifies the region
  2401. // where the resource operates. When calling services or APIs deployed on a
  2402. // cloud, this attribute identifies the region where the called destination is
  2403. // deployed.
  2404. func CloudRegion(val string) attribute.KeyValue {
  2405. return CloudRegionKey.String(val)
  2406. }
  2407. // CloudResourceID returns an attribute KeyValue conforming to the
  2408. // "cloud.resource_id" semantic conventions. It represents the cloud
  2409. // provider-specific native identifier of the monitored cloud resource (e.g. an
  2410. // [ARN] on AWS, a [fully qualified resource ID] on Azure, a [full resource name]
  2411. // on GCP).
  2412. //
  2413. // [ARN]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
  2414. // [fully qualified resource ID]: https://learn.microsoft.com/rest/api/resources/resources/get-by-id
  2415. // [full resource name]: https://google.aip.dev/122#full-resource-names
  2416. func CloudResourceID(val string) attribute.KeyValue {
  2417. return CloudResourceIDKey.String(val)
  2418. }
  2419. // Enum values for cloud.platform
  2420. var (
  2421. // Alibaba Cloud Elastic Compute Service
  2422. // Stability: development
  2423. CloudPlatformAlibabaCloudECS = CloudPlatformKey.String("alibaba_cloud_ecs")
  2424. // Alibaba Cloud Function Compute
  2425. // Stability: development
  2426. CloudPlatformAlibabaCloudFC = CloudPlatformKey.String("alibaba_cloud_fc")
  2427. // Red Hat OpenShift on Alibaba Cloud
  2428. // Stability: development
  2429. CloudPlatformAlibabaCloudOpenShift = CloudPlatformKey.String("alibaba_cloud_openshift")
  2430. // AWS Elastic Compute Cloud
  2431. // Stability: development
  2432. CloudPlatformAWSEC2 = CloudPlatformKey.String("aws_ec2")
  2433. // AWS Elastic Container Service
  2434. // Stability: development
  2435. CloudPlatformAWSECS = CloudPlatformKey.String("aws_ecs")
  2436. // AWS Elastic Kubernetes Service
  2437. // Stability: development
  2438. CloudPlatformAWSEKS = CloudPlatformKey.String("aws_eks")
  2439. // AWS Lambda
  2440. // Stability: development
  2441. CloudPlatformAWSLambda = CloudPlatformKey.String("aws_lambda")
  2442. // AWS Elastic Beanstalk
  2443. // Stability: development
  2444. CloudPlatformAWSElasticBeanstalk = CloudPlatformKey.String("aws_elastic_beanstalk")
  2445. // AWS App Runner
  2446. // Stability: development
  2447. CloudPlatformAWSAppRunner = CloudPlatformKey.String("aws_app_runner")
  2448. // Red Hat OpenShift on AWS (ROSA)
  2449. // Stability: development
  2450. CloudPlatformAWSOpenShift = CloudPlatformKey.String("aws_openshift")
  2451. // Azure Virtual Machines
  2452. // Stability: development
  2453. CloudPlatformAzureVM = CloudPlatformKey.String("azure.vm")
  2454. // Azure Container Apps
  2455. // Stability: development
  2456. CloudPlatformAzureContainerApps = CloudPlatformKey.String("azure.container_apps")
  2457. // Azure Container Instances
  2458. // Stability: development
  2459. CloudPlatformAzureContainerInstances = CloudPlatformKey.String("azure.container_instances")
  2460. // Azure Kubernetes Service
  2461. // Stability: development
  2462. CloudPlatformAzureAKS = CloudPlatformKey.String("azure.aks")
  2463. // Azure Functions
  2464. // Stability: development
  2465. CloudPlatformAzureFunctions = CloudPlatformKey.String("azure.functions")
  2466. // Azure App Service
  2467. // Stability: development
  2468. CloudPlatformAzureAppService = CloudPlatformKey.String("azure.app_service")
  2469. // Azure Red Hat OpenShift
  2470. // Stability: development
  2471. CloudPlatformAzureOpenShift = CloudPlatformKey.String("azure.openshift")
  2472. // Google Bare Metal Solution (BMS)
  2473. // Stability: development
  2474. CloudPlatformGCPBareMetalSolution = CloudPlatformKey.String("gcp_bare_metal_solution")
  2475. // Google Cloud Compute Engine (GCE)
  2476. // Stability: development
  2477. CloudPlatformGCPComputeEngine = CloudPlatformKey.String("gcp_compute_engine")
  2478. // Google Cloud Run
  2479. // Stability: development
  2480. CloudPlatformGCPCloudRun = CloudPlatformKey.String("gcp_cloud_run")
  2481. // Google Cloud Kubernetes Engine (GKE)
  2482. // Stability: development
  2483. CloudPlatformGCPKubernetesEngine = CloudPlatformKey.String("gcp_kubernetes_engine")
  2484. // Google Cloud Functions (GCF)
  2485. // Stability: development
  2486. CloudPlatformGCPCloudFunctions = CloudPlatformKey.String("gcp_cloud_functions")
  2487. // Google Cloud App Engine (GAE)
  2488. // Stability: development
  2489. CloudPlatformGCPAppEngine = CloudPlatformKey.String("gcp_app_engine")
  2490. // Red Hat OpenShift on Google Cloud
  2491. // Stability: development
  2492. CloudPlatformGCPOpenShift = CloudPlatformKey.String("gcp_openshift")
  2493. // Red Hat OpenShift on IBM Cloud
  2494. // Stability: development
  2495. CloudPlatformIBMCloudOpenShift = CloudPlatformKey.String("ibm_cloud_openshift")
  2496. // Compute on Oracle Cloud Infrastructure (OCI)
  2497. // Stability: development
  2498. CloudPlatformOracleCloudCompute = CloudPlatformKey.String("oracle_cloud_compute")
  2499. // Kubernetes Engine (OKE) on Oracle Cloud Infrastructure (OCI)
  2500. // Stability: development
  2501. CloudPlatformOracleCloudOKE = CloudPlatformKey.String("oracle_cloud_oke")
  2502. // Tencent Cloud Cloud Virtual Machine (CVM)
  2503. // Stability: development
  2504. CloudPlatformTencentCloudCVM = CloudPlatformKey.String("tencent_cloud_cvm")
  2505. // Tencent Cloud Elastic Kubernetes Service (EKS)
  2506. // Stability: development
  2507. CloudPlatformTencentCloudEKS = CloudPlatformKey.String("tencent_cloud_eks")
  2508. // Tencent Cloud Serverless Cloud Function (SCF)
  2509. // Stability: development
  2510. CloudPlatformTencentCloudSCF = CloudPlatformKey.String("tencent_cloud_scf")
  2511. )
  2512. // Enum values for cloud.provider
  2513. var (
  2514. // Alibaba Cloud
  2515. // Stability: development
  2516. CloudProviderAlibabaCloud = CloudProviderKey.String("alibaba_cloud")
  2517. // Amazon Web Services
  2518. // Stability: development
  2519. CloudProviderAWS = CloudProviderKey.String("aws")
  2520. // Microsoft Azure
  2521. // Stability: development
  2522. CloudProviderAzure = CloudProviderKey.String("azure")
  2523. // Google Cloud Platform
  2524. // Stability: development
  2525. CloudProviderGCP = CloudProviderKey.String("gcp")
  2526. // Heroku Platform as a Service
  2527. // Stability: development
  2528. CloudProviderHeroku = CloudProviderKey.String("heroku")
  2529. // IBM Cloud
  2530. // Stability: development
  2531. CloudProviderIBMCloud = CloudProviderKey.String("ibm_cloud")
  2532. // Oracle Cloud Infrastructure (OCI)
  2533. // Stability: development
  2534. CloudProviderOracleCloud = CloudProviderKey.String("oracle_cloud")
  2535. // Tencent Cloud
  2536. // Stability: development
  2537. CloudProviderTencentCloud = CloudProviderKey.String("tencent_cloud")
  2538. )
  2539. // Namespace: cloudevents
  2540. const (
  2541. // CloudEventsEventIDKey is the attribute Key conforming to the
  2542. // "cloudevents.event_id" semantic conventions. It represents the [event_id]
  2543. // uniquely identifies the event.
  2544. //
  2545. // Type: string
  2546. // RequirementLevel: Recommended
  2547. // Stability: Development
  2548. //
  2549. // Examples: "123e4567-e89b-12d3-a456-426614174000", "0001"
  2550. //
  2551. // [event_id]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id
  2552. CloudEventsEventIDKey = attribute.Key("cloudevents.event_id")
  2553. // CloudEventsEventSourceKey is the attribute Key conforming to the
  2554. // "cloudevents.event_source" semantic conventions. It represents the [source]
  2555. // identifies the context in which an event happened.
  2556. //
  2557. // Type: string
  2558. // RequirementLevel: Recommended
  2559. // Stability: Development
  2560. //
  2561. // Examples: "https://github.com/cloudevents", "/cloudevents/spec/pull/123",
  2562. // "my-service"
  2563. //
  2564. // [source]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1
  2565. CloudEventsEventSourceKey = attribute.Key("cloudevents.event_source")
  2566. // CloudEventsEventSpecVersionKey is the attribute Key conforming to the
  2567. // "cloudevents.event_spec_version" semantic conventions. It represents the
  2568. // [version of the CloudEvents specification] which the event uses.
  2569. //
  2570. // Type: string
  2571. // RequirementLevel: Recommended
  2572. // Stability: Development
  2573. //
  2574. // Examples: 1.0
  2575. //
  2576. // [version of the CloudEvents specification]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion
  2577. CloudEventsEventSpecVersionKey = attribute.Key("cloudevents.event_spec_version")
  2578. // CloudEventsEventSubjectKey is the attribute Key conforming to the
  2579. // "cloudevents.event_subject" semantic conventions. It represents the [subject]
  2580. // of the event in the context of the event producer (identified by source).
  2581. //
  2582. // Type: string
  2583. // RequirementLevel: Recommended
  2584. // Stability: Development
  2585. //
  2586. // Examples: mynewfile.jpg
  2587. //
  2588. // [subject]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#subject
  2589. CloudEventsEventSubjectKey = attribute.Key("cloudevents.event_subject")
  2590. // CloudEventsEventTypeKey is the attribute Key conforming to the
  2591. // "cloudevents.event_type" semantic conventions. It represents the [event_type]
  2592. // contains a value describing the type of event related to the originating
  2593. // occurrence.
  2594. //
  2595. // Type: string
  2596. // RequirementLevel: Recommended
  2597. // Stability: Development
  2598. //
  2599. // Examples: "com.github.pull_request.opened", "com.example.object.deleted.v2"
  2600. //
  2601. // [event_type]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type
  2602. CloudEventsEventTypeKey = attribute.Key("cloudevents.event_type")
  2603. )
  2604. // CloudEventsEventID returns an attribute KeyValue conforming to the
  2605. // "cloudevents.event_id" semantic conventions. It represents the [event_id]
  2606. // uniquely identifies the event.
  2607. //
  2608. // [event_id]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id
  2609. func CloudEventsEventID(val string) attribute.KeyValue {
  2610. return CloudEventsEventIDKey.String(val)
  2611. }
  2612. // CloudEventsEventSource returns an attribute KeyValue conforming to the
  2613. // "cloudevents.event_source" semantic conventions. It represents the [source]
  2614. // identifies the context in which an event happened.
  2615. //
  2616. // [source]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1
  2617. func CloudEventsEventSource(val string) attribute.KeyValue {
  2618. return CloudEventsEventSourceKey.String(val)
  2619. }
  2620. // CloudEventsEventSpecVersion returns an attribute KeyValue conforming to the
  2621. // "cloudevents.event_spec_version" semantic conventions. It represents the
  2622. // [version of the CloudEvents specification] which the event uses.
  2623. //
  2624. // [version of the CloudEvents specification]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion
  2625. func CloudEventsEventSpecVersion(val string) attribute.KeyValue {
  2626. return CloudEventsEventSpecVersionKey.String(val)
  2627. }
  2628. // CloudEventsEventSubject returns an attribute KeyValue conforming to the
  2629. // "cloudevents.event_subject" semantic conventions. It represents the [subject]
  2630. // of the event in the context of the event producer (identified by source).
  2631. //
  2632. // [subject]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#subject
  2633. func CloudEventsEventSubject(val string) attribute.KeyValue {
  2634. return CloudEventsEventSubjectKey.String(val)
  2635. }
  2636. // CloudEventsEventType returns an attribute KeyValue conforming to the
  2637. // "cloudevents.event_type" semantic conventions. It represents the [event_type]
  2638. // contains a value describing the type of event related to the originating
  2639. // occurrence.
  2640. //
  2641. // [event_type]: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type
  2642. func CloudEventsEventType(val string) attribute.KeyValue {
  2643. return CloudEventsEventTypeKey.String(val)
  2644. }
  2645. // Namespace: cloudfoundry
  2646. const (
  2647. // CloudFoundryAppIDKey is the attribute Key conforming to the
  2648. // "cloudfoundry.app.id" semantic conventions. It represents the guid of the
  2649. // application.
  2650. //
  2651. // Type: string
  2652. // RequirementLevel: Recommended
  2653. // Stability: Development
  2654. //
  2655. // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
  2656. // Note: Application instrumentation should use the value from environment
  2657. // variable `VCAP_APPLICATION.application_id`. This is the same value as
  2658. // reported by `cf app <app-name> --guid`.
  2659. CloudFoundryAppIDKey = attribute.Key("cloudfoundry.app.id")
  2660. // CloudFoundryAppInstanceIDKey is the attribute Key conforming to the
  2661. // "cloudfoundry.app.instance.id" semantic conventions. It represents the index
  2662. // of the application instance. 0 when just one instance is active.
  2663. //
  2664. // Type: string
  2665. // RequirementLevel: Recommended
  2666. // Stability: Development
  2667. //
  2668. // Examples: "0", "1"
  2669. // Note: CloudFoundry defines the `instance_id` in the [Loggregator v2 envelope]
  2670. // .
  2671. // It is used for logs and metrics emitted by CloudFoundry. It is
  2672. // supposed to contain the application instance index for applications
  2673. // deployed on the runtime.
  2674. //
  2675. // Application instrumentation should use the value from environment
  2676. // variable `CF_INSTANCE_INDEX`.
  2677. //
  2678. // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
  2679. CloudFoundryAppInstanceIDKey = attribute.Key("cloudfoundry.app.instance.id")
  2680. // CloudFoundryAppNameKey is the attribute Key conforming to the
  2681. // "cloudfoundry.app.name" semantic conventions. It represents the name of the
  2682. // application.
  2683. //
  2684. // Type: string
  2685. // RequirementLevel: Recommended
  2686. // Stability: Development
  2687. //
  2688. // Examples: "my-app-name"
  2689. // Note: Application instrumentation should use the value from environment
  2690. // variable `VCAP_APPLICATION.application_name`. This is the same value
  2691. // as reported by `cf apps`.
  2692. CloudFoundryAppNameKey = attribute.Key("cloudfoundry.app.name")
  2693. // CloudFoundryOrgIDKey is the attribute Key conforming to the
  2694. // "cloudfoundry.org.id" semantic conventions. It represents the guid of the
  2695. // CloudFoundry org the application is running in.
  2696. //
  2697. // Type: string
  2698. // RequirementLevel: Recommended
  2699. // Stability: Development
  2700. //
  2701. // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
  2702. // Note: Application instrumentation should use the value from environment
  2703. // variable `VCAP_APPLICATION.org_id`. This is the same value as
  2704. // reported by `cf org <org-name> --guid`.
  2705. CloudFoundryOrgIDKey = attribute.Key("cloudfoundry.org.id")
  2706. // CloudFoundryOrgNameKey is the attribute Key conforming to the
  2707. // "cloudfoundry.org.name" semantic conventions. It represents the name of the
  2708. // CloudFoundry organization the app is running in.
  2709. //
  2710. // Type: string
  2711. // RequirementLevel: Recommended
  2712. // Stability: Development
  2713. //
  2714. // Examples: "my-org-name"
  2715. // Note: Application instrumentation should use the value from environment
  2716. // variable `VCAP_APPLICATION.org_name`. This is the same value as
  2717. // reported by `cf orgs`.
  2718. CloudFoundryOrgNameKey = attribute.Key("cloudfoundry.org.name")
  2719. // CloudFoundryProcessIDKey is the attribute Key conforming to the
  2720. // "cloudfoundry.process.id" semantic conventions. It represents the UID
  2721. // identifying the process.
  2722. //
  2723. // Type: string
  2724. // RequirementLevel: Recommended
  2725. // Stability: Development
  2726. //
  2727. // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
  2728. // Note: Application instrumentation should use the value from environment
  2729. // variable `VCAP_APPLICATION.process_id`. It is supposed to be equal to
  2730. // `VCAP_APPLICATION.app_id` for applications deployed to the runtime.
  2731. // For system components, this could be the actual PID.
  2732. CloudFoundryProcessIDKey = attribute.Key("cloudfoundry.process.id")
  2733. // CloudFoundryProcessTypeKey is the attribute Key conforming to the
  2734. // "cloudfoundry.process.type" semantic conventions. It represents the type of
  2735. // process.
  2736. //
  2737. // Type: string
  2738. // RequirementLevel: Recommended
  2739. // Stability: Development
  2740. //
  2741. // Examples: "web"
  2742. // Note: CloudFoundry applications can consist of multiple jobs. Usually the
  2743. // main process will be of type `web`. There can be additional background
  2744. // tasks or side-cars with different process types.
  2745. CloudFoundryProcessTypeKey = attribute.Key("cloudfoundry.process.type")
  2746. // CloudFoundrySpaceIDKey is the attribute Key conforming to the
  2747. // "cloudfoundry.space.id" semantic conventions. It represents the guid of the
  2748. // CloudFoundry space the application is running in.
  2749. //
  2750. // Type: string
  2751. // RequirementLevel: Recommended
  2752. // Stability: Development
  2753. //
  2754. // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
  2755. // Note: Application instrumentation should use the value from environment
  2756. // variable `VCAP_APPLICATION.space_id`. This is the same value as
  2757. // reported by `cf space <space-name> --guid`.
  2758. CloudFoundrySpaceIDKey = attribute.Key("cloudfoundry.space.id")
  2759. // CloudFoundrySpaceNameKey is the attribute Key conforming to the
  2760. // "cloudfoundry.space.name" semantic conventions. It represents the name of the
  2761. // CloudFoundry space the application is running in.
  2762. //
  2763. // Type: string
  2764. // RequirementLevel: Recommended
  2765. // Stability: Development
  2766. //
  2767. // Examples: "my-space-name"
  2768. // Note: Application instrumentation should use the value from environment
  2769. // variable `VCAP_APPLICATION.space_name`. This is the same value as
  2770. // reported by `cf spaces`.
  2771. CloudFoundrySpaceNameKey = attribute.Key("cloudfoundry.space.name")
  2772. // CloudFoundrySystemIDKey is the attribute Key conforming to the
  2773. // "cloudfoundry.system.id" semantic conventions. It represents a guid or
  2774. // another name describing the event source.
  2775. //
  2776. // Type: string
  2777. // RequirementLevel: Recommended
  2778. // Stability: Development
  2779. //
  2780. // Examples: "cf/gorouter"
  2781. // Note: CloudFoundry defines the `source_id` in the [Loggregator v2 envelope].
  2782. // It is used for logs and metrics emitted by CloudFoundry. It is
  2783. // supposed to contain the component name, e.g. "gorouter", for
  2784. // CloudFoundry components.
  2785. //
  2786. // When system components are instrumented, values from the
  2787. // [Bosh spec]
  2788. // should be used. The `system.id` should be set to
  2789. // `spec.deployment/spec.name`.
  2790. //
  2791. // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
  2792. // [Bosh spec]: https://bosh.io/docs/jobs/#properties-spec
  2793. CloudFoundrySystemIDKey = attribute.Key("cloudfoundry.system.id")
  2794. // CloudFoundrySystemInstanceIDKey is the attribute Key conforming to the
  2795. // "cloudfoundry.system.instance.id" semantic conventions. It represents a guid
  2796. // describing the concrete instance of the event source.
  2797. //
  2798. // Type: string
  2799. // RequirementLevel: Recommended
  2800. // Stability: Development
  2801. //
  2802. // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
  2803. // Note: CloudFoundry defines the `instance_id` in the [Loggregator v2 envelope]
  2804. // .
  2805. // It is used for logs and metrics emitted by CloudFoundry. It is
  2806. // supposed to contain the vm id for CloudFoundry components.
  2807. //
  2808. // When system components are instrumented, values from the
  2809. // [Bosh spec]
  2810. // should be used. The `system.instance.id` should be set to `spec.id`.
  2811. //
  2812. // [Loggregator v2 envelope]: https://github.com/cloudfoundry/loggregator-api#v2-envelope
  2813. // [Bosh spec]: https://bosh.io/docs/jobs/#properties-spec
  2814. CloudFoundrySystemInstanceIDKey = attribute.Key("cloudfoundry.system.instance.id")
  2815. )
  2816. // CloudFoundryAppID returns an attribute KeyValue conforming to the
  2817. // "cloudfoundry.app.id" semantic conventions. It represents the guid of the
  2818. // application.
  2819. func CloudFoundryAppID(val string) attribute.KeyValue {
  2820. return CloudFoundryAppIDKey.String(val)
  2821. }
  2822. // CloudFoundryAppInstanceID returns an attribute KeyValue conforming to the
  2823. // "cloudfoundry.app.instance.id" semantic conventions. It represents the index
  2824. // of the application instance. 0 when just one instance is active.
  2825. func CloudFoundryAppInstanceID(val string) attribute.KeyValue {
  2826. return CloudFoundryAppInstanceIDKey.String(val)
  2827. }
  2828. // CloudFoundryAppName returns an attribute KeyValue conforming to the
  2829. // "cloudfoundry.app.name" semantic conventions. It represents the name of the
  2830. // application.
  2831. func CloudFoundryAppName(val string) attribute.KeyValue {
  2832. return CloudFoundryAppNameKey.String(val)
  2833. }
  2834. // CloudFoundryOrgID returns an attribute KeyValue conforming to the
  2835. // "cloudfoundry.org.id" semantic conventions. It represents the guid of the
  2836. // CloudFoundry org the application is running in.
  2837. func CloudFoundryOrgID(val string) attribute.KeyValue {
  2838. return CloudFoundryOrgIDKey.String(val)
  2839. }
  2840. // CloudFoundryOrgName returns an attribute KeyValue conforming to the
  2841. // "cloudfoundry.org.name" semantic conventions. It represents the name of the
  2842. // CloudFoundry organization the app is running in.
  2843. func CloudFoundryOrgName(val string) attribute.KeyValue {
  2844. return CloudFoundryOrgNameKey.String(val)
  2845. }
  2846. // CloudFoundryProcessID returns an attribute KeyValue conforming to the
  2847. // "cloudfoundry.process.id" semantic conventions. It represents the UID
  2848. // identifying the process.
  2849. func CloudFoundryProcessID(val string) attribute.KeyValue {
  2850. return CloudFoundryProcessIDKey.String(val)
  2851. }
  2852. // CloudFoundryProcessType returns an attribute KeyValue conforming to the
  2853. // "cloudfoundry.process.type" semantic conventions. It represents the type of
  2854. // process.
  2855. func CloudFoundryProcessType(val string) attribute.KeyValue {
  2856. return CloudFoundryProcessTypeKey.String(val)
  2857. }
  2858. // CloudFoundrySpaceID returns an attribute KeyValue conforming to the
  2859. // "cloudfoundry.space.id" semantic conventions. It represents the guid of the
  2860. // CloudFoundry space the application is running in.
  2861. func CloudFoundrySpaceID(val string) attribute.KeyValue {
  2862. return CloudFoundrySpaceIDKey.String(val)
  2863. }
  2864. // CloudFoundrySpaceName returns an attribute KeyValue conforming to the
  2865. // "cloudfoundry.space.name" semantic conventions. It represents the name of the
  2866. // CloudFoundry space the application is running in.
  2867. func CloudFoundrySpaceName(val string) attribute.KeyValue {
  2868. return CloudFoundrySpaceNameKey.String(val)
  2869. }
  2870. // CloudFoundrySystemID returns an attribute KeyValue conforming to the
  2871. // "cloudfoundry.system.id" semantic conventions. It represents a guid or another
  2872. // name describing the event source.
  2873. func CloudFoundrySystemID(val string) attribute.KeyValue {
  2874. return CloudFoundrySystemIDKey.String(val)
  2875. }
  2876. // CloudFoundrySystemInstanceID returns an attribute KeyValue conforming to the
  2877. // "cloudfoundry.system.instance.id" semantic conventions. It represents a guid
  2878. // describing the concrete instance of the event source.
  2879. func CloudFoundrySystemInstanceID(val string) attribute.KeyValue {
  2880. return CloudFoundrySystemInstanceIDKey.String(val)
  2881. }
  2882. // Namespace: code
  2883. const (
  2884. // CodeColumnNumberKey is the attribute Key conforming to the
  2885. // "code.column.number" semantic conventions. It represents the column number in
  2886. // `code.file.path` best representing the operation. It SHOULD point within the
  2887. // code unit named in `code.function.name`. This attribute MUST NOT be used on
  2888. // the Profile signal since the data is already captured in 'message Line'. This
  2889. // constraint is imposed to prevent redundancy and maintain data integrity.
  2890. //
  2891. // Type: int
  2892. // RequirementLevel: Recommended
  2893. // Stability: Stable
  2894. CodeColumnNumberKey = attribute.Key("code.column.number")
  2895. // CodeFilePathKey is the attribute Key conforming to the "code.file.path"
  2896. // semantic conventions. It represents the source code file name that identifies
  2897. // the code unit as uniquely as possible (preferably an absolute file path).
  2898. // This attribute MUST NOT be used on the Profile signal since the data is
  2899. // already captured in 'message Function'. This constraint is imposed to prevent
  2900. // redundancy and maintain data integrity.
  2901. //
  2902. // Type: string
  2903. // RequirementLevel: Recommended
  2904. // Stability: Stable
  2905. //
  2906. // Examples: /usr/local/MyApplication/content_root/app/index.php
  2907. CodeFilePathKey = attribute.Key("code.file.path")
  2908. // CodeFunctionNameKey is the attribute Key conforming to the
  2909. // "code.function.name" semantic conventions. It represents the method or
  2910. // function fully-qualified name without arguments. The value should fit the
  2911. // natural representation of the language runtime, which is also likely the same
  2912. // used within `code.stacktrace` attribute value. This attribute MUST NOT be
  2913. // used on the Profile signal since the data is already captured in 'message
  2914. // Function'. This constraint is imposed to prevent redundancy and maintain data
  2915. // integrity.
  2916. //
  2917. // Type: string
  2918. // RequirementLevel: Recommended
  2919. // Stability: Stable
  2920. //
  2921. // Examples: "com.example.MyHttpService.serveRequest",
  2922. // "GuzzleHttp\Client::transfer", "fopen"
  2923. // Note: Values and format depends on each language runtime, thus it is
  2924. // impossible to provide an exhaustive list of examples.
  2925. // The values are usually the same (or prefixes of) the ones found in native
  2926. // stack trace representation stored in
  2927. // `code.stacktrace` without information on arguments.
  2928. //
  2929. // Examples:
  2930. //
  2931. // - Java method: `com.example.MyHttpService.serveRequest`
  2932. // - Java anonymous class method: `com.mycompany.Main$1.myMethod`
  2933. // - Java lambda method:
  2934. // `com.mycompany.Main$$Lambda/0x0000748ae4149c00.myMethod`
  2935. // - PHP function: `GuzzleHttp\Client::transfer`
  2936. // - Go function: `github.com/my/repo/pkg.foo.func5`
  2937. // - Elixir: `OpenTelemetry.Ctx.new`
  2938. // - Erlang: `opentelemetry_ctx:new`
  2939. // - Rust: `playground::my_module::my_cool_func`
  2940. // - C function: `fopen`
  2941. CodeFunctionNameKey = attribute.Key("code.function.name")
  2942. // CodeLineNumberKey is the attribute Key conforming to the "code.line.number"
  2943. // semantic conventions. It represents the line number in `code.file.path` best
  2944. // representing the operation. It SHOULD point within the code unit named in
  2945. // `code.function.name`. This attribute MUST NOT be used on the Profile signal
  2946. // since the data is already captured in 'message Line'. This constraint is
  2947. // imposed to prevent redundancy and maintain data integrity.
  2948. //
  2949. // Type: int
  2950. // RequirementLevel: Recommended
  2951. // Stability: Stable
  2952. CodeLineNumberKey = attribute.Key("code.line.number")
  2953. // CodeStacktraceKey is the attribute Key conforming to the "code.stacktrace"
  2954. // semantic conventions. It represents a stacktrace as a string in the natural
  2955. // representation for the language runtime. The representation is identical to
  2956. // [`exception.stacktrace`]. This attribute MUST NOT be used on the Profile
  2957. // signal since the data is already captured in 'message Location'. This
  2958. // constraint is imposed to prevent redundancy and maintain data integrity.
  2959. //
  2960. // Type: string
  2961. // RequirementLevel: Recommended
  2962. // Stability: Stable
  2963. //
  2964. // Examples: at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at
  2965. // com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at
  2966. // com.example.GenerateTrace.main(GenerateTrace.java:5)
  2967. //
  2968. // [`exception.stacktrace`]: /docs/exceptions/exceptions-spans.md#stacktrace-representation
  2969. CodeStacktraceKey = attribute.Key("code.stacktrace")
  2970. )
  2971. // CodeColumnNumber returns an attribute KeyValue conforming to the
  2972. // "code.column.number" semantic conventions. It represents the column number in
  2973. // `code.file.path` best representing the operation. It SHOULD point within the
  2974. // code unit named in `code.function.name`. This attribute MUST NOT be used on
  2975. // the Profile signal since the data is already captured in 'message Line'. This
  2976. // constraint is imposed to prevent redundancy and maintain data integrity.
  2977. func CodeColumnNumber(val int) attribute.KeyValue {
  2978. return CodeColumnNumberKey.Int(val)
  2979. }
  2980. // CodeFilePath returns an attribute KeyValue conforming to the "code.file.path"
  2981. // semantic conventions. It represents the source code file name that identifies
  2982. // the code unit as uniquely as possible (preferably an absolute file path). This
  2983. // attribute MUST NOT be used on the Profile signal since the data is already
  2984. // captured in 'message Function'. This constraint is imposed to prevent
  2985. // redundancy and maintain data integrity.
  2986. func CodeFilePath(val string) attribute.KeyValue {
  2987. return CodeFilePathKey.String(val)
  2988. }
  2989. // CodeFunctionName returns an attribute KeyValue conforming to the
  2990. // "code.function.name" semantic conventions. It represents the method or
  2991. // function fully-qualified name without arguments. The value should fit the
  2992. // natural representation of the language runtime, which is also likely the same
  2993. // used within `code.stacktrace` attribute value. This attribute MUST NOT be used
  2994. // on the Profile signal since the data is already captured in 'message
  2995. // Function'. This constraint is imposed to prevent redundancy and maintain data
  2996. // integrity.
  2997. func CodeFunctionName(val string) attribute.KeyValue {
  2998. return CodeFunctionNameKey.String(val)
  2999. }
  3000. // CodeLineNumber returns an attribute KeyValue conforming to the
  3001. // "code.line.number" semantic conventions. It represents the line number in
  3002. // `code.file.path` best representing the operation. It SHOULD point within the
  3003. // code unit named in `code.function.name`. This attribute MUST NOT be used on
  3004. // the Profile signal since the data is already captured in 'message Line'. This
  3005. // constraint is imposed to prevent redundancy and maintain data integrity.
  3006. func CodeLineNumber(val int) attribute.KeyValue {
  3007. return CodeLineNumberKey.Int(val)
  3008. }
  3009. // CodeStacktrace returns an attribute KeyValue conforming to the
  3010. // "code.stacktrace" semantic conventions. It represents a stacktrace as a string
  3011. // in the natural representation for the language runtime. The representation is
  3012. // identical to [`exception.stacktrace`]. This attribute MUST NOT be used on the
  3013. // Profile signal since the data is already captured in 'message Location'. This
  3014. // constraint is imposed to prevent redundancy and maintain data integrity.
  3015. //
  3016. // [`exception.stacktrace`]: /docs/exceptions/exceptions-spans.md#stacktrace-representation
  3017. func CodeStacktrace(val string) attribute.KeyValue {
  3018. return CodeStacktraceKey.String(val)
  3019. }
  3020. // Namespace: container
  3021. const (
  3022. // ContainerCommandKey is the attribute Key conforming to the
  3023. // "container.command" semantic conventions. It represents the command used to
  3024. // run the container (i.e. the command name).
  3025. //
  3026. // Type: string
  3027. // RequirementLevel: Recommended
  3028. // Stability: Development
  3029. //
  3030. // Examples: "otelcontribcol"
  3031. // Note: If using embedded credentials or sensitive data, it is recommended to
  3032. // remove them to prevent potential leakage.
  3033. ContainerCommandKey = attribute.Key("container.command")
  3034. // ContainerCommandArgsKey is the attribute Key conforming to the
  3035. // "container.command_args" semantic conventions. It represents the all the
  3036. // command arguments (including the command/executable itself) run by the
  3037. // container.
  3038. //
  3039. // Type: string[]
  3040. // RequirementLevel: Recommended
  3041. // Stability: Development
  3042. //
  3043. // Examples: "otelcontribcol", "--config", "config.yaml"
  3044. ContainerCommandArgsKey = attribute.Key("container.command_args")
  3045. // ContainerCommandLineKey is the attribute Key conforming to the
  3046. // "container.command_line" semantic conventions. It represents the full command
  3047. // run by the container as a single string representing the full command.
  3048. //
  3049. // Type: string
  3050. // RequirementLevel: Recommended
  3051. // Stability: Development
  3052. //
  3053. // Examples: "otelcontribcol --config config.yaml"
  3054. ContainerCommandLineKey = attribute.Key("container.command_line")
  3055. // ContainerCSIPluginNameKey is the attribute Key conforming to the
  3056. // "container.csi.plugin.name" semantic conventions. It represents the name of
  3057. // the CSI ([Container Storage Interface]) plugin used by the volume.
  3058. //
  3059. // Type: string
  3060. // RequirementLevel: Recommended
  3061. // Stability: Development
  3062. //
  3063. // Examples: "pd.csi.storage.gke.io"
  3064. // Note: This can sometimes be referred to as a "driver" in CSI implementations.
  3065. // This should represent the `name` field of the GetPluginInfo RPC.
  3066. //
  3067. // [Container Storage Interface]: https://github.com/container-storage-interface/spec
  3068. ContainerCSIPluginNameKey = attribute.Key("container.csi.plugin.name")
  3069. // ContainerCSIVolumeIDKey is the attribute Key conforming to the
  3070. // "container.csi.volume.id" semantic conventions. It represents the unique
  3071. // volume ID returned by the CSI ([Container Storage Interface]) plugin.
  3072. //
  3073. // Type: string
  3074. // RequirementLevel: Recommended
  3075. // Stability: Development
  3076. //
  3077. // Examples: "projects/my-gcp-project/zones/my-gcp-zone/disks/my-gcp-disk"
  3078. // Note: This can sometimes be referred to as a "volume handle" in CSI
  3079. // implementations. This should represent the `Volume.volume_id` field in CSI
  3080. // spec.
  3081. //
  3082. // [Container Storage Interface]: https://github.com/container-storage-interface/spec
  3083. ContainerCSIVolumeIDKey = attribute.Key("container.csi.volume.id")
  3084. // ContainerIDKey is the attribute Key conforming to the "container.id" semantic
  3085. // conventions. It represents the container ID. Usually a UUID, as for example
  3086. // used to [identify Docker containers]. The UUID might be abbreviated.
  3087. //
  3088. // Type: string
  3089. // RequirementLevel: Recommended
  3090. // Stability: Development
  3091. //
  3092. // Examples: "a3bf90e006b2"
  3093. //
  3094. // [identify Docker containers]: https://docs.docker.com/engine/containers/run/#container-identification
  3095. ContainerIDKey = attribute.Key("container.id")
  3096. // ContainerImageIDKey is the attribute Key conforming to the
  3097. // "container.image.id" semantic conventions. It represents the runtime specific
  3098. // image identifier. Usually a hash algorithm followed by a UUID.
  3099. //
  3100. // Type: string
  3101. // RequirementLevel: Recommended
  3102. // Stability: Development
  3103. //
  3104. // Examples:
  3105. // "sha256:19c92d0a00d1b66d897bceaa7319bee0dd38a10a851c60bcec9474aa3f01e50f"
  3106. // Note: Docker defines a sha256 of the image id; `container.image.id`
  3107. // corresponds to the `Image` field from the Docker container inspect [API]
  3108. // endpoint.
  3109. // K8s defines a link to the container registry repository with digest
  3110. // `"imageID": "registry.azurecr.io /namespace/service/dockerfile@sha256:bdeabd40c3a8a492eaf9e8e44d0ebbb84bac7ee25ac0cf8a7159d25f62555625"`
  3111. // .
  3112. // The ID is assigned by the container runtime and can vary in different
  3113. // environments. Consider using `oci.manifest.digest` if it is important to
  3114. // identify the same image in different environments/runtimes.
  3115. //
  3116. // [API]: https://docs.docker.com/engine/api/v1.43/#tag/Container/operation/ContainerInspect
  3117. ContainerImageIDKey = attribute.Key("container.image.id")
  3118. // ContainerImageNameKey is the attribute Key conforming to the
  3119. // "container.image.name" semantic conventions. It represents the name of the
  3120. // image the container was built on.
  3121. //
  3122. // Type: string
  3123. // RequirementLevel: Recommended
  3124. // Stability: Development
  3125. //
  3126. // Examples: "gcr.io/opentelemetry/operator"
  3127. ContainerImageNameKey = attribute.Key("container.image.name")
  3128. // ContainerImageRepoDigestsKey is the attribute Key conforming to the
  3129. // "container.image.repo_digests" semantic conventions. It represents the repo
  3130. // digests of the container image as provided by the container runtime.
  3131. //
  3132. // Type: string[]
  3133. // RequirementLevel: Recommended
  3134. // Stability: Development
  3135. //
  3136. // Examples:
  3137. // "example@sha256:afcc7f1ac1b49db317a7196c902e61c6c3c4607d63599ee1a82d702d249a0ccb",
  3138. // "internal.registry.example.com:5000/example@sha256:b69959407d21e8a062e0416bf13405bb2b71ed7a84dde4158ebafacfa06f5578"
  3139. // Note: [Docker] and [CRI] report those under the `RepoDigests` field.
  3140. //
  3141. // [Docker]: https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect
  3142. // [CRI]: https://github.com/kubernetes/cri-api/blob/c75ef5b473bbe2d0a4fc92f82235efd665ea8e9f/pkg/apis/runtime/v1/api.proto#L1237-L1238
  3143. ContainerImageRepoDigestsKey = attribute.Key("container.image.repo_digests")
  3144. // ContainerImageTagsKey is the attribute Key conforming to the
  3145. // "container.image.tags" semantic conventions. It represents the container
  3146. // image tags. An example can be found in [Docker Image Inspect]. Should be only
  3147. // the `<tag>` section of the full name for example from
  3148. // `registry.example.com/my-org/my-image:<tag>`.
  3149. //
  3150. // Type: string[]
  3151. // RequirementLevel: Recommended
  3152. // Stability: Development
  3153. //
  3154. // Examples: "v1.27.1", "3.5.7-0"
  3155. //
  3156. // [Docker Image Inspect]: https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect
  3157. ContainerImageTagsKey = attribute.Key("container.image.tags")
  3158. // ContainerNameKey is the attribute Key conforming to the "container.name"
  3159. // semantic conventions. It represents the container name used by container
  3160. // runtime.
  3161. //
  3162. // Type: string
  3163. // RequirementLevel: Recommended
  3164. // Stability: Development
  3165. //
  3166. // Examples: "opentelemetry-autoconf"
  3167. ContainerNameKey = attribute.Key("container.name")
  3168. // ContainerRuntimeDescriptionKey is the attribute Key conforming to the
  3169. // "container.runtime.description" semantic conventions. It represents a
  3170. // description about the runtime which could include, for example details about
  3171. // the CRI/API version being used or other customisations.
  3172. //
  3173. // Type: string
  3174. // RequirementLevel: Recommended
  3175. // Stability: Development
  3176. //
  3177. // Examples: "docker://19.3.1 - CRI: 1.22.0"
  3178. ContainerRuntimeDescriptionKey = attribute.Key("container.runtime.description")
  3179. // ContainerRuntimeNameKey is the attribute Key conforming to the
  3180. // "container.runtime.name" semantic conventions. It represents the container
  3181. // runtime managing this container.
  3182. //
  3183. // Type: string
  3184. // RequirementLevel: Recommended
  3185. // Stability: Development
  3186. //
  3187. // Examples: "docker", "containerd", "rkt"
  3188. ContainerRuntimeNameKey = attribute.Key("container.runtime.name")
  3189. // ContainerRuntimeVersionKey is the attribute Key conforming to the
  3190. // "container.runtime.version" semantic conventions. It represents the version
  3191. // of the runtime of this process, as returned by the runtime without
  3192. // modification.
  3193. //
  3194. // Type: string
  3195. // RequirementLevel: Recommended
  3196. // Stability: Development
  3197. //
  3198. // Examples: 1.0.0
  3199. ContainerRuntimeVersionKey = attribute.Key("container.runtime.version")
  3200. )
  3201. // ContainerCommand returns an attribute KeyValue conforming to the
  3202. // "container.command" semantic conventions. It represents the command used to
  3203. // run the container (i.e. the command name).
  3204. func ContainerCommand(val string) attribute.KeyValue {
  3205. return ContainerCommandKey.String(val)
  3206. }
  3207. // ContainerCommandArgs returns an attribute KeyValue conforming to the
  3208. // "container.command_args" semantic conventions. It represents the all the
  3209. // command arguments (including the command/executable itself) run by the
  3210. // container.
  3211. func ContainerCommandArgs(val ...string) attribute.KeyValue {
  3212. return ContainerCommandArgsKey.StringSlice(val)
  3213. }
  3214. // ContainerCommandLine returns an attribute KeyValue conforming to the
  3215. // "container.command_line" semantic conventions. It represents the full command
  3216. // run by the container as a single string representing the full command.
  3217. func ContainerCommandLine(val string) attribute.KeyValue {
  3218. return ContainerCommandLineKey.String(val)
  3219. }
  3220. // ContainerCSIPluginName returns an attribute KeyValue conforming to the
  3221. // "container.csi.plugin.name" semantic conventions. It represents the name of
  3222. // the CSI ([Container Storage Interface]) plugin used by the volume.
  3223. //
  3224. // [Container Storage Interface]: https://github.com/container-storage-interface/spec
  3225. func ContainerCSIPluginName(val string) attribute.KeyValue {
  3226. return ContainerCSIPluginNameKey.String(val)
  3227. }
  3228. // ContainerCSIVolumeID returns an attribute KeyValue conforming to the
  3229. // "container.csi.volume.id" semantic conventions. It represents the unique
  3230. // volume ID returned by the CSI ([Container Storage Interface]) plugin.
  3231. //
  3232. // [Container Storage Interface]: https://github.com/container-storage-interface/spec
  3233. func ContainerCSIVolumeID(val string) attribute.KeyValue {
  3234. return ContainerCSIVolumeIDKey.String(val)
  3235. }
  3236. // ContainerID returns an attribute KeyValue conforming to the "container.id"
  3237. // semantic conventions. It represents the container ID. Usually a UUID, as for
  3238. // example used to [identify Docker containers]. The UUID might be abbreviated.
  3239. //
  3240. // [identify Docker containers]: https://docs.docker.com/engine/containers/run/#container-identification
  3241. func ContainerID(val string) attribute.KeyValue {
  3242. return ContainerIDKey.String(val)
  3243. }
  3244. // ContainerImageID returns an attribute KeyValue conforming to the
  3245. // "container.image.id" semantic conventions. It represents the runtime specific
  3246. // image identifier. Usually a hash algorithm followed by a UUID.
  3247. func ContainerImageID(val string) attribute.KeyValue {
  3248. return ContainerImageIDKey.String(val)
  3249. }
  3250. // ContainerImageName returns an attribute KeyValue conforming to the
  3251. // "container.image.name" semantic conventions. It represents the name of the
  3252. // image the container was built on.
  3253. func ContainerImageName(val string) attribute.KeyValue {
  3254. return ContainerImageNameKey.String(val)
  3255. }
  3256. // ContainerImageRepoDigests returns an attribute KeyValue conforming to the
  3257. // "container.image.repo_digests" semantic conventions. It represents the repo
  3258. // digests of the container image as provided by the container runtime.
  3259. func ContainerImageRepoDigests(val ...string) attribute.KeyValue {
  3260. return ContainerImageRepoDigestsKey.StringSlice(val)
  3261. }
  3262. // ContainerImageTags returns an attribute KeyValue conforming to the
  3263. // "container.image.tags" semantic conventions. It represents the container image
  3264. // tags. An example can be found in [Docker Image Inspect]. Should be only the
  3265. // `<tag>` section of the full name for example from
  3266. // `registry.example.com/my-org/my-image:<tag>`.
  3267. //
  3268. // [Docker Image Inspect]: https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect
  3269. func ContainerImageTags(val ...string) attribute.KeyValue {
  3270. return ContainerImageTagsKey.StringSlice(val)
  3271. }
  3272. // ContainerLabel returns an attribute KeyValue conforming to the
  3273. // "container.label" semantic conventions. It represents the container labels,
  3274. // `<key>` being the label name, the value being the label value.
  3275. func ContainerLabel(key string, val string) attribute.KeyValue {
  3276. return attribute.String("container.label."+key, val)
  3277. }
  3278. // ContainerName returns an attribute KeyValue conforming to the "container.name"
  3279. // semantic conventions. It represents the container name used by container
  3280. // runtime.
  3281. func ContainerName(val string) attribute.KeyValue {
  3282. return ContainerNameKey.String(val)
  3283. }
  3284. // ContainerRuntimeDescription returns an attribute KeyValue conforming to the
  3285. // "container.runtime.description" semantic conventions. It represents a
  3286. // description about the runtime which could include, for example details about
  3287. // the CRI/API version being used or other customisations.
  3288. func ContainerRuntimeDescription(val string) attribute.KeyValue {
  3289. return ContainerRuntimeDescriptionKey.String(val)
  3290. }
  3291. // ContainerRuntimeName returns an attribute KeyValue conforming to the
  3292. // "container.runtime.name" semantic conventions. It represents the container
  3293. // runtime managing this container.
  3294. func ContainerRuntimeName(val string) attribute.KeyValue {
  3295. return ContainerRuntimeNameKey.String(val)
  3296. }
  3297. // ContainerRuntimeVersion returns an attribute KeyValue conforming to the
  3298. // "container.runtime.version" semantic conventions. It represents the version of
  3299. // the runtime of this process, as returned by the runtime without modification.
  3300. func ContainerRuntimeVersion(val string) attribute.KeyValue {
  3301. return ContainerRuntimeVersionKey.String(val)
  3302. }
  3303. // Namespace: cpu
  3304. const (
  3305. // CPULogicalNumberKey is the attribute Key conforming to the
  3306. // "cpu.logical_number" semantic conventions. It represents the logical CPU
  3307. // number [0..n-1].
  3308. //
  3309. // Type: int
  3310. // RequirementLevel: Recommended
  3311. // Stability: Development
  3312. //
  3313. // Examples: 1
  3314. CPULogicalNumberKey = attribute.Key("cpu.logical_number")
  3315. // CPUModeKey is the attribute Key conforming to the "cpu.mode" semantic
  3316. // conventions. It represents the mode of the CPU.
  3317. //
  3318. // Type: Enum
  3319. // RequirementLevel: Recommended
  3320. // Stability: Development
  3321. //
  3322. // Examples: "user", "system"
  3323. CPUModeKey = attribute.Key("cpu.mode")
  3324. )
  3325. // CPULogicalNumber returns an attribute KeyValue conforming to the
  3326. // "cpu.logical_number" semantic conventions. It represents the logical CPU
  3327. // number [0..n-1].
  3328. func CPULogicalNumber(val int) attribute.KeyValue {
  3329. return CPULogicalNumberKey.Int(val)
  3330. }
  3331. // Enum values for cpu.mode
  3332. var (
  3333. // User
  3334. // Stability: development
  3335. CPUModeUser = CPUModeKey.String("user")
  3336. // System
  3337. // Stability: development
  3338. CPUModeSystem = CPUModeKey.String("system")
  3339. // Nice
  3340. // Stability: development
  3341. CPUModeNice = CPUModeKey.String("nice")
  3342. // Idle
  3343. // Stability: development
  3344. CPUModeIdle = CPUModeKey.String("idle")
  3345. // IO Wait
  3346. // Stability: development
  3347. CPUModeIOWait = CPUModeKey.String("iowait")
  3348. // Interrupt
  3349. // Stability: development
  3350. CPUModeInterrupt = CPUModeKey.String("interrupt")
  3351. // Steal
  3352. // Stability: development
  3353. CPUModeSteal = CPUModeKey.String("steal")
  3354. // Kernel
  3355. // Stability: development
  3356. CPUModeKernel = CPUModeKey.String("kernel")
  3357. )
  3358. // Namespace: db
  3359. const (
  3360. // DBClientConnectionPoolNameKey is the attribute Key conforming to the
  3361. // "db.client.connection.pool.name" semantic conventions. It represents the name
  3362. // of the connection pool; unique within the instrumented application. In case
  3363. // the connection pool implementation doesn't provide a name, instrumentation
  3364. // SHOULD use a combination of parameters that would make the name unique, for
  3365. // example, combining attributes `server.address`, `server.port`, and
  3366. // `db.namespace`, formatted as `server.address:server.port/db.namespace`.
  3367. // Instrumentations that generate connection pool name following different
  3368. // patterns SHOULD document it.
  3369. //
  3370. // Type: string
  3371. // RequirementLevel: Recommended
  3372. // Stability: Development
  3373. //
  3374. // Examples: "myDataSource"
  3375. DBClientConnectionPoolNameKey = attribute.Key("db.client.connection.pool.name")
  3376. // DBClientConnectionStateKey is the attribute Key conforming to the
  3377. // "db.client.connection.state" semantic conventions. It represents the state of
  3378. // a connection in the pool.
  3379. //
  3380. // Type: Enum
  3381. // RequirementLevel: Recommended
  3382. // Stability: Development
  3383. //
  3384. // Examples: "idle"
  3385. DBClientConnectionStateKey = attribute.Key("db.client.connection.state")
  3386. // DBCollectionNameKey is the attribute Key conforming to the
  3387. // "db.collection.name" semantic conventions. It represents the name of a
  3388. // collection (table, container) within the database.
  3389. //
  3390. // Type: string
  3391. // RequirementLevel: Recommended
  3392. // Stability: Stable
  3393. //
  3394. // Examples: "public.users", "customers"
  3395. // Note: It is RECOMMENDED to capture the value as provided by the application
  3396. // without attempting to do any case normalization.
  3397. //
  3398. // The collection name SHOULD NOT be extracted from `db.query.text`,
  3399. // when the database system supports query text with multiple collections
  3400. // in non-batch operations.
  3401. //
  3402. // For batch operations, if the individual operations are known to have the same
  3403. // collection name then that collection name SHOULD be used.
  3404. DBCollectionNameKey = attribute.Key("db.collection.name")
  3405. // DBNamespaceKey is the attribute Key conforming to the "db.namespace" semantic
  3406. // conventions. It represents the name of the database, fully qualified within
  3407. // the server address and port.
  3408. //
  3409. // Type: string
  3410. // RequirementLevel: Recommended
  3411. // Stability: Stable
  3412. //
  3413. // Examples: "customers", "test.users"
  3414. // Note: If a database system has multiple namespace components, they SHOULD be
  3415. // concatenated from the most general to the most specific namespace component,
  3416. // using `|` as a separator between the components. Any missing components (and
  3417. // their associated separators) SHOULD be omitted.
  3418. // Semantic conventions for individual database systems SHOULD document what
  3419. // `db.namespace` means in the context of that system.
  3420. // It is RECOMMENDED to capture the value as provided by the application without
  3421. // attempting to do any case normalization.
  3422. DBNamespaceKey = attribute.Key("db.namespace")
  3423. // DBOperationBatchSizeKey is the attribute Key conforming to the
  3424. // "db.operation.batch.size" semantic conventions. It represents the number of
  3425. // queries included in a batch operation.
  3426. //
  3427. // Type: int
  3428. // RequirementLevel: Recommended
  3429. // Stability: Stable
  3430. //
  3431. // Examples: 2, 3, 4
  3432. // Note: Operations are only considered batches when they contain two or more
  3433. // operations, and so `db.operation.batch.size` SHOULD never be `1`.
  3434. DBOperationBatchSizeKey = attribute.Key("db.operation.batch.size")
  3435. // DBOperationNameKey is the attribute Key conforming to the "db.operation.name"
  3436. // semantic conventions. It represents the name of the operation or command
  3437. // being executed.
  3438. //
  3439. // Type: string
  3440. // RequirementLevel: Recommended
  3441. // Stability: Stable
  3442. //
  3443. // Examples: "findAndModify", "HMSET", "SELECT"
  3444. // Note: It is RECOMMENDED to capture the value as provided by the application
  3445. // without attempting to do any case normalization.
  3446. //
  3447. // The operation name SHOULD NOT be extracted from `db.query.text`,
  3448. // when the database system supports query text with multiple operations
  3449. // in non-batch operations.
  3450. //
  3451. // If spaces can occur in the operation name, multiple consecutive spaces
  3452. // SHOULD be normalized to a single space.
  3453. //
  3454. // For batch operations, if the individual operations are known to have the same
  3455. // operation name
  3456. // then that operation name SHOULD be used prepended by `BATCH `,
  3457. // otherwise `db.operation.name` SHOULD be `BATCH` or some other database
  3458. // system specific term if more applicable.
  3459. DBOperationNameKey = attribute.Key("db.operation.name")
  3460. // DBQuerySummaryKey is the attribute Key conforming to the "db.query.summary"
  3461. // semantic conventions. It represents the low cardinality summary of a database
  3462. // query.
  3463. //
  3464. // Type: string
  3465. // RequirementLevel: Recommended
  3466. // Stability: Stable
  3467. //
  3468. // Examples: "SELECT wuser_table", "INSERT shipping_details SELECT orders", "get
  3469. // user by id"
  3470. // Note: The query summary describes a class of database queries and is useful
  3471. // as a grouping key, especially when analyzing telemetry for database
  3472. // calls involving complex queries.
  3473. //
  3474. // Summary may be available to the instrumentation through
  3475. // instrumentation hooks or other means. If it is not available,
  3476. // instrumentations
  3477. // that support query parsing SHOULD generate a summary following
  3478. // [Generating query summary]
  3479. // section.
  3480. //
  3481. // [Generating query summary]: /docs/database/database-spans.md#generating-a-summary-of-the-query
  3482. DBQuerySummaryKey = attribute.Key("db.query.summary")
  3483. // DBQueryTextKey is the attribute Key conforming to the "db.query.text"
  3484. // semantic conventions. It represents the database query being executed.
  3485. //
  3486. // Type: string
  3487. // RequirementLevel: Recommended
  3488. // Stability: Stable
  3489. //
  3490. // Examples: "SELECT * FROM wuser_table where username = ?", "SET mykey ?"
  3491. // Note: For sanitization see [Sanitization of `db.query.text`].
  3492. // For batch operations, if the individual operations are known to have the same
  3493. // query text then that query text SHOULD be used, otherwise all of the
  3494. // individual query texts SHOULD be concatenated with separator `; ` or some
  3495. // other database system specific separator if more applicable.
  3496. // Parameterized query text SHOULD NOT be sanitized. Even though parameterized
  3497. // query text can potentially have sensitive data, by using a parameterized
  3498. // query the user is giving a strong signal that any sensitive data will be
  3499. // passed as parameter values, and the benefit to observability of capturing the
  3500. // static part of the query text by default outweighs the risk.
  3501. //
  3502. // [Sanitization of `db.query.text`]: /docs/database/database-spans.md#sanitization-of-dbquerytext
  3503. DBQueryTextKey = attribute.Key("db.query.text")
  3504. // DBResponseReturnedRowsKey is the attribute Key conforming to the
  3505. // "db.response.returned_rows" semantic conventions. It represents the number of
  3506. // rows returned by the operation.
  3507. //
  3508. // Type: int
  3509. // RequirementLevel: Recommended
  3510. // Stability: Development
  3511. //
  3512. // Examples: 10, 30, 1000
  3513. DBResponseReturnedRowsKey = attribute.Key("db.response.returned_rows")
  3514. // DBResponseStatusCodeKey is the attribute Key conforming to the
  3515. // "db.response.status_code" semantic conventions. It represents the database
  3516. // response status code.
  3517. //
  3518. // Type: string
  3519. // RequirementLevel: Recommended
  3520. // Stability: Stable
  3521. //
  3522. // Examples: "102", "ORA-17002", "08P01", "404"
  3523. // Note: The status code returned by the database. Usually it represents an
  3524. // error code, but may also represent partial success, warning, or differentiate
  3525. // between various types of successful outcomes.
  3526. // Semantic conventions for individual database systems SHOULD document what
  3527. // `db.response.status_code` means in the context of that system.
  3528. DBResponseStatusCodeKey = attribute.Key("db.response.status_code")
  3529. // DBStoredProcedureNameKey is the attribute Key conforming to the
  3530. // "db.stored_procedure.name" semantic conventions. It represents the name of a
  3531. // stored procedure within the database.
  3532. //
  3533. // Type: string
  3534. // RequirementLevel: Recommended
  3535. // Stability: Stable
  3536. //
  3537. // Examples: "GetCustomer"
  3538. // Note: It is RECOMMENDED to capture the value as provided by the application
  3539. // without attempting to do any case normalization.
  3540. //
  3541. // For batch operations, if the individual operations are known to have the same
  3542. // stored procedure name then that stored procedure name SHOULD be used.
  3543. DBStoredProcedureNameKey = attribute.Key("db.stored_procedure.name")
  3544. // DBSystemNameKey is the attribute Key conforming to the "db.system.name"
  3545. // semantic conventions. It represents the database management system (DBMS)
  3546. // product as identified by the client instrumentation.
  3547. //
  3548. // Type: Enum
  3549. // RequirementLevel: Recommended
  3550. // Stability: Stable
  3551. //
  3552. // Examples:
  3553. // Note: The actual DBMS may differ from the one identified by the client. For
  3554. // example, when using PostgreSQL client libraries to connect to a CockroachDB,
  3555. // the `db.system.name` is set to `postgresql` based on the instrumentation's
  3556. // best knowledge.
  3557. DBSystemNameKey = attribute.Key("db.system.name")
  3558. )
  3559. // DBClientConnectionPoolName returns an attribute KeyValue conforming to the
  3560. // "db.client.connection.pool.name" semantic conventions. It represents the name
  3561. // of the connection pool; unique within the instrumented application. In case
  3562. // the connection pool implementation doesn't provide a name, instrumentation
  3563. // SHOULD use a combination of parameters that would make the name unique, for
  3564. // example, combining attributes `server.address`, `server.port`, and
  3565. // `db.namespace`, formatted as `server.address:server.port/db.namespace`.
  3566. // Instrumentations that generate connection pool name following different
  3567. // patterns SHOULD document it.
  3568. func DBClientConnectionPoolName(val string) attribute.KeyValue {
  3569. return DBClientConnectionPoolNameKey.String(val)
  3570. }
  3571. // DBCollectionName returns an attribute KeyValue conforming to the
  3572. // "db.collection.name" semantic conventions. It represents the name of a
  3573. // collection (table, container) within the database.
  3574. func DBCollectionName(val string) attribute.KeyValue {
  3575. return DBCollectionNameKey.String(val)
  3576. }
  3577. // DBNamespace returns an attribute KeyValue conforming to the "db.namespace"
  3578. // semantic conventions. It represents the name of the database, fully qualified
  3579. // within the server address and port.
  3580. func DBNamespace(val string) attribute.KeyValue {
  3581. return DBNamespaceKey.String(val)
  3582. }
  3583. // DBOperationBatchSize returns an attribute KeyValue conforming to the
  3584. // "db.operation.batch.size" semantic conventions. It represents the number of
  3585. // queries included in a batch operation.
  3586. func DBOperationBatchSize(val int) attribute.KeyValue {
  3587. return DBOperationBatchSizeKey.Int(val)
  3588. }
  3589. // DBOperationName returns an attribute KeyValue conforming to the
  3590. // "db.operation.name" semantic conventions. It represents the name of the
  3591. // operation or command being executed.
  3592. func DBOperationName(val string) attribute.KeyValue {
  3593. return DBOperationNameKey.String(val)
  3594. }
  3595. // DBOperationParameter returns an attribute KeyValue conforming to the
  3596. // "db.operation.parameter" semantic conventions. It represents a database
  3597. // operation parameter, with `<key>` being the parameter name, and the attribute
  3598. // value being a string representation of the parameter value.
  3599. func DBOperationParameter(key string, val string) attribute.KeyValue {
  3600. return attribute.String("db.operation.parameter."+key, val)
  3601. }
  3602. // DBQueryParameter returns an attribute KeyValue conforming to the
  3603. // "db.query.parameter" semantic conventions. It represents a database query
  3604. // parameter, with `<key>` being the parameter name, and the attribute value
  3605. // being a string representation of the parameter value.
  3606. func DBQueryParameter(key string, val string) attribute.KeyValue {
  3607. return attribute.String("db.query.parameter."+key, val)
  3608. }
  3609. // DBQuerySummary returns an attribute KeyValue conforming to the
  3610. // "db.query.summary" semantic conventions. It represents the low cardinality
  3611. // summary of a database query.
  3612. func DBQuerySummary(val string) attribute.KeyValue {
  3613. return DBQuerySummaryKey.String(val)
  3614. }
  3615. // DBQueryText returns an attribute KeyValue conforming to the "db.query.text"
  3616. // semantic conventions. It represents the database query being executed.
  3617. func DBQueryText(val string) attribute.KeyValue {
  3618. return DBQueryTextKey.String(val)
  3619. }
  3620. // DBResponseReturnedRows returns an attribute KeyValue conforming to the
  3621. // "db.response.returned_rows" semantic conventions. It represents the number of
  3622. // rows returned by the operation.
  3623. func DBResponseReturnedRows(val int) attribute.KeyValue {
  3624. return DBResponseReturnedRowsKey.Int(val)
  3625. }
  3626. // DBResponseStatusCode returns an attribute KeyValue conforming to the
  3627. // "db.response.status_code" semantic conventions. It represents the database
  3628. // response status code.
  3629. func DBResponseStatusCode(val string) attribute.KeyValue {
  3630. return DBResponseStatusCodeKey.String(val)
  3631. }
  3632. // DBStoredProcedureName returns an attribute KeyValue conforming to the
  3633. // "db.stored_procedure.name" semantic conventions. It represents the name of a
  3634. // stored procedure within the database.
  3635. func DBStoredProcedureName(val string) attribute.KeyValue {
  3636. return DBStoredProcedureNameKey.String(val)
  3637. }
  3638. // Enum values for db.client.connection.state
  3639. var (
  3640. // idle
  3641. // Stability: development
  3642. DBClientConnectionStateIdle = DBClientConnectionStateKey.String("idle")
  3643. // used
  3644. // Stability: development
  3645. DBClientConnectionStateUsed = DBClientConnectionStateKey.String("used")
  3646. )
  3647. // Enum values for db.system.name
  3648. var (
  3649. // Some other SQL database. Fallback only.
  3650. // Stability: development
  3651. DBSystemNameOtherSQL = DBSystemNameKey.String("other_sql")
  3652. // [Adabas (Adaptable Database System)]
  3653. // Stability: development
  3654. //
  3655. // [Adabas (Adaptable Database System)]: https://documentation.softwareag.com/?pf=adabas
  3656. DBSystemNameSoftwareagAdabas = DBSystemNameKey.String("softwareag.adabas")
  3657. // [Actian Ingres]
  3658. // Stability: development
  3659. //
  3660. // [Actian Ingres]: https://www.actian.com/databases/ingres/
  3661. DBSystemNameActianIngres = DBSystemNameKey.String("actian.ingres")
  3662. // [Amazon DynamoDB]
  3663. // Stability: development
  3664. //
  3665. // [Amazon DynamoDB]: https://aws.amazon.com/pm/dynamodb/
  3666. DBSystemNameAWSDynamoDB = DBSystemNameKey.String("aws.dynamodb")
  3667. // [Amazon Redshift]
  3668. // Stability: development
  3669. //
  3670. // [Amazon Redshift]: https://aws.amazon.com/redshift/
  3671. DBSystemNameAWSRedshift = DBSystemNameKey.String("aws.redshift")
  3672. // [Azure Cosmos DB]
  3673. // Stability: development
  3674. //
  3675. // [Azure Cosmos DB]: https://learn.microsoft.com/azure/cosmos-db
  3676. DBSystemNameAzureCosmosDB = DBSystemNameKey.String("azure.cosmosdb")
  3677. // [InterSystems Caché]
  3678. // Stability: development
  3679. //
  3680. // [InterSystems Caché]: https://www.intersystems.com/products/cache/
  3681. DBSystemNameIntersystemsCache = DBSystemNameKey.String("intersystems.cache")
  3682. // [Apache Cassandra]
  3683. // Stability: development
  3684. //
  3685. // [Apache Cassandra]: https://cassandra.apache.org/
  3686. DBSystemNameCassandra = DBSystemNameKey.String("cassandra")
  3687. // [ClickHouse]
  3688. // Stability: development
  3689. //
  3690. // [ClickHouse]: https://clickhouse.com/
  3691. DBSystemNameClickHouse = DBSystemNameKey.String("clickhouse")
  3692. // [CockroachDB]
  3693. // Stability: development
  3694. //
  3695. // [CockroachDB]: https://www.cockroachlabs.com/
  3696. DBSystemNameCockroachDB = DBSystemNameKey.String("cockroachdb")
  3697. // [Couchbase]
  3698. // Stability: development
  3699. //
  3700. // [Couchbase]: https://www.couchbase.com/
  3701. DBSystemNameCouchbase = DBSystemNameKey.String("couchbase")
  3702. // [Apache CouchDB]
  3703. // Stability: development
  3704. //
  3705. // [Apache CouchDB]: https://couchdb.apache.org/
  3706. DBSystemNameCouchDB = DBSystemNameKey.String("couchdb")
  3707. // [Apache Derby]
  3708. // Stability: development
  3709. //
  3710. // [Apache Derby]: https://db.apache.org/derby/
  3711. DBSystemNameDerby = DBSystemNameKey.String("derby")
  3712. // [Elasticsearch]
  3713. // Stability: development
  3714. //
  3715. // [Elasticsearch]: https://www.elastic.co/elasticsearch
  3716. DBSystemNameElasticsearch = DBSystemNameKey.String("elasticsearch")
  3717. // [Firebird]
  3718. // Stability: development
  3719. //
  3720. // [Firebird]: https://www.firebirdsql.org/
  3721. DBSystemNameFirebirdSQL = DBSystemNameKey.String("firebirdsql")
  3722. // [Google Cloud Spanner]
  3723. // Stability: development
  3724. //
  3725. // [Google Cloud Spanner]: https://cloud.google.com/spanner
  3726. DBSystemNameGCPSpanner = DBSystemNameKey.String("gcp.spanner")
  3727. // [Apache Geode]
  3728. // Stability: development
  3729. //
  3730. // [Apache Geode]: https://geode.apache.org/
  3731. DBSystemNameGeode = DBSystemNameKey.String("geode")
  3732. // [H2 Database]
  3733. // Stability: development
  3734. //
  3735. // [H2 Database]: https://h2database.com/
  3736. DBSystemNameH2database = DBSystemNameKey.String("h2database")
  3737. // [Apache HBase]
  3738. // Stability: development
  3739. //
  3740. // [Apache HBase]: https://hbase.apache.org/
  3741. DBSystemNameHBase = DBSystemNameKey.String("hbase")
  3742. // [Apache Hive]
  3743. // Stability: development
  3744. //
  3745. // [Apache Hive]: https://hive.apache.org/
  3746. DBSystemNameHive = DBSystemNameKey.String("hive")
  3747. // [HyperSQL Database]
  3748. // Stability: development
  3749. //
  3750. // [HyperSQL Database]: https://hsqldb.org/
  3751. DBSystemNameHSQLDB = DBSystemNameKey.String("hsqldb")
  3752. // [IBM Db2]
  3753. // Stability: development
  3754. //
  3755. // [IBM Db2]: https://www.ibm.com/db2
  3756. DBSystemNameIBMDB2 = DBSystemNameKey.String("ibm.db2")
  3757. // [IBM Informix]
  3758. // Stability: development
  3759. //
  3760. // [IBM Informix]: https://www.ibm.com/products/informix
  3761. DBSystemNameIBMInformix = DBSystemNameKey.String("ibm.informix")
  3762. // [IBM Netezza]
  3763. // Stability: development
  3764. //
  3765. // [IBM Netezza]: https://www.ibm.com/products/netezza
  3766. DBSystemNameIBMNetezza = DBSystemNameKey.String("ibm.netezza")
  3767. // [InfluxDB]
  3768. // Stability: development
  3769. //
  3770. // [InfluxDB]: https://www.influxdata.com/
  3771. DBSystemNameInfluxDB = DBSystemNameKey.String("influxdb")
  3772. // [Instant]
  3773. // Stability: development
  3774. //
  3775. // [Instant]: https://www.instantdb.com/
  3776. DBSystemNameInstantDB = DBSystemNameKey.String("instantdb")
  3777. // [MariaDB]
  3778. // Stability: stable
  3779. //
  3780. // [MariaDB]: https://mariadb.org/
  3781. DBSystemNameMariaDB = DBSystemNameKey.String("mariadb")
  3782. // [Memcached]
  3783. // Stability: development
  3784. //
  3785. // [Memcached]: https://memcached.org/
  3786. DBSystemNameMemcached = DBSystemNameKey.String("memcached")
  3787. // [MongoDB]
  3788. // Stability: development
  3789. //
  3790. // [MongoDB]: https://www.mongodb.com/
  3791. DBSystemNameMongoDB = DBSystemNameKey.String("mongodb")
  3792. // [Microsoft SQL Server]
  3793. // Stability: stable
  3794. //
  3795. // [Microsoft SQL Server]: https://www.microsoft.com/sql-server
  3796. DBSystemNameMicrosoftSQLServer = DBSystemNameKey.String("microsoft.sql_server")
  3797. // [MySQL]
  3798. // Stability: stable
  3799. //
  3800. // [MySQL]: https://www.mysql.com/
  3801. DBSystemNameMySQL = DBSystemNameKey.String("mysql")
  3802. // [Neo4j]
  3803. // Stability: development
  3804. //
  3805. // [Neo4j]: https://neo4j.com/
  3806. DBSystemNameNeo4j = DBSystemNameKey.String("neo4j")
  3807. // [OpenSearch]
  3808. // Stability: development
  3809. //
  3810. // [OpenSearch]: https://opensearch.org/
  3811. DBSystemNameOpenSearch = DBSystemNameKey.String("opensearch")
  3812. // [Oracle Database]
  3813. // Stability: development
  3814. //
  3815. // [Oracle Database]: https://www.oracle.com/database/
  3816. DBSystemNameOracleDB = DBSystemNameKey.String("oracle.db")
  3817. // [PostgreSQL]
  3818. // Stability: stable
  3819. //
  3820. // [PostgreSQL]: https://www.postgresql.org/
  3821. DBSystemNamePostgreSQL = DBSystemNameKey.String("postgresql")
  3822. // [Redis]
  3823. // Stability: development
  3824. //
  3825. // [Redis]: https://redis.io/
  3826. DBSystemNameRedis = DBSystemNameKey.String("redis")
  3827. // [SAP HANA]
  3828. // Stability: development
  3829. //
  3830. // [SAP HANA]: https://www.sap.com/products/technology-platform/hana/what-is-sap-hana.html
  3831. DBSystemNameSAPHANA = DBSystemNameKey.String("sap.hana")
  3832. // [SAP MaxDB]
  3833. // Stability: development
  3834. //
  3835. // [SAP MaxDB]: https://maxdb.sap.com/
  3836. DBSystemNameSAPMaxDB = DBSystemNameKey.String("sap.maxdb")
  3837. // [SQLite]
  3838. // Stability: development
  3839. //
  3840. // [SQLite]: https://www.sqlite.org/
  3841. DBSystemNameSQLite = DBSystemNameKey.String("sqlite")
  3842. // [Teradata]
  3843. // Stability: development
  3844. //
  3845. // [Teradata]: https://www.teradata.com/
  3846. DBSystemNameTeradata = DBSystemNameKey.String("teradata")
  3847. // [Trino]
  3848. // Stability: development
  3849. //
  3850. // [Trino]: https://trino.io/
  3851. DBSystemNameTrino = DBSystemNameKey.String("trino")
  3852. )
  3853. // Namespace: deployment
  3854. const (
  3855. // DeploymentEnvironmentNameKey is the attribute Key conforming to the
  3856. // "deployment.environment.name" semantic conventions. It represents the name of
  3857. // the [deployment environment] (aka deployment tier).
  3858. //
  3859. // Type: string
  3860. // RequirementLevel: Recommended
  3861. // Stability: Development
  3862. //
  3863. // Examples: "staging", "production"
  3864. // Note: `deployment.environment.name` does not affect the uniqueness
  3865. // constraints defined through
  3866. // the `service.namespace`, `service.name` and `service.instance.id` resource
  3867. // attributes.
  3868. // This implies that resources carrying the following attribute combinations
  3869. // MUST be
  3870. // considered to be identifying the same service:
  3871. //
  3872. // - `service.name=frontend`, `deployment.environment.name=production`
  3873. // - `service.name=frontend`, `deployment.environment.name=staging`.
  3874. //
  3875. //
  3876. // [deployment environment]: https://wikipedia.org/wiki/Deployment_environment
  3877. DeploymentEnvironmentNameKey = attribute.Key("deployment.environment.name")
  3878. // DeploymentIDKey is the attribute Key conforming to the "deployment.id"
  3879. // semantic conventions. It represents the id of the deployment.
  3880. //
  3881. // Type: string
  3882. // RequirementLevel: Recommended
  3883. // Stability: Development
  3884. //
  3885. // Examples: "1208"
  3886. DeploymentIDKey = attribute.Key("deployment.id")
  3887. // DeploymentNameKey is the attribute Key conforming to the "deployment.name"
  3888. // semantic conventions. It represents the name of the deployment.
  3889. //
  3890. // Type: string
  3891. // RequirementLevel: Recommended
  3892. // Stability: Development
  3893. //
  3894. // Examples: "deploy my app", "deploy-frontend"
  3895. DeploymentNameKey = attribute.Key("deployment.name")
  3896. // DeploymentStatusKey is the attribute Key conforming to the
  3897. // "deployment.status" semantic conventions. It represents the status of the
  3898. // deployment.
  3899. //
  3900. // Type: Enum
  3901. // RequirementLevel: Recommended
  3902. // Stability: Development
  3903. //
  3904. // Examples:
  3905. DeploymentStatusKey = attribute.Key("deployment.status")
  3906. )
  3907. // DeploymentEnvironmentName returns an attribute KeyValue conforming to the
  3908. // "deployment.environment.name" semantic conventions. It represents the name of
  3909. // the [deployment environment] (aka deployment tier).
  3910. //
  3911. // [deployment environment]: https://wikipedia.org/wiki/Deployment_environment
  3912. func DeploymentEnvironmentName(val string) attribute.KeyValue {
  3913. return DeploymentEnvironmentNameKey.String(val)
  3914. }
  3915. // DeploymentID returns an attribute KeyValue conforming to the "deployment.id"
  3916. // semantic conventions. It represents the id of the deployment.
  3917. func DeploymentID(val string) attribute.KeyValue {
  3918. return DeploymentIDKey.String(val)
  3919. }
  3920. // DeploymentName returns an attribute KeyValue conforming to the
  3921. // "deployment.name" semantic conventions. It represents the name of the
  3922. // deployment.
  3923. func DeploymentName(val string) attribute.KeyValue {
  3924. return DeploymentNameKey.String(val)
  3925. }
  3926. // Enum values for deployment.status
  3927. var (
  3928. // failed
  3929. // Stability: development
  3930. DeploymentStatusFailed = DeploymentStatusKey.String("failed")
  3931. // succeeded
  3932. // Stability: development
  3933. DeploymentStatusSucceeded = DeploymentStatusKey.String("succeeded")
  3934. )
  3935. // Namespace: destination
  3936. const (
  3937. // DestinationAddressKey is the attribute Key conforming to the
  3938. // "destination.address" semantic conventions. It represents the destination
  3939. // address - domain name if available without reverse DNS lookup; otherwise, IP
  3940. // address or Unix domain socket name.
  3941. //
  3942. // Type: string
  3943. // RequirementLevel: Recommended
  3944. // Stability: Development
  3945. //
  3946. // Examples: "destination.example.com", "10.1.2.80", "/tmp/my.sock"
  3947. // Note: When observed from the source side, and when communicating through an
  3948. // intermediary, `destination.address` SHOULD represent the destination address
  3949. // behind any intermediaries, for example proxies, if it's available.
  3950. DestinationAddressKey = attribute.Key("destination.address")
  3951. // DestinationPortKey is the attribute Key conforming to the "destination.port"
  3952. // semantic conventions. It represents the destination port number.
  3953. //
  3954. // Type: int
  3955. // RequirementLevel: Recommended
  3956. // Stability: Development
  3957. //
  3958. // Examples: 3389, 2888
  3959. DestinationPortKey = attribute.Key("destination.port")
  3960. )
  3961. // DestinationAddress returns an attribute KeyValue conforming to the
  3962. // "destination.address" semantic conventions. It represents the destination
  3963. // address - domain name if available without reverse DNS lookup; otherwise, IP
  3964. // address or Unix domain socket name.
  3965. func DestinationAddress(val string) attribute.KeyValue {
  3966. return DestinationAddressKey.String(val)
  3967. }
  3968. // DestinationPort returns an attribute KeyValue conforming to the
  3969. // "destination.port" semantic conventions. It represents the destination port
  3970. // number.
  3971. func DestinationPort(val int) attribute.KeyValue {
  3972. return DestinationPortKey.Int(val)
  3973. }
  3974. // Namespace: device
  3975. const (
  3976. // DeviceIDKey is the attribute Key conforming to the "device.id" semantic
  3977. // conventions. It represents a unique identifier representing the device.
  3978. //
  3979. // Type: string
  3980. // RequirementLevel: Recommended
  3981. // Stability: Development
  3982. //
  3983. // Examples: "123456789012345", "01:23:45:67:89:AB"
  3984. // Note: Its value SHOULD be identical for all apps on a device and it SHOULD
  3985. // NOT change if an app is uninstalled and re-installed.
  3986. // However, it might be resettable by the user for all apps on a device.
  3987. // Hardware IDs (e.g. vendor-specific serial number, IMEI or MAC address) MAY be
  3988. // used as values.
  3989. //
  3990. // More information about Android identifier best practices can be found in the
  3991. // [Android user data IDs guide].
  3992. //
  3993. // > [!WARNING]> This attribute may contain sensitive (PII) information. Caution
  3994. // > should be taken when storing personal data or anything which can identify a
  3995. // > user. GDPR and data protection laws may apply,
  3996. // > ensure you do your own due diligence.> Due to these reasons, this
  3997. // > identifier is not recommended for consumer applications and will likely
  3998. // > result in rejection from both Google Play and App Store.
  3999. // > However, it may be appropriate for specific enterprise scenarios, such as
  4000. // > kiosk devices or enterprise-managed devices, with appropriate compliance
  4001. // > clearance.
  4002. // > Any instrumentation providing this identifier MUST implement it as an
  4003. // > opt-in feature.> See [`app.installation.id`]> for a more
  4004. // > privacy-preserving alternative.
  4005. //
  4006. // [Android user data IDs guide]: https://developer.android.com/training/articles/user-data-ids
  4007. // [`app.installation.id`]: /docs/registry/attributes/app.md#app-installation-id
  4008. DeviceIDKey = attribute.Key("device.id")
  4009. // DeviceManufacturerKey is the attribute Key conforming to the
  4010. // "device.manufacturer" semantic conventions. It represents the name of the
  4011. // device manufacturer.
  4012. //
  4013. // Type: string
  4014. // RequirementLevel: Recommended
  4015. // Stability: Development
  4016. //
  4017. // Examples: "Apple", "Samsung"
  4018. // Note: The Android OS provides this field via [Build]. iOS apps SHOULD
  4019. // hardcode the value `Apple`.
  4020. //
  4021. // [Build]: https://developer.android.com/reference/android/os/Build#MANUFACTURER
  4022. DeviceManufacturerKey = attribute.Key("device.manufacturer")
  4023. // DeviceModelIdentifierKey is the attribute Key conforming to the
  4024. // "device.model.identifier" semantic conventions. It represents the model
  4025. // identifier for the device.
  4026. //
  4027. // Type: string
  4028. // RequirementLevel: Recommended
  4029. // Stability: Development
  4030. //
  4031. // Examples: "iPhone3,4", "SM-G920F"
  4032. // Note: It's recommended this value represents a machine-readable version of
  4033. // the model identifier rather than the market or consumer-friendly name of the
  4034. // device.
  4035. DeviceModelIdentifierKey = attribute.Key("device.model.identifier")
  4036. // DeviceModelNameKey is the attribute Key conforming to the "device.model.name"
  4037. // semantic conventions. It represents the marketing name for the device model.
  4038. //
  4039. // Type: string
  4040. // RequirementLevel: Recommended
  4041. // Stability: Development
  4042. //
  4043. // Examples: "iPhone 6s Plus", "Samsung Galaxy S6"
  4044. // Note: It's recommended this value represents a human-readable version of the
  4045. // device model rather than a machine-readable alternative.
  4046. DeviceModelNameKey = attribute.Key("device.model.name")
  4047. )
  4048. // DeviceID returns an attribute KeyValue conforming to the "device.id" semantic
  4049. // conventions. It represents a unique identifier representing the device.
  4050. func DeviceID(val string) attribute.KeyValue {
  4051. return DeviceIDKey.String(val)
  4052. }
  4053. // DeviceManufacturer returns an attribute KeyValue conforming to the
  4054. // "device.manufacturer" semantic conventions. It represents the name of the
  4055. // device manufacturer.
  4056. func DeviceManufacturer(val string) attribute.KeyValue {
  4057. return DeviceManufacturerKey.String(val)
  4058. }
  4059. // DeviceModelIdentifier returns an attribute KeyValue conforming to the
  4060. // "device.model.identifier" semantic conventions. It represents the model
  4061. // identifier for the device.
  4062. func DeviceModelIdentifier(val string) attribute.KeyValue {
  4063. return DeviceModelIdentifierKey.String(val)
  4064. }
  4065. // DeviceModelName returns an attribute KeyValue conforming to the
  4066. // "device.model.name" semantic conventions. It represents the marketing name for
  4067. // the device model.
  4068. func DeviceModelName(val string) attribute.KeyValue {
  4069. return DeviceModelNameKey.String(val)
  4070. }
  4071. // Namespace: disk
  4072. const (
  4073. // DiskIODirectionKey is the attribute Key conforming to the "disk.io.direction"
  4074. // semantic conventions. It represents the disk IO operation direction.
  4075. //
  4076. // Type: Enum
  4077. // RequirementLevel: Recommended
  4078. // Stability: Development
  4079. //
  4080. // Examples: "read"
  4081. DiskIODirectionKey = attribute.Key("disk.io.direction")
  4082. )
  4083. // Enum values for disk.io.direction
  4084. var (
  4085. // read
  4086. // Stability: development
  4087. DiskIODirectionRead = DiskIODirectionKey.String("read")
  4088. // write
  4089. // Stability: development
  4090. DiskIODirectionWrite = DiskIODirectionKey.String("write")
  4091. )
  4092. // Namespace: dns
  4093. const (
  4094. // DNSAnswersKey is the attribute Key conforming to the "dns.answers" semantic
  4095. // conventions. It represents the list of IPv4 or IPv6 addresses resolved during
  4096. // DNS lookup.
  4097. //
  4098. // Type: string[]
  4099. // RequirementLevel: Recommended
  4100. // Stability: Development
  4101. //
  4102. // Examples: "10.0.0.1", "2001:0db8:85a3:0000:0000:8a2e:0370:7334"
  4103. DNSAnswersKey = attribute.Key("dns.answers")
  4104. // DNSQuestionNameKey is the attribute Key conforming to the "dns.question.name"
  4105. // semantic conventions. It represents the name being queried.
  4106. //
  4107. // Type: string
  4108. // RequirementLevel: Recommended
  4109. // Stability: Development
  4110. //
  4111. // Examples: "www.example.com", "opentelemetry.io"
  4112. // Note: If the name field contains non-printable characters (below 32 or above
  4113. // 126), those characters should be represented as escaped base 10 integers
  4114. // (\DDD). Back slashes and quotes should be escaped. Tabs, carriage returns,
  4115. // and line feeds should be converted to \t, \r, and \n respectively.
  4116. DNSQuestionNameKey = attribute.Key("dns.question.name")
  4117. )
  4118. // DNSAnswers returns an attribute KeyValue conforming to the "dns.answers"
  4119. // semantic conventions. It represents the list of IPv4 or IPv6 addresses
  4120. // resolved during DNS lookup.
  4121. func DNSAnswers(val ...string) attribute.KeyValue {
  4122. return DNSAnswersKey.StringSlice(val)
  4123. }
  4124. // DNSQuestionName returns an attribute KeyValue conforming to the
  4125. // "dns.question.name" semantic conventions. It represents the name being
  4126. // queried.
  4127. func DNSQuestionName(val string) attribute.KeyValue {
  4128. return DNSQuestionNameKey.String(val)
  4129. }
  4130. // Namespace: elasticsearch
  4131. const (
  4132. // ElasticsearchNodeNameKey is the attribute Key conforming to the
  4133. // "elasticsearch.node.name" semantic conventions. It represents the represents
  4134. // the human-readable identifier of the node/instance to which a request was
  4135. // routed.
  4136. //
  4137. // Type: string
  4138. // RequirementLevel: Recommended
  4139. // Stability: Development
  4140. //
  4141. // Examples: "instance-0000000001"
  4142. ElasticsearchNodeNameKey = attribute.Key("elasticsearch.node.name")
  4143. )
  4144. // ElasticsearchNodeName returns an attribute KeyValue conforming to the
  4145. // "elasticsearch.node.name" semantic conventions. It represents the represents
  4146. // the human-readable identifier of the node/instance to which a request was
  4147. // routed.
  4148. func ElasticsearchNodeName(val string) attribute.KeyValue {
  4149. return ElasticsearchNodeNameKey.String(val)
  4150. }
  4151. // Namespace: enduser
  4152. const (
  4153. // EnduserIDKey is the attribute Key conforming to the "enduser.id" semantic
  4154. // conventions. It represents the unique identifier of an end user in the
  4155. // system. It maybe a username, email address, or other identifier.
  4156. //
  4157. // Type: string
  4158. // RequirementLevel: Recommended
  4159. // Stability: Development
  4160. //
  4161. // Examples: "username"
  4162. // Note: Unique identifier of an end user in the system.
  4163. //
  4164. // > [!Warning]
  4165. // > This field contains sensitive (PII) information.
  4166. EnduserIDKey = attribute.Key("enduser.id")
  4167. // EnduserPseudoIDKey is the attribute Key conforming to the "enduser.pseudo.id"
  4168. // semantic conventions. It represents the pseudonymous identifier of an end
  4169. // user. This identifier should be a random value that is not directly linked or
  4170. // associated with the end user's actual identity.
  4171. //
  4172. // Type: string
  4173. // RequirementLevel: Recommended
  4174. // Stability: Development
  4175. //
  4176. // Examples: "QdH5CAWJgqVT4rOr0qtumf"
  4177. // Note: Pseudonymous identifier of an end user.
  4178. //
  4179. // > [!Warning]
  4180. // > This field contains sensitive (linkable PII) information.
  4181. EnduserPseudoIDKey = attribute.Key("enduser.pseudo.id")
  4182. )
  4183. // EnduserID returns an attribute KeyValue conforming to the "enduser.id"
  4184. // semantic conventions. It represents the unique identifier of an end user in
  4185. // the system. It maybe a username, email address, or other identifier.
  4186. func EnduserID(val string) attribute.KeyValue {
  4187. return EnduserIDKey.String(val)
  4188. }
  4189. // EnduserPseudoID returns an attribute KeyValue conforming to the
  4190. // "enduser.pseudo.id" semantic conventions. It represents the pseudonymous
  4191. // identifier of an end user. This identifier should be a random value that is
  4192. // not directly linked or associated with the end user's actual identity.
  4193. func EnduserPseudoID(val string) attribute.KeyValue {
  4194. return EnduserPseudoIDKey.String(val)
  4195. }
  4196. // Namespace: error
  4197. const (
  4198. // ErrorMessageKey is the attribute Key conforming to the "error.message"
  4199. // semantic conventions. It represents a message providing more detail about an
  4200. // error in human-readable form.
  4201. //
  4202. // Type: string
  4203. // RequirementLevel: Recommended
  4204. // Stability: Development
  4205. //
  4206. // Examples: "Unexpected input type: string", "The user has exceeded their
  4207. // storage quota"
  4208. // Note: `error.message` should provide additional context and detail about an
  4209. // error.
  4210. // It is NOT RECOMMENDED to duplicate the value of `error.type` in
  4211. // `error.message`.
  4212. // It is also NOT RECOMMENDED to duplicate the value of `exception.message` in
  4213. // `error.message`.
  4214. //
  4215. // `error.message` is NOT RECOMMENDED for metrics or spans due to its unbounded
  4216. // cardinality and overlap with span status.
  4217. ErrorMessageKey = attribute.Key("error.message")
  4218. // ErrorTypeKey is the attribute Key conforming to the "error.type" semantic
  4219. // conventions. It represents the describes a class of error the operation ended
  4220. // with.
  4221. //
  4222. // Type: Enum
  4223. // RequirementLevel: Recommended
  4224. // Stability: Stable
  4225. //
  4226. // Examples: "timeout", "java.net.UnknownHostException",
  4227. // "server_certificate_invalid", "500"
  4228. // Note: The `error.type` SHOULD be predictable, and SHOULD have low
  4229. // cardinality.
  4230. //
  4231. // When `error.type` is set to a type (e.g., an exception type), its
  4232. // canonical class name identifying the type within the artifact SHOULD be used.
  4233. //
  4234. // Instrumentations SHOULD document the list of errors they report.
  4235. //
  4236. // The cardinality of `error.type` within one instrumentation library SHOULD be
  4237. // low.
  4238. // Telemetry consumers that aggregate data from multiple instrumentation
  4239. // libraries and applications
  4240. // should be prepared for `error.type` to have high cardinality at query time
  4241. // when no
  4242. // additional filters are applied.
  4243. //
  4244. // If the operation has completed successfully, instrumentations SHOULD NOT set
  4245. // `error.type`.
  4246. //
  4247. // If a specific domain defines its own set of error identifiers (such as HTTP
  4248. // or gRPC status codes),
  4249. // it's RECOMMENDED to:
  4250. //
  4251. // - Use a domain-specific attribute
  4252. // - Set `error.type` to capture all errors, regardless of whether they are
  4253. // defined within the domain-specific set or not.
  4254. ErrorTypeKey = attribute.Key("error.type")
  4255. )
  4256. // ErrorMessage returns an attribute KeyValue conforming to the "error.message"
  4257. // semantic conventions. It represents a message providing more detail about an
  4258. // error in human-readable form.
  4259. func ErrorMessage(val string) attribute.KeyValue {
  4260. return ErrorMessageKey.String(val)
  4261. }
  4262. // Enum values for error.type
  4263. var (
  4264. // A fallback error value to be used when the instrumentation doesn't define a
  4265. // custom value.
  4266. //
  4267. // Stability: stable
  4268. ErrorTypeOther = ErrorTypeKey.String("_OTHER")
  4269. )
  4270. // Namespace: exception
  4271. const (
  4272. // ExceptionMessageKey is the attribute Key conforming to the
  4273. // "exception.message" semantic conventions. It represents the exception
  4274. // message.
  4275. //
  4276. // Type: string
  4277. // RequirementLevel: Recommended
  4278. // Stability: Stable
  4279. //
  4280. // Examples: "Division by zero", "Can't convert 'int' object to str implicitly"
  4281. ExceptionMessageKey = attribute.Key("exception.message")
  4282. // ExceptionStacktraceKey is the attribute Key conforming to the
  4283. // "exception.stacktrace" semantic conventions. It represents a stacktrace as a
  4284. // string in the natural representation for the language runtime. The
  4285. // representation is to be determined and documented by each language SIG.
  4286. //
  4287. // Type: string
  4288. // RequirementLevel: Recommended
  4289. // Stability: Stable
  4290. //
  4291. // Examples: Exception in thread "main" java.lang.RuntimeException: Test
  4292. // exception\n at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at
  4293. // com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at
  4294. // com.example.GenerateTrace.main(GenerateTrace.java:5)
  4295. ExceptionStacktraceKey = attribute.Key("exception.stacktrace")
  4296. // ExceptionTypeKey is the attribute Key conforming to the "exception.type"
  4297. // semantic conventions. It represents the type of the exception (its
  4298. // fully-qualified class name, if applicable). The dynamic type of the exception
  4299. // should be preferred over the static type in languages that support it.
  4300. //
  4301. // Type: string
  4302. // RequirementLevel: Recommended
  4303. // Stability: Stable
  4304. //
  4305. // Examples: "java.net.ConnectException", "OSError"
  4306. ExceptionTypeKey = attribute.Key("exception.type")
  4307. )
  4308. // ExceptionMessage returns an attribute KeyValue conforming to the
  4309. // "exception.message" semantic conventions. It represents the exception message.
  4310. func ExceptionMessage(val string) attribute.KeyValue {
  4311. return ExceptionMessageKey.String(val)
  4312. }
  4313. // ExceptionStacktrace returns an attribute KeyValue conforming to the
  4314. // "exception.stacktrace" semantic conventions. It represents a stacktrace as a
  4315. // string in the natural representation for the language runtime. The
  4316. // representation is to be determined and documented by each language SIG.
  4317. func ExceptionStacktrace(val string) attribute.KeyValue {
  4318. return ExceptionStacktraceKey.String(val)
  4319. }
  4320. // ExceptionType returns an attribute KeyValue conforming to the "exception.type"
  4321. // semantic conventions. It represents the type of the exception (its
  4322. // fully-qualified class name, if applicable). The dynamic type of the exception
  4323. // should be preferred over the static type in languages that support it.
  4324. func ExceptionType(val string) attribute.KeyValue {
  4325. return ExceptionTypeKey.String(val)
  4326. }
  4327. // Namespace: faas
  4328. const (
  4329. // FaaSColdstartKey is the attribute Key conforming to the "faas.coldstart"
  4330. // semantic conventions. It represents a boolean that is true if the serverless
  4331. // function is executed for the first time (aka cold-start).
  4332. //
  4333. // Type: boolean
  4334. // RequirementLevel: Recommended
  4335. // Stability: Development
  4336. //
  4337. // Examples:
  4338. FaaSColdstartKey = attribute.Key("faas.coldstart")
  4339. // FaaSCronKey is the attribute Key conforming to the "faas.cron" semantic
  4340. // conventions. It represents a string containing the schedule period as
  4341. // [Cron Expression].
  4342. //
  4343. // Type: string
  4344. // RequirementLevel: Recommended
  4345. // Stability: Development
  4346. //
  4347. // Examples: 0/5 * * * ? *
  4348. //
  4349. // [Cron Expression]: https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm
  4350. FaaSCronKey = attribute.Key("faas.cron")
  4351. // FaaSDocumentCollectionKey is the attribute Key conforming to the
  4352. // "faas.document.collection" semantic conventions. It represents the name of
  4353. // the source on which the triggering operation was performed. For example, in
  4354. // Cloud Storage or S3 corresponds to the bucket name, and in Cosmos DB to the
  4355. // database name.
  4356. //
  4357. // Type: string
  4358. // RequirementLevel: Recommended
  4359. // Stability: Development
  4360. //
  4361. // Examples: "myBucketName", "myDbName"
  4362. FaaSDocumentCollectionKey = attribute.Key("faas.document.collection")
  4363. // FaaSDocumentNameKey is the attribute Key conforming to the
  4364. // "faas.document.name" semantic conventions. It represents the document
  4365. // name/table subjected to the operation. For example, in Cloud Storage or S3 is
  4366. // the name of the file, and in Cosmos DB the table name.
  4367. //
  4368. // Type: string
  4369. // RequirementLevel: Recommended
  4370. // Stability: Development
  4371. //
  4372. // Examples: "myFile.txt", "myTableName"
  4373. FaaSDocumentNameKey = attribute.Key("faas.document.name")
  4374. // FaaSDocumentOperationKey is the attribute Key conforming to the
  4375. // "faas.document.operation" semantic conventions. It represents the describes
  4376. // the type of the operation that was performed on the data.
  4377. //
  4378. // Type: Enum
  4379. // RequirementLevel: Recommended
  4380. // Stability: Development
  4381. //
  4382. // Examples:
  4383. FaaSDocumentOperationKey = attribute.Key("faas.document.operation")
  4384. // FaaSDocumentTimeKey is the attribute Key conforming to the
  4385. // "faas.document.time" semantic conventions. It represents a string containing
  4386. // the time when the data was accessed in the [ISO 8601] format expressed in
  4387. // [UTC].
  4388. //
  4389. // Type: string
  4390. // RequirementLevel: Recommended
  4391. // Stability: Development
  4392. //
  4393. // Examples: 2020-01-23T13:47:06Z
  4394. //
  4395. // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
  4396. // [UTC]: https://www.w3.org/TR/NOTE-datetime
  4397. FaaSDocumentTimeKey = attribute.Key("faas.document.time")
  4398. // FaaSInstanceKey is the attribute Key conforming to the "faas.instance"
  4399. // semantic conventions. It represents the execution environment ID as a string,
  4400. // that will be potentially reused for other invocations to the same
  4401. // function/function version.
  4402. //
  4403. // Type: string
  4404. // RequirementLevel: Recommended
  4405. // Stability: Development
  4406. //
  4407. // Examples: "2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de"
  4408. // Note: - **AWS Lambda:** Use the (full) log stream name.
  4409. FaaSInstanceKey = attribute.Key("faas.instance")
  4410. // FaaSInvocationIDKey is the attribute Key conforming to the
  4411. // "faas.invocation_id" semantic conventions. It represents the invocation ID of
  4412. // the current function invocation.
  4413. //
  4414. // Type: string
  4415. // RequirementLevel: Recommended
  4416. // Stability: Development
  4417. //
  4418. // Examples: af9d5aa4-a685-4c5f-a22b-444f80b3cc28
  4419. FaaSInvocationIDKey = attribute.Key("faas.invocation_id")
  4420. // FaaSInvokedNameKey is the attribute Key conforming to the "faas.invoked_name"
  4421. // semantic conventions. It represents the name of the invoked function.
  4422. //
  4423. // Type: string
  4424. // RequirementLevel: Recommended
  4425. // Stability: Development
  4426. //
  4427. // Examples: my-function
  4428. // Note: SHOULD be equal to the `faas.name` resource attribute of the invoked
  4429. // function.
  4430. FaaSInvokedNameKey = attribute.Key("faas.invoked_name")
  4431. // FaaSInvokedProviderKey is the attribute Key conforming to the
  4432. // "faas.invoked_provider" semantic conventions. It represents the cloud
  4433. // provider of the invoked function.
  4434. //
  4435. // Type: Enum
  4436. // RequirementLevel: Recommended
  4437. // Stability: Development
  4438. //
  4439. // Examples:
  4440. // Note: SHOULD be equal to the `cloud.provider` resource attribute of the
  4441. // invoked function.
  4442. FaaSInvokedProviderKey = attribute.Key("faas.invoked_provider")
  4443. // FaaSInvokedRegionKey is the attribute Key conforming to the
  4444. // "faas.invoked_region" semantic conventions. It represents the cloud region of
  4445. // the invoked function.
  4446. //
  4447. // Type: string
  4448. // RequirementLevel: Recommended
  4449. // Stability: Development
  4450. //
  4451. // Examples: eu-central-1
  4452. // Note: SHOULD be equal to the `cloud.region` resource attribute of the invoked
  4453. // function.
  4454. FaaSInvokedRegionKey = attribute.Key("faas.invoked_region")
  4455. // FaaSMaxMemoryKey is the attribute Key conforming to the "faas.max_memory"
  4456. // semantic conventions. It represents the amount of memory available to the
  4457. // serverless function converted to Bytes.
  4458. //
  4459. // Type: int
  4460. // RequirementLevel: Recommended
  4461. // Stability: Development
  4462. //
  4463. // Note: It's recommended to set this attribute since e.g. too little memory can
  4464. // easily stop a Java AWS Lambda function from working correctly. On AWS Lambda,
  4465. // the environment variable `AWS_LAMBDA_FUNCTION_MEMORY_SIZE` provides this
  4466. // information (which must be multiplied by 1,048,576).
  4467. FaaSMaxMemoryKey = attribute.Key("faas.max_memory")
  4468. // FaaSNameKey is the attribute Key conforming to the "faas.name" semantic
  4469. // conventions. It represents the name of the single function that this runtime
  4470. // instance executes.
  4471. //
  4472. // Type: string
  4473. // RequirementLevel: Recommended
  4474. // Stability: Development
  4475. //
  4476. // Examples: "my-function", "myazurefunctionapp/some-function-name"
  4477. // Note: This is the name of the function as configured/deployed on the FaaS
  4478. // platform and is usually different from the name of the callback
  4479. // function (which may be stored in the
  4480. // [`code.namespace`/`code.function.name`]
  4481. // span attributes).
  4482. //
  4483. // For some cloud providers, the above definition is ambiguous. The following
  4484. // definition of function name MUST be used for this attribute
  4485. // (and consequently the span name) for the listed cloud providers/products:
  4486. //
  4487. // - **Azure:** The full name `<FUNCAPP>/<FUNC>`, i.e., function app name
  4488. // followed by a forward slash followed by the function name (this form
  4489. // can also be seen in the resource JSON for the function).
  4490. // This means that a span attribute MUST be used, as an Azure function
  4491. // app can host multiple functions that would usually share
  4492. // a TracerProvider (see also the `cloud.resource_id` attribute).
  4493. //
  4494. //
  4495. // [`code.namespace`/`code.function.name`]: /docs/general/attributes.md#source-code-attributes
  4496. FaaSNameKey = attribute.Key("faas.name")
  4497. // FaaSTimeKey is the attribute Key conforming to the "faas.time" semantic
  4498. // conventions. It represents a string containing the function invocation time
  4499. // in the [ISO 8601] format expressed in [UTC].
  4500. //
  4501. // Type: string
  4502. // RequirementLevel: Recommended
  4503. // Stability: Development
  4504. //
  4505. // Examples: 2020-01-23T13:47:06Z
  4506. //
  4507. // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
  4508. // [UTC]: https://www.w3.org/TR/NOTE-datetime
  4509. FaaSTimeKey = attribute.Key("faas.time")
  4510. // FaaSTriggerKey is the attribute Key conforming to the "faas.trigger" semantic
  4511. // conventions. It represents the type of the trigger which caused this function
  4512. // invocation.
  4513. //
  4514. // Type: Enum
  4515. // RequirementLevel: Recommended
  4516. // Stability: Development
  4517. //
  4518. // Examples:
  4519. FaaSTriggerKey = attribute.Key("faas.trigger")
  4520. // FaaSVersionKey is the attribute Key conforming to the "faas.version" semantic
  4521. // conventions. It represents the immutable version of the function being
  4522. // executed.
  4523. //
  4524. // Type: string
  4525. // RequirementLevel: Recommended
  4526. // Stability: Development
  4527. //
  4528. // Examples: "26", "pinkfroid-00002"
  4529. // Note: Depending on the cloud provider and platform, use:
  4530. //
  4531. // - **AWS Lambda:** The [function version]
  4532. // (an integer represented as a decimal string).
  4533. // - **Google Cloud Run (Services):** The [revision]
  4534. // (i.e., the function name plus the revision suffix).
  4535. // - **Google Cloud Functions:** The value of the
  4536. // [`K_REVISION` environment variable].
  4537. // - **Azure Functions:** Not applicable. Do not set this attribute.
  4538. //
  4539. //
  4540. // [function version]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html
  4541. // [revision]: https://cloud.google.com/run/docs/managing/revisions
  4542. // [`K_REVISION` environment variable]: https://cloud.google.com/functions/docs/env-var#runtime_environment_variables_set_automatically
  4543. FaaSVersionKey = attribute.Key("faas.version")
  4544. )
  4545. // FaaSColdstart returns an attribute KeyValue conforming to the "faas.coldstart"
  4546. // semantic conventions. It represents a boolean that is true if the serverless
  4547. // function is executed for the first time (aka cold-start).
  4548. func FaaSColdstart(val bool) attribute.KeyValue {
  4549. return FaaSColdstartKey.Bool(val)
  4550. }
  4551. // FaaSCron returns an attribute KeyValue conforming to the "faas.cron" semantic
  4552. // conventions. It represents a string containing the schedule period as
  4553. // [Cron Expression].
  4554. //
  4555. // [Cron Expression]: https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm
  4556. func FaaSCron(val string) attribute.KeyValue {
  4557. return FaaSCronKey.String(val)
  4558. }
  4559. // FaaSDocumentCollection returns an attribute KeyValue conforming to the
  4560. // "faas.document.collection" semantic conventions. It represents the name of the
  4561. // source on which the triggering operation was performed. For example, in Cloud
  4562. // Storage or S3 corresponds to the bucket name, and in Cosmos DB to the database
  4563. // name.
  4564. func FaaSDocumentCollection(val string) attribute.KeyValue {
  4565. return FaaSDocumentCollectionKey.String(val)
  4566. }
  4567. // FaaSDocumentName returns an attribute KeyValue conforming to the
  4568. // "faas.document.name" semantic conventions. It represents the document
  4569. // name/table subjected to the operation. For example, in Cloud Storage or S3 is
  4570. // the name of the file, and in Cosmos DB the table name.
  4571. func FaaSDocumentName(val string) attribute.KeyValue {
  4572. return FaaSDocumentNameKey.String(val)
  4573. }
  4574. // FaaSDocumentTime returns an attribute KeyValue conforming to the
  4575. // "faas.document.time" semantic conventions. It represents a string containing
  4576. // the time when the data was accessed in the [ISO 8601] format expressed in
  4577. // [UTC].
  4578. //
  4579. // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
  4580. // [UTC]: https://www.w3.org/TR/NOTE-datetime
  4581. func FaaSDocumentTime(val string) attribute.KeyValue {
  4582. return FaaSDocumentTimeKey.String(val)
  4583. }
  4584. // FaaSInstance returns an attribute KeyValue conforming to the "faas.instance"
  4585. // semantic conventions. It represents the execution environment ID as a string,
  4586. // that will be potentially reused for other invocations to the same
  4587. // function/function version.
  4588. func FaaSInstance(val string) attribute.KeyValue {
  4589. return FaaSInstanceKey.String(val)
  4590. }
  4591. // FaaSInvocationID returns an attribute KeyValue conforming to the
  4592. // "faas.invocation_id" semantic conventions. It represents the invocation ID of
  4593. // the current function invocation.
  4594. func FaaSInvocationID(val string) attribute.KeyValue {
  4595. return FaaSInvocationIDKey.String(val)
  4596. }
  4597. // FaaSInvokedName returns an attribute KeyValue conforming to the
  4598. // "faas.invoked_name" semantic conventions. It represents the name of the
  4599. // invoked function.
  4600. func FaaSInvokedName(val string) attribute.KeyValue {
  4601. return FaaSInvokedNameKey.String(val)
  4602. }
  4603. // FaaSInvokedRegion returns an attribute KeyValue conforming to the
  4604. // "faas.invoked_region" semantic conventions. It represents the cloud region of
  4605. // the invoked function.
  4606. func FaaSInvokedRegion(val string) attribute.KeyValue {
  4607. return FaaSInvokedRegionKey.String(val)
  4608. }
  4609. // FaaSMaxMemory returns an attribute KeyValue conforming to the
  4610. // "faas.max_memory" semantic conventions. It represents the amount of memory
  4611. // available to the serverless function converted to Bytes.
  4612. func FaaSMaxMemory(val int) attribute.KeyValue {
  4613. return FaaSMaxMemoryKey.Int(val)
  4614. }
  4615. // FaaSName returns an attribute KeyValue conforming to the "faas.name" semantic
  4616. // conventions. It represents the name of the single function that this runtime
  4617. // instance executes.
  4618. func FaaSName(val string) attribute.KeyValue {
  4619. return FaaSNameKey.String(val)
  4620. }
  4621. // FaaSTime returns an attribute KeyValue conforming to the "faas.time" semantic
  4622. // conventions. It represents a string containing the function invocation time in
  4623. // the [ISO 8601] format expressed in [UTC].
  4624. //
  4625. // [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
  4626. // [UTC]: https://www.w3.org/TR/NOTE-datetime
  4627. func FaaSTime(val string) attribute.KeyValue {
  4628. return FaaSTimeKey.String(val)
  4629. }
  4630. // FaaSVersion returns an attribute KeyValue conforming to the "faas.version"
  4631. // semantic conventions. It represents the immutable version of the function
  4632. // being executed.
  4633. func FaaSVersion(val string) attribute.KeyValue {
  4634. return FaaSVersionKey.String(val)
  4635. }
  4636. // Enum values for faas.document.operation
  4637. var (
  4638. // When a new object is created.
  4639. // Stability: development
  4640. FaaSDocumentOperationInsert = FaaSDocumentOperationKey.String("insert")
  4641. // When an object is modified.
  4642. // Stability: development
  4643. FaaSDocumentOperationEdit = FaaSDocumentOperationKey.String("edit")
  4644. // When an object is deleted.
  4645. // Stability: development
  4646. FaaSDocumentOperationDelete = FaaSDocumentOperationKey.String("delete")
  4647. )
  4648. // Enum values for faas.invoked_provider
  4649. var (
  4650. // Alibaba Cloud
  4651. // Stability: development
  4652. FaaSInvokedProviderAlibabaCloud = FaaSInvokedProviderKey.String("alibaba_cloud")
  4653. // Amazon Web Services
  4654. // Stability: development
  4655. FaaSInvokedProviderAWS = FaaSInvokedProviderKey.String("aws")
  4656. // Microsoft Azure
  4657. // Stability: development
  4658. FaaSInvokedProviderAzure = FaaSInvokedProviderKey.String("azure")
  4659. // Google Cloud Platform
  4660. // Stability: development
  4661. FaaSInvokedProviderGCP = FaaSInvokedProviderKey.String("gcp")
  4662. // Tencent Cloud
  4663. // Stability: development
  4664. FaaSInvokedProviderTencentCloud = FaaSInvokedProviderKey.String("tencent_cloud")
  4665. )
  4666. // Enum values for faas.trigger
  4667. var (
  4668. // A response to some data source operation such as a database or filesystem
  4669. // read/write
  4670. // Stability: development
  4671. FaaSTriggerDatasource = FaaSTriggerKey.String("datasource")
  4672. // To provide an answer to an inbound HTTP request
  4673. // Stability: development
  4674. FaaSTriggerHTTP = FaaSTriggerKey.String("http")
  4675. // A function is set to be executed when messages are sent to a messaging system
  4676. // Stability: development
  4677. FaaSTriggerPubSub = FaaSTriggerKey.String("pubsub")
  4678. // A function is scheduled to be executed regularly
  4679. // Stability: development
  4680. FaaSTriggerTimer = FaaSTriggerKey.String("timer")
  4681. // If none of the others apply
  4682. // Stability: development
  4683. FaaSTriggerOther = FaaSTriggerKey.String("other")
  4684. )
  4685. // Namespace: feature_flag
  4686. const (
  4687. // FeatureFlagContextIDKey is the attribute Key conforming to the
  4688. // "feature_flag.context.id" semantic conventions. It represents the unique
  4689. // identifier for the flag evaluation context. For example, the targeting key.
  4690. //
  4691. // Type: string
  4692. // RequirementLevel: Recommended
  4693. // Stability: Release_Candidate
  4694. //
  4695. // Examples: "5157782b-2203-4c80-a857-dbbd5e7761db"
  4696. FeatureFlagContextIDKey = attribute.Key("feature_flag.context.id")
  4697. // FeatureFlagKeyKey is the attribute Key conforming to the "feature_flag.key"
  4698. // semantic conventions. It represents the lookup key of the feature flag.
  4699. //
  4700. // Type: string
  4701. // RequirementLevel: Recommended
  4702. // Stability: Release_Candidate
  4703. //
  4704. // Examples: "logo-color"
  4705. FeatureFlagKeyKey = attribute.Key("feature_flag.key")
  4706. // FeatureFlagProviderNameKey is the attribute Key conforming to the
  4707. // "feature_flag.provider.name" semantic conventions. It represents the
  4708. // identifies the feature flag provider.
  4709. //
  4710. // Type: string
  4711. // RequirementLevel: Recommended
  4712. // Stability: Release_Candidate
  4713. //
  4714. // Examples: "Flag Manager"
  4715. FeatureFlagProviderNameKey = attribute.Key("feature_flag.provider.name")
  4716. // FeatureFlagResultReasonKey is the attribute Key conforming to the
  4717. // "feature_flag.result.reason" semantic conventions. It represents the reason
  4718. // code which shows how a feature flag value was determined.
  4719. //
  4720. // Type: Enum
  4721. // RequirementLevel: Recommended
  4722. // Stability: Release_Candidate
  4723. //
  4724. // Examples: "static", "targeting_match", "error", "default"
  4725. FeatureFlagResultReasonKey = attribute.Key("feature_flag.result.reason")
  4726. // FeatureFlagResultValueKey is the attribute Key conforming to the
  4727. // "feature_flag.result.value" semantic conventions. It represents the evaluated
  4728. // value of the feature flag.
  4729. //
  4730. // Type: any
  4731. // RequirementLevel: Recommended
  4732. // Stability: Release_Candidate
  4733. //
  4734. // Examples: "#ff0000", true, 3
  4735. // Note: With some feature flag providers, feature flag results can be quite
  4736. // large or contain private or sensitive details.
  4737. // Because of this, `feature_flag.result.variant` is often the preferred
  4738. // attribute if it is available.
  4739. //
  4740. // It may be desirable to redact or otherwise limit the size and scope of
  4741. // `feature_flag.result.value` if possible.
  4742. // Because the evaluated flag value is unstructured and may be any type, it is
  4743. // left to the instrumentation author to determine how best to achieve this.
  4744. FeatureFlagResultValueKey = attribute.Key("feature_flag.result.value")
  4745. // FeatureFlagResultVariantKey is the attribute Key conforming to the
  4746. // "feature_flag.result.variant" semantic conventions. It represents a semantic
  4747. // identifier for an evaluated flag value.
  4748. //
  4749. // Type: string
  4750. // RequirementLevel: Recommended
  4751. // Stability: Release_Candidate
  4752. //
  4753. // Examples: "red", "true", "on"
  4754. // Note: A semantic identifier, commonly referred to as a variant, provides a
  4755. // means
  4756. // for referring to a value without including the value itself. This can
  4757. // provide additional context for understanding the meaning behind a value.
  4758. // For example, the variant `red` maybe be used for the value `#c05543`.
  4759. FeatureFlagResultVariantKey = attribute.Key("feature_flag.result.variant")
  4760. // FeatureFlagSetIDKey is the attribute Key conforming to the
  4761. // "feature_flag.set.id" semantic conventions. It represents the identifier of
  4762. // the [flag set] to which the feature flag belongs.
  4763. //
  4764. // Type: string
  4765. // RequirementLevel: Recommended
  4766. // Stability: Release_Candidate
  4767. //
  4768. // Examples: "proj-1", "ab98sgs", "service1/dev"
  4769. //
  4770. // [flag set]: https://openfeature.dev/specification/glossary/#flag-set
  4771. FeatureFlagSetIDKey = attribute.Key("feature_flag.set.id")
  4772. // FeatureFlagVersionKey is the attribute Key conforming to the
  4773. // "feature_flag.version" semantic conventions. It represents the version of the
  4774. // ruleset used during the evaluation. This may be any stable value which
  4775. // uniquely identifies the ruleset.
  4776. //
  4777. // Type: string
  4778. // RequirementLevel: Recommended
  4779. // Stability: Release_Candidate
  4780. //
  4781. // Examples: "1", "01ABCDEF"
  4782. FeatureFlagVersionKey = attribute.Key("feature_flag.version")
  4783. )
  4784. // FeatureFlagContextID returns an attribute KeyValue conforming to the
  4785. // "feature_flag.context.id" semantic conventions. It represents the unique
  4786. // identifier for the flag evaluation context. For example, the targeting key.
  4787. func FeatureFlagContextID(val string) attribute.KeyValue {
  4788. return FeatureFlagContextIDKey.String(val)
  4789. }
  4790. // FeatureFlagKey returns an attribute KeyValue conforming to the
  4791. // "feature_flag.key" semantic conventions. It represents the lookup key of the
  4792. // feature flag.
  4793. func FeatureFlagKey(val string) attribute.KeyValue {
  4794. return FeatureFlagKeyKey.String(val)
  4795. }
  4796. // FeatureFlagProviderName returns an attribute KeyValue conforming to the
  4797. // "feature_flag.provider.name" semantic conventions. It represents the
  4798. // identifies the feature flag provider.
  4799. func FeatureFlagProviderName(val string) attribute.KeyValue {
  4800. return FeatureFlagProviderNameKey.String(val)
  4801. }
  4802. // FeatureFlagResultVariant returns an attribute KeyValue conforming to the
  4803. // "feature_flag.result.variant" semantic conventions. It represents a semantic
  4804. // identifier for an evaluated flag value.
  4805. func FeatureFlagResultVariant(val string) attribute.KeyValue {
  4806. return FeatureFlagResultVariantKey.String(val)
  4807. }
  4808. // FeatureFlagSetID returns an attribute KeyValue conforming to the
  4809. // "feature_flag.set.id" semantic conventions. It represents the identifier of
  4810. // the [flag set] to which the feature flag belongs.
  4811. //
  4812. // [flag set]: https://openfeature.dev/specification/glossary/#flag-set
  4813. func FeatureFlagSetID(val string) attribute.KeyValue {
  4814. return FeatureFlagSetIDKey.String(val)
  4815. }
  4816. // FeatureFlagVersion returns an attribute KeyValue conforming to the
  4817. // "feature_flag.version" semantic conventions. It represents the version of the
  4818. // ruleset used during the evaluation. This may be any stable value which
  4819. // uniquely identifies the ruleset.
  4820. func FeatureFlagVersion(val string) attribute.KeyValue {
  4821. return FeatureFlagVersionKey.String(val)
  4822. }
  4823. // Enum values for feature_flag.result.reason
  4824. var (
  4825. // The resolved value is static (no dynamic evaluation).
  4826. // Stability: release_candidate
  4827. FeatureFlagResultReasonStatic = FeatureFlagResultReasonKey.String("static")
  4828. // The resolved value fell back to a pre-configured value (no dynamic evaluation
  4829. // occurred or dynamic evaluation yielded no result).
  4830. // Stability: release_candidate
  4831. FeatureFlagResultReasonDefault = FeatureFlagResultReasonKey.String("default")
  4832. // The resolved value was the result of a dynamic evaluation, such as a rule or
  4833. // specific user-targeting.
  4834. // Stability: release_candidate
  4835. FeatureFlagResultReasonTargetingMatch = FeatureFlagResultReasonKey.String("targeting_match")
  4836. // The resolved value was the result of pseudorandom assignment.
  4837. // Stability: release_candidate
  4838. FeatureFlagResultReasonSplit = FeatureFlagResultReasonKey.String("split")
  4839. // The resolved value was retrieved from cache.
  4840. // Stability: release_candidate
  4841. FeatureFlagResultReasonCached = FeatureFlagResultReasonKey.String("cached")
  4842. // The resolved value was the result of the flag being disabled in the
  4843. // management system.
  4844. // Stability: release_candidate
  4845. FeatureFlagResultReasonDisabled = FeatureFlagResultReasonKey.String("disabled")
  4846. // The reason for the resolved value could not be determined.
  4847. // Stability: release_candidate
  4848. FeatureFlagResultReasonUnknown = FeatureFlagResultReasonKey.String("unknown")
  4849. // The resolved value is non-authoritative or possibly out of date
  4850. // Stability: release_candidate
  4851. FeatureFlagResultReasonStale = FeatureFlagResultReasonKey.String("stale")
  4852. // The resolved value was the result of an error.
  4853. // Stability: release_candidate
  4854. FeatureFlagResultReasonError = FeatureFlagResultReasonKey.String("error")
  4855. )
  4856. // Namespace: file
  4857. const (
  4858. // FileAccessedKey is the attribute Key conforming to the "file.accessed"
  4859. // semantic conventions. It represents the time when the file was last accessed,
  4860. // in ISO 8601 format.
  4861. //
  4862. // Type: string
  4863. // RequirementLevel: Recommended
  4864. // Stability: Development
  4865. //
  4866. // Examples: "2021-01-01T12:00:00Z"
  4867. // Note: This attribute might not be supported by some file systems — NFS,
  4868. // FAT32, in embedded OS, etc.
  4869. FileAccessedKey = attribute.Key("file.accessed")
  4870. // FileAttributesKey is the attribute Key conforming to the "file.attributes"
  4871. // semantic conventions. It represents the array of file attributes.
  4872. //
  4873. // Type: string[]
  4874. // RequirementLevel: Recommended
  4875. // Stability: Development
  4876. //
  4877. // Examples: "readonly", "hidden"
  4878. // Note: Attributes names depend on the OS or file system. Here’s a
  4879. // non-exhaustive list of values expected for this attribute: `archive`,
  4880. // `compressed`, `directory`, `encrypted`, `execute`, `hidden`, `immutable`,
  4881. // `journaled`, `read`, `readonly`, `symbolic link`, `system`, `temporary`,
  4882. // `write`.
  4883. FileAttributesKey = attribute.Key("file.attributes")
  4884. // FileChangedKey is the attribute Key conforming to the "file.changed" semantic
  4885. // conventions. It represents the time when the file attributes or metadata was
  4886. // last changed, in ISO 8601 format.
  4887. //
  4888. // Type: string
  4889. // RequirementLevel: Recommended
  4890. // Stability: Development
  4891. //
  4892. // Examples: "2021-01-01T12:00:00Z"
  4893. // Note: `file.changed` captures the time when any of the file's properties or
  4894. // attributes (including the content) are changed, while `file.modified`
  4895. // captures the timestamp when the file content is modified.
  4896. FileChangedKey = attribute.Key("file.changed")
  4897. // FileCreatedKey is the attribute Key conforming to the "file.created" semantic
  4898. // conventions. It represents the time when the file was created, in ISO 8601
  4899. // format.
  4900. //
  4901. // Type: string
  4902. // RequirementLevel: Recommended
  4903. // Stability: Development
  4904. //
  4905. // Examples: "2021-01-01T12:00:00Z"
  4906. // Note: This attribute might not be supported by some file systems — NFS,
  4907. // FAT32, in embedded OS, etc.
  4908. FileCreatedKey = attribute.Key("file.created")
  4909. // FileDirectoryKey is the attribute Key conforming to the "file.directory"
  4910. // semantic conventions. It represents the directory where the file is located.
  4911. // It should include the drive letter, when appropriate.
  4912. //
  4913. // Type: string
  4914. // RequirementLevel: Recommended
  4915. // Stability: Development
  4916. //
  4917. // Examples: "/home/user", "C:\Program Files\MyApp"
  4918. FileDirectoryKey = attribute.Key("file.directory")
  4919. // FileExtensionKey is the attribute Key conforming to the "file.extension"
  4920. // semantic conventions. It represents the file extension, excluding the leading
  4921. // dot.
  4922. //
  4923. // Type: string
  4924. // RequirementLevel: Recommended
  4925. // Stability: Development
  4926. //
  4927. // Examples: "png", "gz"
  4928. // Note: When the file name has multiple extensions (example.tar.gz), only the
  4929. // last one should be captured ("gz", not "tar.gz").
  4930. FileExtensionKey = attribute.Key("file.extension")
  4931. // FileForkNameKey is the attribute Key conforming to the "file.fork_name"
  4932. // semantic conventions. It represents the name of the fork. A fork is
  4933. // additional data associated with a filesystem object.
  4934. //
  4935. // Type: string
  4936. // RequirementLevel: Recommended
  4937. // Stability: Development
  4938. //
  4939. // Examples: "Zone.Identifier"
  4940. // Note: On Linux, a resource fork is used to store additional data with a
  4941. // filesystem object. A file always has at least one fork for the data portion,
  4942. // and additional forks may exist.
  4943. // On NTFS, this is analogous to an Alternate Data Stream (ADS), and the default
  4944. // data stream for a file is just called $DATA. Zone.Identifier is commonly used
  4945. // by Windows to track contents downloaded from the Internet. An ADS is
  4946. // typically of the form: C:\path\to\filename.extension:some_fork_name, and
  4947. // some_fork_name is the value that should populate `fork_name`.
  4948. // `filename.extension` should populate `file.name`, and `extension` should
  4949. // populate `file.extension`. The full path, `file.path`, will include the fork
  4950. // name.
  4951. FileForkNameKey = attribute.Key("file.fork_name")
  4952. // FileGroupIDKey is the attribute Key conforming to the "file.group.id"
  4953. // semantic conventions. It represents the primary Group ID (GID) of the file.
  4954. //
  4955. // Type: string
  4956. // RequirementLevel: Recommended
  4957. // Stability: Development
  4958. //
  4959. // Examples: "1000"
  4960. FileGroupIDKey = attribute.Key("file.group.id")
  4961. // FileGroupNameKey is the attribute Key conforming to the "file.group.name"
  4962. // semantic conventions. It represents the primary group name of the file.
  4963. //
  4964. // Type: string
  4965. // RequirementLevel: Recommended
  4966. // Stability: Development
  4967. //
  4968. // Examples: "users"
  4969. FileGroupNameKey = attribute.Key("file.group.name")
  4970. // FileInodeKey is the attribute Key conforming to the "file.inode" semantic
  4971. // conventions. It represents the inode representing the file in the filesystem.
  4972. //
  4973. // Type: string
  4974. // RequirementLevel: Recommended
  4975. // Stability: Development
  4976. //
  4977. // Examples: "256383"
  4978. FileInodeKey = attribute.Key("file.inode")
  4979. // FileModeKey is the attribute Key conforming to the "file.mode" semantic
  4980. // conventions. It represents the mode of the file in octal representation.
  4981. //
  4982. // Type: string
  4983. // RequirementLevel: Recommended
  4984. // Stability: Development
  4985. //
  4986. // Examples: "0640"
  4987. FileModeKey = attribute.Key("file.mode")
  4988. // FileModifiedKey is the attribute Key conforming to the "file.modified"
  4989. // semantic conventions. It represents the time when the file content was last
  4990. // modified, in ISO 8601 format.
  4991. //
  4992. // Type: string
  4993. // RequirementLevel: Recommended
  4994. // Stability: Development
  4995. //
  4996. // Examples: "2021-01-01T12:00:00Z"
  4997. FileModifiedKey = attribute.Key("file.modified")
  4998. // FileNameKey is the attribute Key conforming to the "file.name" semantic
  4999. // conventions. It represents the name of the file including the extension,
  5000. // without the directory.
  5001. //
  5002. // Type: string
  5003. // RequirementLevel: Recommended
  5004. // Stability: Development
  5005. //
  5006. // Examples: "example.png"
  5007. FileNameKey = attribute.Key("file.name")
  5008. // FileOwnerIDKey is the attribute Key conforming to the "file.owner.id"
  5009. // semantic conventions. It represents the user ID (UID) or security identifier
  5010. // (SID) of the file owner.
  5011. //
  5012. // Type: string
  5013. // RequirementLevel: Recommended
  5014. // Stability: Development
  5015. //
  5016. // Examples: "1000"
  5017. FileOwnerIDKey = attribute.Key("file.owner.id")
  5018. // FileOwnerNameKey is the attribute Key conforming to the "file.owner.name"
  5019. // semantic conventions. It represents the username of the file owner.
  5020. //
  5021. // Type: string
  5022. // RequirementLevel: Recommended
  5023. // Stability: Development
  5024. //
  5025. // Examples: "root"
  5026. FileOwnerNameKey = attribute.Key("file.owner.name")
  5027. // FilePathKey is the attribute Key conforming to the "file.path" semantic
  5028. // conventions. It represents the full path to the file, including the file
  5029. // name. It should include the drive letter, when appropriate.
  5030. //
  5031. // Type: string
  5032. // RequirementLevel: Recommended
  5033. // Stability: Development
  5034. //
  5035. // Examples: "/home/alice/example.png", "C:\Program Files\MyApp\myapp.exe"
  5036. FilePathKey = attribute.Key("file.path")
  5037. // FileSizeKey is the attribute Key conforming to the "file.size" semantic
  5038. // conventions. It represents the file size in bytes.
  5039. //
  5040. // Type: int
  5041. // RequirementLevel: Recommended
  5042. // Stability: Development
  5043. //
  5044. // Examples:
  5045. FileSizeKey = attribute.Key("file.size")
  5046. // FileSymbolicLinkTargetPathKey is the attribute Key conforming to the
  5047. // "file.symbolic_link.target_path" semantic conventions. It represents the path
  5048. // to the target of a symbolic link.
  5049. //
  5050. // Type: string
  5051. // RequirementLevel: Recommended
  5052. // Stability: Development
  5053. //
  5054. // Examples: "/usr/bin/python3"
  5055. // Note: This attribute is only applicable to symbolic links.
  5056. FileSymbolicLinkTargetPathKey = attribute.Key("file.symbolic_link.target_path")
  5057. )
  5058. // FileAccessed returns an attribute KeyValue conforming to the "file.accessed"
  5059. // semantic conventions. It represents the time when the file was last accessed,
  5060. // in ISO 8601 format.
  5061. func FileAccessed(val string) attribute.KeyValue {
  5062. return FileAccessedKey.String(val)
  5063. }
  5064. // FileAttributes returns an attribute KeyValue conforming to the
  5065. // "file.attributes" semantic conventions. It represents the array of file
  5066. // attributes.
  5067. func FileAttributes(val ...string) attribute.KeyValue {
  5068. return FileAttributesKey.StringSlice(val)
  5069. }
  5070. // FileChanged returns an attribute KeyValue conforming to the "file.changed"
  5071. // semantic conventions. It represents the time when the file attributes or
  5072. // metadata was last changed, in ISO 8601 format.
  5073. func FileChanged(val string) attribute.KeyValue {
  5074. return FileChangedKey.String(val)
  5075. }
  5076. // FileCreated returns an attribute KeyValue conforming to the "file.created"
  5077. // semantic conventions. It represents the time when the file was created, in ISO
  5078. // 8601 format.
  5079. func FileCreated(val string) attribute.KeyValue {
  5080. return FileCreatedKey.String(val)
  5081. }
  5082. // FileDirectory returns an attribute KeyValue conforming to the "file.directory"
  5083. // semantic conventions. It represents the directory where the file is located.
  5084. // It should include the drive letter, when appropriate.
  5085. func FileDirectory(val string) attribute.KeyValue {
  5086. return FileDirectoryKey.String(val)
  5087. }
  5088. // FileExtension returns an attribute KeyValue conforming to the "file.extension"
  5089. // semantic conventions. It represents the file extension, excluding the leading
  5090. // dot.
  5091. func FileExtension(val string) attribute.KeyValue {
  5092. return FileExtensionKey.String(val)
  5093. }
  5094. // FileForkName returns an attribute KeyValue conforming to the "file.fork_name"
  5095. // semantic conventions. It represents the name of the fork. A fork is additional
  5096. // data associated with a filesystem object.
  5097. func FileForkName(val string) attribute.KeyValue {
  5098. return FileForkNameKey.String(val)
  5099. }
  5100. // FileGroupID returns an attribute KeyValue conforming to the "file.group.id"
  5101. // semantic conventions. It represents the primary Group ID (GID) of the file.
  5102. func FileGroupID(val string) attribute.KeyValue {
  5103. return FileGroupIDKey.String(val)
  5104. }
  5105. // FileGroupName returns an attribute KeyValue conforming to the
  5106. // "file.group.name" semantic conventions. It represents the primary group name
  5107. // of the file.
  5108. func FileGroupName(val string) attribute.KeyValue {
  5109. return FileGroupNameKey.String(val)
  5110. }
  5111. // FileInode returns an attribute KeyValue conforming to the "file.inode"
  5112. // semantic conventions. It represents the inode representing the file in the
  5113. // filesystem.
  5114. func FileInode(val string) attribute.KeyValue {
  5115. return FileInodeKey.String(val)
  5116. }
  5117. // FileMode returns an attribute KeyValue conforming to the "file.mode" semantic
  5118. // conventions. It represents the mode of the file in octal representation.
  5119. func FileMode(val string) attribute.KeyValue {
  5120. return FileModeKey.String(val)
  5121. }
  5122. // FileModified returns an attribute KeyValue conforming to the "file.modified"
  5123. // semantic conventions. It represents the time when the file content was last
  5124. // modified, in ISO 8601 format.
  5125. func FileModified(val string) attribute.KeyValue {
  5126. return FileModifiedKey.String(val)
  5127. }
  5128. // FileName returns an attribute KeyValue conforming to the "file.name" semantic
  5129. // conventions. It represents the name of the file including the extension,
  5130. // without the directory.
  5131. func FileName(val string) attribute.KeyValue {
  5132. return FileNameKey.String(val)
  5133. }
  5134. // FileOwnerID returns an attribute KeyValue conforming to the "file.owner.id"
  5135. // semantic conventions. It represents the user ID (UID) or security identifier
  5136. // (SID) of the file owner.
  5137. func FileOwnerID(val string) attribute.KeyValue {
  5138. return FileOwnerIDKey.String(val)
  5139. }
  5140. // FileOwnerName returns an attribute KeyValue conforming to the
  5141. // "file.owner.name" semantic conventions. It represents the username of the file
  5142. // owner.
  5143. func FileOwnerName(val string) attribute.KeyValue {
  5144. return FileOwnerNameKey.String(val)
  5145. }
  5146. // FilePath returns an attribute KeyValue conforming to the "file.path" semantic
  5147. // conventions. It represents the full path to the file, including the file name.
  5148. // It should include the drive letter, when appropriate.
  5149. func FilePath(val string) attribute.KeyValue {
  5150. return FilePathKey.String(val)
  5151. }
  5152. // FileSize returns an attribute KeyValue conforming to the "file.size" semantic
  5153. // conventions. It represents the file size in bytes.
  5154. func FileSize(val int) attribute.KeyValue {
  5155. return FileSizeKey.Int(val)
  5156. }
  5157. // FileSymbolicLinkTargetPath returns an attribute KeyValue conforming to the
  5158. // "file.symbolic_link.target_path" semantic conventions. It represents the path
  5159. // to the target of a symbolic link.
  5160. func FileSymbolicLinkTargetPath(val string) attribute.KeyValue {
  5161. return FileSymbolicLinkTargetPathKey.String(val)
  5162. }
  5163. // Namespace: gcp
  5164. const (
  5165. // GCPAppHubApplicationContainerKey is the attribute Key conforming to the
  5166. // "gcp.apphub.application.container" semantic conventions. It represents the
  5167. // container within GCP where the AppHub application is defined.
  5168. //
  5169. // Type: string
  5170. // RequirementLevel: Recommended
  5171. // Stability: Development
  5172. //
  5173. // Examples: "projects/my-container-project"
  5174. GCPAppHubApplicationContainerKey = attribute.Key("gcp.apphub.application.container")
  5175. // GCPAppHubApplicationIDKey is the attribute Key conforming to the
  5176. // "gcp.apphub.application.id" semantic conventions. It represents the name of
  5177. // the application as configured in AppHub.
  5178. //
  5179. // Type: string
  5180. // RequirementLevel: Recommended
  5181. // Stability: Development
  5182. //
  5183. // Examples: "my-application"
  5184. GCPAppHubApplicationIDKey = attribute.Key("gcp.apphub.application.id")
  5185. // GCPAppHubApplicationLocationKey is the attribute Key conforming to the
  5186. // "gcp.apphub.application.location" semantic conventions. It represents the GCP
  5187. // zone or region where the application is defined.
  5188. //
  5189. // Type: string
  5190. // RequirementLevel: Recommended
  5191. // Stability: Development
  5192. //
  5193. // Examples: "us-central1"
  5194. GCPAppHubApplicationLocationKey = attribute.Key("gcp.apphub.application.location")
  5195. // GCPAppHubServiceCriticalityTypeKey is the attribute Key conforming to the
  5196. // "gcp.apphub.service.criticality_type" semantic conventions. It represents the
  5197. // criticality of a service indicates its importance to the business.
  5198. //
  5199. // Type: Enum
  5200. // RequirementLevel: Recommended
  5201. // Stability: Development
  5202. //
  5203. // Examples:
  5204. // Note: [See AppHub type enum]
  5205. //
  5206. // [See AppHub type enum]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type
  5207. GCPAppHubServiceCriticalityTypeKey = attribute.Key("gcp.apphub.service.criticality_type")
  5208. // GCPAppHubServiceEnvironmentTypeKey is the attribute Key conforming to the
  5209. // "gcp.apphub.service.environment_type" semantic conventions. It represents the
  5210. // environment of a service is the stage of a software lifecycle.
  5211. //
  5212. // Type: Enum
  5213. // RequirementLevel: Recommended
  5214. // Stability: Development
  5215. //
  5216. // Examples:
  5217. // Note: [See AppHub environment type]
  5218. //
  5219. // [See AppHub environment type]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1
  5220. GCPAppHubServiceEnvironmentTypeKey = attribute.Key("gcp.apphub.service.environment_type")
  5221. // GCPAppHubServiceIDKey is the attribute Key conforming to the
  5222. // "gcp.apphub.service.id" semantic conventions. It represents the name of the
  5223. // service as configured in AppHub.
  5224. //
  5225. // Type: string
  5226. // RequirementLevel: Recommended
  5227. // Stability: Development
  5228. //
  5229. // Examples: "my-service"
  5230. GCPAppHubServiceIDKey = attribute.Key("gcp.apphub.service.id")
  5231. // GCPAppHubWorkloadCriticalityTypeKey is the attribute Key conforming to the
  5232. // "gcp.apphub.workload.criticality_type" semantic conventions. It represents
  5233. // the criticality of a workload indicates its importance to the business.
  5234. //
  5235. // Type: Enum
  5236. // RequirementLevel: Recommended
  5237. // Stability: Development
  5238. //
  5239. // Examples:
  5240. // Note: [See AppHub type enum]
  5241. //
  5242. // [See AppHub type enum]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type
  5243. GCPAppHubWorkloadCriticalityTypeKey = attribute.Key("gcp.apphub.workload.criticality_type")
  5244. // GCPAppHubWorkloadEnvironmentTypeKey is the attribute Key conforming to the
  5245. // "gcp.apphub.workload.environment_type" semantic conventions. It represents
  5246. // the environment of a workload is the stage of a software lifecycle.
  5247. //
  5248. // Type: Enum
  5249. // RequirementLevel: Recommended
  5250. // Stability: Development
  5251. //
  5252. // Examples:
  5253. // Note: [See AppHub environment type]
  5254. //
  5255. // [See AppHub environment type]: https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1
  5256. GCPAppHubWorkloadEnvironmentTypeKey = attribute.Key("gcp.apphub.workload.environment_type")
  5257. // GCPAppHubWorkloadIDKey is the attribute Key conforming to the
  5258. // "gcp.apphub.workload.id" semantic conventions. It represents the name of the
  5259. // workload as configured in AppHub.
  5260. //
  5261. // Type: string
  5262. // RequirementLevel: Recommended
  5263. // Stability: Development
  5264. //
  5265. // Examples: "my-workload"
  5266. GCPAppHubWorkloadIDKey = attribute.Key("gcp.apphub.workload.id")
  5267. // GCPClientServiceKey is the attribute Key conforming to the
  5268. // "gcp.client.service" semantic conventions. It represents the identifies the
  5269. // Google Cloud service for which the official client library is intended.
  5270. //
  5271. // Type: string
  5272. // RequirementLevel: Recommended
  5273. // Stability: Development
  5274. //
  5275. // Examples: "appengine", "run", "firestore", "alloydb", "spanner"
  5276. // Note: Intended to be a stable identifier for Google Cloud client libraries
  5277. // that is uniform across implementation languages. The value should be derived
  5278. // from the canonical service domain for the service; for example,
  5279. // 'foo.googleapis.com' should result in a value of 'foo'.
  5280. GCPClientServiceKey = attribute.Key("gcp.client.service")
  5281. // GCPCloudRunJobExecutionKey is the attribute Key conforming to the
  5282. // "gcp.cloud_run.job.execution" semantic conventions. It represents the name of
  5283. // the Cloud Run [execution] being run for the Job, as set by the
  5284. // [`CLOUD_RUN_EXECUTION`] environment variable.
  5285. //
  5286. // Type: string
  5287. // RequirementLevel: Recommended
  5288. // Stability: Development
  5289. //
  5290. // Examples: "job-name-xxxx", "sample-job-mdw84"
  5291. //
  5292. // [execution]: https://cloud.google.com/run/docs/managing/job-executions
  5293. // [`CLOUD_RUN_EXECUTION`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
  5294. GCPCloudRunJobExecutionKey = attribute.Key("gcp.cloud_run.job.execution")
  5295. // GCPCloudRunJobTaskIndexKey is the attribute Key conforming to the
  5296. // "gcp.cloud_run.job.task_index" semantic conventions. It represents the index
  5297. // for a task within an execution as provided by the [`CLOUD_RUN_TASK_INDEX`]
  5298. // environment variable.
  5299. //
  5300. // Type: int
  5301. // RequirementLevel: Recommended
  5302. // Stability: Development
  5303. //
  5304. // Examples: 0, 1
  5305. //
  5306. // [`CLOUD_RUN_TASK_INDEX`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
  5307. GCPCloudRunJobTaskIndexKey = attribute.Key("gcp.cloud_run.job.task_index")
  5308. // GCPGCEInstanceHostnameKey is the attribute Key conforming to the
  5309. // "gcp.gce.instance.hostname" semantic conventions. It represents the hostname
  5310. // of a GCE instance. This is the full value of the default or [custom hostname]
  5311. // .
  5312. //
  5313. // Type: string
  5314. // RequirementLevel: Recommended
  5315. // Stability: Development
  5316. //
  5317. // Examples: "my-host1234.example.com",
  5318. // "sample-vm.us-west1-b.c.my-project.internal"
  5319. //
  5320. // [custom hostname]: https://cloud.google.com/compute/docs/instances/custom-hostname-vm
  5321. GCPGCEInstanceHostnameKey = attribute.Key("gcp.gce.instance.hostname")
  5322. // GCPGCEInstanceNameKey is the attribute Key conforming to the
  5323. // "gcp.gce.instance.name" semantic conventions. It represents the instance name
  5324. // of a GCE instance. This is the value provided by `host.name`, the visible
  5325. // name of the instance in the Cloud Console UI, and the prefix for the default
  5326. // hostname of the instance as defined by the [default internal DNS name].
  5327. //
  5328. // Type: string
  5329. // RequirementLevel: Recommended
  5330. // Stability: Development
  5331. //
  5332. // Examples: "instance-1", "my-vm-name"
  5333. //
  5334. // [default internal DNS name]: https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names
  5335. GCPGCEInstanceNameKey = attribute.Key("gcp.gce.instance.name")
  5336. )
  5337. // GCPAppHubApplicationContainer returns an attribute KeyValue conforming to the
  5338. // "gcp.apphub.application.container" semantic conventions. It represents the
  5339. // container within GCP where the AppHub application is defined.
  5340. func GCPAppHubApplicationContainer(val string) attribute.KeyValue {
  5341. return GCPAppHubApplicationContainerKey.String(val)
  5342. }
  5343. // GCPAppHubApplicationID returns an attribute KeyValue conforming to the
  5344. // "gcp.apphub.application.id" semantic conventions. It represents the name of
  5345. // the application as configured in AppHub.
  5346. func GCPAppHubApplicationID(val string) attribute.KeyValue {
  5347. return GCPAppHubApplicationIDKey.String(val)
  5348. }
  5349. // GCPAppHubApplicationLocation returns an attribute KeyValue conforming to the
  5350. // "gcp.apphub.application.location" semantic conventions. It represents the GCP
  5351. // zone or region where the application is defined.
  5352. func GCPAppHubApplicationLocation(val string) attribute.KeyValue {
  5353. return GCPAppHubApplicationLocationKey.String(val)
  5354. }
  5355. // GCPAppHubServiceID returns an attribute KeyValue conforming to the
  5356. // "gcp.apphub.service.id" semantic conventions. It represents the name of the
  5357. // service as configured in AppHub.
  5358. func GCPAppHubServiceID(val string) attribute.KeyValue {
  5359. return GCPAppHubServiceIDKey.String(val)
  5360. }
  5361. // GCPAppHubWorkloadID returns an attribute KeyValue conforming to the
  5362. // "gcp.apphub.workload.id" semantic conventions. It represents the name of the
  5363. // workload as configured in AppHub.
  5364. func GCPAppHubWorkloadID(val string) attribute.KeyValue {
  5365. return GCPAppHubWorkloadIDKey.String(val)
  5366. }
  5367. // GCPClientService returns an attribute KeyValue conforming to the
  5368. // "gcp.client.service" semantic conventions. It represents the identifies the
  5369. // Google Cloud service for which the official client library is intended.
  5370. func GCPClientService(val string) attribute.KeyValue {
  5371. return GCPClientServiceKey.String(val)
  5372. }
  5373. // GCPCloudRunJobExecution returns an attribute KeyValue conforming to the
  5374. // "gcp.cloud_run.job.execution" semantic conventions. It represents the name of
  5375. // the Cloud Run [execution] being run for the Job, as set by the
  5376. // [`CLOUD_RUN_EXECUTION`] environment variable.
  5377. //
  5378. // [execution]: https://cloud.google.com/run/docs/managing/job-executions
  5379. // [`CLOUD_RUN_EXECUTION`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
  5380. func GCPCloudRunJobExecution(val string) attribute.KeyValue {
  5381. return GCPCloudRunJobExecutionKey.String(val)
  5382. }
  5383. // GCPCloudRunJobTaskIndex returns an attribute KeyValue conforming to the
  5384. // "gcp.cloud_run.job.task_index" semantic conventions. It represents the index
  5385. // for a task within an execution as provided by the [`CLOUD_RUN_TASK_INDEX`]
  5386. // environment variable.
  5387. //
  5388. // [`CLOUD_RUN_TASK_INDEX`]: https://cloud.google.com/run/docs/container-contract#jobs-env-vars
  5389. func GCPCloudRunJobTaskIndex(val int) attribute.KeyValue {
  5390. return GCPCloudRunJobTaskIndexKey.Int(val)
  5391. }
  5392. // GCPGCEInstanceHostname returns an attribute KeyValue conforming to the
  5393. // "gcp.gce.instance.hostname" semantic conventions. It represents the hostname
  5394. // of a GCE instance. This is the full value of the default or [custom hostname]
  5395. // .
  5396. //
  5397. // [custom hostname]: https://cloud.google.com/compute/docs/instances/custom-hostname-vm
  5398. func GCPGCEInstanceHostname(val string) attribute.KeyValue {
  5399. return GCPGCEInstanceHostnameKey.String(val)
  5400. }
  5401. // GCPGCEInstanceName returns an attribute KeyValue conforming to the
  5402. // "gcp.gce.instance.name" semantic conventions. It represents the instance name
  5403. // of a GCE instance. This is the value provided by `host.name`, the visible name
  5404. // of the instance in the Cloud Console UI, and the prefix for the default
  5405. // hostname of the instance as defined by the [default internal DNS name].
  5406. //
  5407. // [default internal DNS name]: https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names
  5408. func GCPGCEInstanceName(val string) attribute.KeyValue {
  5409. return GCPGCEInstanceNameKey.String(val)
  5410. }
  5411. // Enum values for gcp.apphub.service.criticality_type
  5412. var (
  5413. // Mission critical service.
  5414. // Stability: development
  5415. GCPAppHubServiceCriticalityTypeMissionCritical = GCPAppHubServiceCriticalityTypeKey.String("MISSION_CRITICAL")
  5416. // High impact.
  5417. // Stability: development
  5418. GCPAppHubServiceCriticalityTypeHigh = GCPAppHubServiceCriticalityTypeKey.String("HIGH")
  5419. // Medium impact.
  5420. // Stability: development
  5421. GCPAppHubServiceCriticalityTypeMedium = GCPAppHubServiceCriticalityTypeKey.String("MEDIUM")
  5422. // Low impact.
  5423. // Stability: development
  5424. GCPAppHubServiceCriticalityTypeLow = GCPAppHubServiceCriticalityTypeKey.String("LOW")
  5425. )
  5426. // Enum values for gcp.apphub.service.environment_type
  5427. var (
  5428. // Production environment.
  5429. // Stability: development
  5430. GCPAppHubServiceEnvironmentTypeProduction = GCPAppHubServiceEnvironmentTypeKey.String("PRODUCTION")
  5431. // Staging environment.
  5432. // Stability: development
  5433. GCPAppHubServiceEnvironmentTypeStaging = GCPAppHubServiceEnvironmentTypeKey.String("STAGING")
  5434. // Test environment.
  5435. // Stability: development
  5436. GCPAppHubServiceEnvironmentTypeTest = GCPAppHubServiceEnvironmentTypeKey.String("TEST")
  5437. // Development environment.
  5438. // Stability: development
  5439. GCPAppHubServiceEnvironmentTypeDevelopment = GCPAppHubServiceEnvironmentTypeKey.String("DEVELOPMENT")
  5440. )
  5441. // Enum values for gcp.apphub.workload.criticality_type
  5442. var (
  5443. // Mission critical service.
  5444. // Stability: development
  5445. GCPAppHubWorkloadCriticalityTypeMissionCritical = GCPAppHubWorkloadCriticalityTypeKey.String("MISSION_CRITICAL")
  5446. // High impact.
  5447. // Stability: development
  5448. GCPAppHubWorkloadCriticalityTypeHigh = GCPAppHubWorkloadCriticalityTypeKey.String("HIGH")
  5449. // Medium impact.
  5450. // Stability: development
  5451. GCPAppHubWorkloadCriticalityTypeMedium = GCPAppHubWorkloadCriticalityTypeKey.String("MEDIUM")
  5452. // Low impact.
  5453. // Stability: development
  5454. GCPAppHubWorkloadCriticalityTypeLow = GCPAppHubWorkloadCriticalityTypeKey.String("LOW")
  5455. )
  5456. // Enum values for gcp.apphub.workload.environment_type
  5457. var (
  5458. // Production environment.
  5459. // Stability: development
  5460. GCPAppHubWorkloadEnvironmentTypeProduction = GCPAppHubWorkloadEnvironmentTypeKey.String("PRODUCTION")
  5461. // Staging environment.
  5462. // Stability: development
  5463. GCPAppHubWorkloadEnvironmentTypeStaging = GCPAppHubWorkloadEnvironmentTypeKey.String("STAGING")
  5464. // Test environment.
  5465. // Stability: development
  5466. GCPAppHubWorkloadEnvironmentTypeTest = GCPAppHubWorkloadEnvironmentTypeKey.String("TEST")
  5467. // Development environment.
  5468. // Stability: development
  5469. GCPAppHubWorkloadEnvironmentTypeDevelopment = GCPAppHubWorkloadEnvironmentTypeKey.String("DEVELOPMENT")
  5470. )
  5471. // Namespace: gen_ai
  5472. const (
  5473. // GenAIAgentDescriptionKey is the attribute Key conforming to the
  5474. // "gen_ai.agent.description" semantic conventions. It represents the free-form
  5475. // description of the GenAI agent provided by the application.
  5476. //
  5477. // Type: string
  5478. // RequirementLevel: Recommended
  5479. // Stability: Development
  5480. //
  5481. // Examples: "Helps with math problems", "Generates fiction stories"
  5482. GenAIAgentDescriptionKey = attribute.Key("gen_ai.agent.description")
  5483. // GenAIAgentIDKey is the attribute Key conforming to the "gen_ai.agent.id"
  5484. // semantic conventions. It represents the unique identifier of the GenAI agent.
  5485. //
  5486. // Type: string
  5487. // RequirementLevel: Recommended
  5488. // Stability: Development
  5489. //
  5490. // Examples: "asst_5j66UpCpwteGg4YSxUnt7lPY"
  5491. GenAIAgentIDKey = attribute.Key("gen_ai.agent.id")
  5492. // GenAIAgentNameKey is the attribute Key conforming to the "gen_ai.agent.name"
  5493. // semantic conventions. It represents the human-readable name of the GenAI
  5494. // agent provided by the application.
  5495. //
  5496. // Type: string
  5497. // RequirementLevel: Recommended
  5498. // Stability: Development
  5499. //
  5500. // Examples: "Math Tutor", "Fiction Writer"
  5501. GenAIAgentNameKey = attribute.Key("gen_ai.agent.name")
  5502. // GenAIConversationIDKey is the attribute Key conforming to the
  5503. // "gen_ai.conversation.id" semantic conventions. It represents the unique
  5504. // identifier for a conversation (session, thread), used to store and correlate
  5505. // messages within this conversation.
  5506. //
  5507. // Type: string
  5508. // RequirementLevel: Recommended
  5509. // Stability: Development
  5510. //
  5511. // Examples: "conv_5j66UpCpwteGg4YSxUnt7lPY"
  5512. GenAIConversationIDKey = attribute.Key("gen_ai.conversation.id")
  5513. // GenAIDataSourceIDKey is the attribute Key conforming to the
  5514. // "gen_ai.data_source.id" semantic conventions. It represents the data source
  5515. // identifier.
  5516. //
  5517. // Type: string
  5518. // RequirementLevel: Recommended
  5519. // Stability: Development
  5520. //
  5521. // Examples: "H7STPQYOND"
  5522. // Note: Data sources are used by AI agents and RAG applications to store
  5523. // grounding data. A data source may be an external database, object store,
  5524. // document collection, website, or any other storage system used by the GenAI
  5525. // agent or application. The `gen_ai.data_source.id` SHOULD match the identifier
  5526. // used by the GenAI system rather than a name specific to the external storage,
  5527. // such as a database or object store. Semantic conventions referencing
  5528. // `gen_ai.data_source.id` MAY also leverage additional attributes, such as
  5529. // `db.*`, to further identify and describe the data source.
  5530. GenAIDataSourceIDKey = attribute.Key("gen_ai.data_source.id")
  5531. // GenAIInputMessagesKey is the attribute Key conforming to the
  5532. // "gen_ai.input.messages" semantic conventions. It represents the chat history
  5533. // provided to the model as an input.
  5534. //
  5535. // Type: any
  5536. // RequirementLevel: Recommended
  5537. // Stability: Development
  5538. //
  5539. // Examples: "[\n {\n "role": "user",\n "parts": [\n {\n "type": "text",\n
  5540. // "content": "Weather in Paris?"\n }\n ]\n },\n {\n "role": "assistant",\n
  5541. // "parts": [\n {\n "type": "tool_call",\n "id":
  5542. // "call_VSPygqKTWdrhaFErNvMV18Yl",\n "name": "get_weather",\n "arguments": {\n
  5543. // "location": "Paris"\n }\n }\n ]\n },\n {\n "role": "tool",\n "parts": [\n {\n
  5544. // "type": "tool_call_response",\n "id": " call_VSPygqKTWdrhaFErNvMV18Yl",\n
  5545. // "result": "rainy, 57°F"\n }\n ]\n }\n]\n"
  5546. // Note: Instrumentations MUST follow [Input messages JSON schema].
  5547. // When the attribute is recorded on events, it MUST be recorded in structured
  5548. // form. When recorded on spans, it MAY be recorded as a JSON string if
  5549. // structured
  5550. // format is not supported and SHOULD be recorded in structured form otherwise.
  5551. //
  5552. // Messages MUST be provided in the order they were sent to the model.
  5553. // Instrumentations MAY provide a way for users to filter or truncate
  5554. // input messages.
  5555. //
  5556. // > [!Warning]
  5557. // > This attribute is likely to contain sensitive information including
  5558. // > user/PII data.
  5559. //
  5560. // See [Recording content on attributes]
  5561. // section for more details.
  5562. //
  5563. // [Input messages JSON schema]: /docs/gen-ai/gen-ai-input-messages.json
  5564. // [Recording content on attributes]: /docs/gen-ai/gen-ai-spans.md#recording-content-on-attributes
  5565. GenAIInputMessagesKey = attribute.Key("gen_ai.input.messages")
  5566. // GenAIOperationNameKey is the attribute Key conforming to the
  5567. // "gen_ai.operation.name" semantic conventions. It represents the name of the
  5568. // operation being performed.
  5569. //
  5570. // Type: Enum
  5571. // RequirementLevel: Recommended
  5572. // Stability: Development
  5573. //
  5574. // Examples:
  5575. // Note: If one of the predefined values applies, but specific system uses a
  5576. // different name it's RECOMMENDED to document it in the semantic conventions
  5577. // for specific GenAI system and use system-specific name in the
  5578. // instrumentation. If a different name is not documented, instrumentation
  5579. // libraries SHOULD use applicable predefined value.
  5580. GenAIOperationNameKey = attribute.Key("gen_ai.operation.name")
  5581. // GenAIOutputMessagesKey is the attribute Key conforming to the
  5582. // "gen_ai.output.messages" semantic conventions. It represents the messages
  5583. // returned by the model where each message represents a specific model response
  5584. // (choice, candidate).
  5585. //
  5586. // Type: any
  5587. // RequirementLevel: Recommended
  5588. // Stability: Development
  5589. //
  5590. // Examples: "[\n {\n "role": "assistant",\n "parts": [\n {\n "type": "text",\n
  5591. // "content": "The weather in Paris is currently rainy with a temperature of
  5592. // 57°F."\n }\n ],\n "finish_reason": "stop"\n }\n]\n"
  5593. // Note: Instrumentations MUST follow [Output messages JSON schema]
  5594. //
  5595. // Each message represents a single output choice/candidate generated by
  5596. // the model. Each message corresponds to exactly one generation
  5597. // (choice/candidate) and vice versa - one choice cannot be split across
  5598. // multiple messages or one message cannot contain parts from multiple choices.
  5599. //
  5600. // When the attribute is recorded on events, it MUST be recorded in structured
  5601. // form. When recorded on spans, it MAY be recorded as a JSON string if
  5602. // structured
  5603. // format is not supported and SHOULD be recorded in structured form otherwise.
  5604. //
  5605. // Instrumentations MAY provide a way for users to filter or truncate
  5606. // output messages.
  5607. //
  5608. // > [!Warning]
  5609. // > This attribute is likely to contain sensitive information including
  5610. // > user/PII data.
  5611. //
  5612. // See [Recording content on attributes]
  5613. // section for more details.
  5614. //
  5615. // [Output messages JSON schema]: /docs/gen-ai/gen-ai-output-messages.json
  5616. // [Recording content on attributes]: /docs/gen-ai/gen-ai-spans.md#recording-content-on-attributes
  5617. GenAIOutputMessagesKey = attribute.Key("gen_ai.output.messages")
  5618. // GenAIOutputTypeKey is the attribute Key conforming to the
  5619. // "gen_ai.output.type" semantic conventions. It represents the represents the
  5620. // content type requested by the client.
  5621. //
  5622. // Type: Enum
  5623. // RequirementLevel: Recommended
  5624. // Stability: Development
  5625. //
  5626. // Examples:
  5627. // Note: This attribute SHOULD be used when the client requests output of a
  5628. // specific type. The model may return zero or more outputs of this type.
  5629. // This attribute specifies the output modality and not the actual output
  5630. // format. For example, if an image is requested, the actual output could be a
  5631. // URL pointing to an image file.
  5632. // Additional output format details may be recorded in the future in the
  5633. // `gen_ai.output.{type}.*` attributes.
  5634. GenAIOutputTypeKey = attribute.Key("gen_ai.output.type")
  5635. // GenAIProviderNameKey is the attribute Key conforming to the
  5636. // "gen_ai.provider.name" semantic conventions. It represents the Generative AI
  5637. // provider as identified by the client or server instrumentation.
  5638. //
  5639. // Type: Enum
  5640. // RequirementLevel: Recommended
  5641. // Stability: Development
  5642. //
  5643. // Examples:
  5644. // Note: The attribute SHOULD be set based on the instrumentation's best
  5645. // knowledge and may differ from the actual model provider.
  5646. //
  5647. // Multiple providers, including Azure OpenAI, Gemini, and AI hosting platforms
  5648. // are accessible using the OpenAI REST API and corresponding client libraries,
  5649. // but may proxy or host models from different providers.
  5650. //
  5651. // The `gen_ai.request.model`, `gen_ai.response.model`, and `server.address`
  5652. // attributes may help identify the actual system in use.
  5653. //
  5654. // The `gen_ai.provider.name` attribute acts as a discriminator that
  5655. // identifies the GenAI telemetry format flavor specific to that provider
  5656. // within GenAI semantic conventions.
  5657. // It SHOULD be set consistently with provider-specific attributes and signals.
  5658. // For example, GenAI spans, metrics, and events related to AWS Bedrock
  5659. // should have the `gen_ai.provider.name` set to `aws.bedrock` and include
  5660. // applicable `aws.bedrock.*` attributes and are not expected to include
  5661. // `openai.*` attributes.
  5662. GenAIProviderNameKey = attribute.Key("gen_ai.provider.name")
  5663. // GenAIRequestChoiceCountKey is the attribute Key conforming to the
  5664. // "gen_ai.request.choice.count" semantic conventions. It represents the target
  5665. // number of candidate completions to return.
  5666. //
  5667. // Type: int
  5668. // RequirementLevel: Recommended
  5669. // Stability: Development
  5670. //
  5671. // Examples: 3
  5672. GenAIRequestChoiceCountKey = attribute.Key("gen_ai.request.choice.count")
  5673. // GenAIRequestEncodingFormatsKey is the attribute Key conforming to the
  5674. // "gen_ai.request.encoding_formats" semantic conventions. It represents the
  5675. // encoding formats requested in an embeddings operation, if specified.
  5676. //
  5677. // Type: string[]
  5678. // RequirementLevel: Recommended
  5679. // Stability: Development
  5680. //
  5681. // Examples: "base64"], ["float", "binary"
  5682. // Note: In some GenAI systems the encoding formats are called embedding types.
  5683. // Also, some GenAI systems only accept a single format per request.
  5684. GenAIRequestEncodingFormatsKey = attribute.Key("gen_ai.request.encoding_formats")
  5685. // GenAIRequestFrequencyPenaltyKey is the attribute Key conforming to the
  5686. // "gen_ai.request.frequency_penalty" semantic conventions. It represents the
  5687. // frequency penalty setting for the GenAI request.
  5688. //
  5689. // Type: double
  5690. // RequirementLevel: Recommended
  5691. // Stability: Development
  5692. //
  5693. // Examples: 0.1
  5694. GenAIRequestFrequencyPenaltyKey = attribute.Key("gen_ai.request.frequency_penalty")
  5695. // GenAIRequestMaxTokensKey is the attribute Key conforming to the
  5696. // "gen_ai.request.max_tokens" semantic conventions. It represents the maximum
  5697. // number of tokens the model generates for a request.
  5698. //
  5699. // Type: int
  5700. // RequirementLevel: Recommended
  5701. // Stability: Development
  5702. //
  5703. // Examples: 100
  5704. GenAIRequestMaxTokensKey = attribute.Key("gen_ai.request.max_tokens")
  5705. // GenAIRequestModelKey is the attribute Key conforming to the
  5706. // "gen_ai.request.model" semantic conventions. It represents the name of the
  5707. // GenAI model a request is being made to.
  5708. //
  5709. // Type: string
  5710. // RequirementLevel: Recommended
  5711. // Stability: Development
  5712. //
  5713. // Examples: gpt-4
  5714. GenAIRequestModelKey = attribute.Key("gen_ai.request.model")
  5715. // GenAIRequestPresencePenaltyKey is the attribute Key conforming to the
  5716. // "gen_ai.request.presence_penalty" semantic conventions. It represents the
  5717. // presence penalty setting for the GenAI request.
  5718. //
  5719. // Type: double
  5720. // RequirementLevel: Recommended
  5721. // Stability: Development
  5722. //
  5723. // Examples: 0.1
  5724. GenAIRequestPresencePenaltyKey = attribute.Key("gen_ai.request.presence_penalty")
  5725. // GenAIRequestSeedKey is the attribute Key conforming to the
  5726. // "gen_ai.request.seed" semantic conventions. It represents the requests with
  5727. // same seed value more likely to return same result.
  5728. //
  5729. // Type: int
  5730. // RequirementLevel: Recommended
  5731. // Stability: Development
  5732. //
  5733. // Examples: 100
  5734. GenAIRequestSeedKey = attribute.Key("gen_ai.request.seed")
  5735. // GenAIRequestStopSequencesKey is the attribute Key conforming to the
  5736. // "gen_ai.request.stop_sequences" semantic conventions. It represents the list
  5737. // of sequences that the model will use to stop generating further tokens.
  5738. //
  5739. // Type: string[]
  5740. // RequirementLevel: Recommended
  5741. // Stability: Development
  5742. //
  5743. // Examples: "forest", "lived"
  5744. GenAIRequestStopSequencesKey = attribute.Key("gen_ai.request.stop_sequences")
  5745. // GenAIRequestTemperatureKey is the attribute Key conforming to the
  5746. // "gen_ai.request.temperature" semantic conventions. It represents the
  5747. // temperature setting for the GenAI request.
  5748. //
  5749. // Type: double
  5750. // RequirementLevel: Recommended
  5751. // Stability: Development
  5752. //
  5753. // Examples: 0.0
  5754. GenAIRequestTemperatureKey = attribute.Key("gen_ai.request.temperature")
  5755. // GenAIRequestTopKKey is the attribute Key conforming to the
  5756. // "gen_ai.request.top_k" semantic conventions. It represents the top_k sampling
  5757. // setting for the GenAI request.
  5758. //
  5759. // Type: double
  5760. // RequirementLevel: Recommended
  5761. // Stability: Development
  5762. //
  5763. // Examples: 1.0
  5764. GenAIRequestTopKKey = attribute.Key("gen_ai.request.top_k")
  5765. // GenAIRequestTopPKey is the attribute Key conforming to the
  5766. // "gen_ai.request.top_p" semantic conventions. It represents the top_p sampling
  5767. // setting for the GenAI request.
  5768. //
  5769. // Type: double
  5770. // RequirementLevel: Recommended
  5771. // Stability: Development
  5772. //
  5773. // Examples: 1.0
  5774. GenAIRequestTopPKey = attribute.Key("gen_ai.request.top_p")
  5775. // GenAIResponseFinishReasonsKey is the attribute Key conforming to the
  5776. // "gen_ai.response.finish_reasons" semantic conventions. It represents the
  5777. // array of reasons the model stopped generating tokens, corresponding to each
  5778. // generation received.
  5779. //
  5780. // Type: string[]
  5781. // RequirementLevel: Recommended
  5782. // Stability: Development
  5783. //
  5784. // Examples: "stop"], ["stop", "length"
  5785. GenAIResponseFinishReasonsKey = attribute.Key("gen_ai.response.finish_reasons")
  5786. // GenAIResponseIDKey is the attribute Key conforming to the
  5787. // "gen_ai.response.id" semantic conventions. It represents the unique
  5788. // identifier for the completion.
  5789. //
  5790. // Type: string
  5791. // RequirementLevel: Recommended
  5792. // Stability: Development
  5793. //
  5794. // Examples: "chatcmpl-123"
  5795. GenAIResponseIDKey = attribute.Key("gen_ai.response.id")
  5796. // GenAIResponseModelKey is the attribute Key conforming to the
  5797. // "gen_ai.response.model" semantic conventions. It represents the name of the
  5798. // model that generated the response.
  5799. //
  5800. // Type: string
  5801. // RequirementLevel: Recommended
  5802. // Stability: Development
  5803. //
  5804. // Examples: "gpt-4-0613"
  5805. GenAIResponseModelKey = attribute.Key("gen_ai.response.model")
  5806. // GenAISystemInstructionsKey is the attribute Key conforming to the
  5807. // "gen_ai.system_instructions" semantic conventions. It represents the system
  5808. // message or instructions provided to the GenAI model separately from the chat
  5809. // history.
  5810. //
  5811. // Type: any
  5812. // RequirementLevel: Recommended
  5813. // Stability: Development
  5814. //
  5815. // Examples: "[\n {\n "type": "text",\n "content": "You are an Agent that greet
  5816. // users, always use greetings tool to respond"\n }\n]\n", "[\n {\n "type":
  5817. // "text",\n "content": "You are a language translator."\n },\n {\n "type":
  5818. // "text",\n "content": "Your mission is to translate text in English to
  5819. // French."\n }\n]\n"
  5820. // Note: This attribute SHOULD be used when the corresponding provider or API
  5821. // allows to provide system instructions or messages separately from the
  5822. // chat history.
  5823. //
  5824. // Instructions that are part of the chat history SHOULD be recorded in
  5825. // `gen_ai.input.messages` attribute instead.
  5826. //
  5827. // Instrumentations MUST follow [System instructions JSON schema].
  5828. //
  5829. // When recorded on spans, it MAY be recorded as a JSON string if structured
  5830. // format is not supported and SHOULD be recorded in structured form otherwise.
  5831. //
  5832. // Instrumentations MAY provide a way for users to filter or truncate
  5833. // system instructions.
  5834. //
  5835. // > [!Warning]
  5836. // > This attribute may contain sensitive information.
  5837. //
  5838. // See [Recording content on attributes]
  5839. // section for more details.
  5840. //
  5841. // [System instructions JSON schema]: /docs/gen-ai/gen-ai-system-instructions.json
  5842. // [Recording content on attributes]: /docs/gen-ai/gen-ai-spans.md#recording-content-on-attributes
  5843. GenAISystemInstructionsKey = attribute.Key("gen_ai.system_instructions")
  5844. // GenAITokenTypeKey is the attribute Key conforming to the "gen_ai.token.type"
  5845. // semantic conventions. It represents the type of token being counted.
  5846. //
  5847. // Type: Enum
  5848. // RequirementLevel: Recommended
  5849. // Stability: Development
  5850. //
  5851. // Examples: "input", "output"
  5852. GenAITokenTypeKey = attribute.Key("gen_ai.token.type")
  5853. // GenAIToolCallIDKey is the attribute Key conforming to the
  5854. // "gen_ai.tool.call.id" semantic conventions. It represents the tool call
  5855. // identifier.
  5856. //
  5857. // Type: string
  5858. // RequirementLevel: Recommended
  5859. // Stability: Development
  5860. //
  5861. // Examples: "call_mszuSIzqtI65i1wAUOE8w5H4"
  5862. GenAIToolCallIDKey = attribute.Key("gen_ai.tool.call.id")
  5863. // GenAIToolDescriptionKey is the attribute Key conforming to the
  5864. // "gen_ai.tool.description" semantic conventions. It represents the tool
  5865. // description.
  5866. //
  5867. // Type: string
  5868. // RequirementLevel: Recommended
  5869. // Stability: Development
  5870. //
  5871. // Examples: "Multiply two numbers"
  5872. GenAIToolDescriptionKey = attribute.Key("gen_ai.tool.description")
  5873. // GenAIToolNameKey is the attribute Key conforming to the "gen_ai.tool.name"
  5874. // semantic conventions. It represents the name of the tool utilized by the
  5875. // agent.
  5876. //
  5877. // Type: string
  5878. // RequirementLevel: Recommended
  5879. // Stability: Development
  5880. //
  5881. // Examples: "Flights"
  5882. GenAIToolNameKey = attribute.Key("gen_ai.tool.name")
  5883. // GenAIToolTypeKey is the attribute Key conforming to the "gen_ai.tool.type"
  5884. // semantic conventions. It represents the type of the tool utilized by the
  5885. // agent.
  5886. //
  5887. // Type: string
  5888. // RequirementLevel: Recommended
  5889. // Stability: Development
  5890. //
  5891. // Examples: "function", "extension", "datastore"
  5892. // Note: Extension: A tool executed on the agent-side to directly call external
  5893. // APIs, bridging the gap between the agent and real-world systems.
  5894. // Agent-side operations involve actions that are performed by the agent on the
  5895. // server or within the agent's controlled environment.
  5896. // Function: A tool executed on the client-side, where the agent generates
  5897. // parameters for a predefined function, and the client executes the logic.
  5898. // Client-side operations are actions taken on the user's end or within the
  5899. // client application.
  5900. // Datastore: A tool used by the agent to access and query structured or
  5901. // unstructured external data for retrieval-augmented tasks or knowledge
  5902. // updates.
  5903. GenAIToolTypeKey = attribute.Key("gen_ai.tool.type")
  5904. // GenAIUsageInputTokensKey is the attribute Key conforming to the
  5905. // "gen_ai.usage.input_tokens" semantic conventions. It represents the number of
  5906. // tokens used in the GenAI input (prompt).
  5907. //
  5908. // Type: int
  5909. // RequirementLevel: Recommended
  5910. // Stability: Development
  5911. //
  5912. // Examples: 100
  5913. GenAIUsageInputTokensKey = attribute.Key("gen_ai.usage.input_tokens")
  5914. // GenAIUsageOutputTokensKey is the attribute Key conforming to the
  5915. // "gen_ai.usage.output_tokens" semantic conventions. It represents the number
  5916. // of tokens used in the GenAI response (completion).
  5917. //
  5918. // Type: int
  5919. // RequirementLevel: Recommended
  5920. // Stability: Development
  5921. //
  5922. // Examples: 180
  5923. GenAIUsageOutputTokensKey = attribute.Key("gen_ai.usage.output_tokens")
  5924. )
  5925. // GenAIAgentDescription returns an attribute KeyValue conforming to the
  5926. // "gen_ai.agent.description" semantic conventions. It represents the free-form
  5927. // description of the GenAI agent provided by the application.
  5928. func GenAIAgentDescription(val string) attribute.KeyValue {
  5929. return GenAIAgentDescriptionKey.String(val)
  5930. }
  5931. // GenAIAgentID returns an attribute KeyValue conforming to the "gen_ai.agent.id"
  5932. // semantic conventions. It represents the unique identifier of the GenAI agent.
  5933. func GenAIAgentID(val string) attribute.KeyValue {
  5934. return GenAIAgentIDKey.String(val)
  5935. }
  5936. // GenAIAgentName returns an attribute KeyValue conforming to the
  5937. // "gen_ai.agent.name" semantic conventions. It represents the human-readable
  5938. // name of the GenAI agent provided by the application.
  5939. func GenAIAgentName(val string) attribute.KeyValue {
  5940. return GenAIAgentNameKey.String(val)
  5941. }
  5942. // GenAIConversationID returns an attribute KeyValue conforming to the
  5943. // "gen_ai.conversation.id" semantic conventions. It represents the unique
  5944. // identifier for a conversation (session, thread), used to store and correlate
  5945. // messages within this conversation.
  5946. func GenAIConversationID(val string) attribute.KeyValue {
  5947. return GenAIConversationIDKey.String(val)
  5948. }
  5949. // GenAIDataSourceID returns an attribute KeyValue conforming to the
  5950. // "gen_ai.data_source.id" semantic conventions. It represents the data source
  5951. // identifier.
  5952. func GenAIDataSourceID(val string) attribute.KeyValue {
  5953. return GenAIDataSourceIDKey.String(val)
  5954. }
  5955. // GenAIRequestChoiceCount returns an attribute KeyValue conforming to the
  5956. // "gen_ai.request.choice.count" semantic conventions. It represents the target
  5957. // number of candidate completions to return.
  5958. func GenAIRequestChoiceCount(val int) attribute.KeyValue {
  5959. return GenAIRequestChoiceCountKey.Int(val)
  5960. }
  5961. // GenAIRequestEncodingFormats returns an attribute KeyValue conforming to the
  5962. // "gen_ai.request.encoding_formats" semantic conventions. It represents the
  5963. // encoding formats requested in an embeddings operation, if specified.
  5964. func GenAIRequestEncodingFormats(val ...string) attribute.KeyValue {
  5965. return GenAIRequestEncodingFormatsKey.StringSlice(val)
  5966. }
  5967. // GenAIRequestFrequencyPenalty returns an attribute KeyValue conforming to the
  5968. // "gen_ai.request.frequency_penalty" semantic conventions. It represents the
  5969. // frequency penalty setting for the GenAI request.
  5970. func GenAIRequestFrequencyPenalty(val float64) attribute.KeyValue {
  5971. return GenAIRequestFrequencyPenaltyKey.Float64(val)
  5972. }
  5973. // GenAIRequestMaxTokens returns an attribute KeyValue conforming to the
  5974. // "gen_ai.request.max_tokens" semantic conventions. It represents the maximum
  5975. // number of tokens the model generates for a request.
  5976. func GenAIRequestMaxTokens(val int) attribute.KeyValue {
  5977. return GenAIRequestMaxTokensKey.Int(val)
  5978. }
  5979. // GenAIRequestModel returns an attribute KeyValue conforming to the
  5980. // "gen_ai.request.model" semantic conventions. It represents the name of the
  5981. // GenAI model a request is being made to.
  5982. func GenAIRequestModel(val string) attribute.KeyValue {
  5983. return GenAIRequestModelKey.String(val)
  5984. }
  5985. // GenAIRequestPresencePenalty returns an attribute KeyValue conforming to the
  5986. // "gen_ai.request.presence_penalty" semantic conventions. It represents the
  5987. // presence penalty setting for the GenAI request.
  5988. func GenAIRequestPresencePenalty(val float64) attribute.KeyValue {
  5989. return GenAIRequestPresencePenaltyKey.Float64(val)
  5990. }
  5991. // GenAIRequestSeed returns an attribute KeyValue conforming to the
  5992. // "gen_ai.request.seed" semantic conventions. It represents the requests with
  5993. // same seed value more likely to return same result.
  5994. func GenAIRequestSeed(val int) attribute.KeyValue {
  5995. return GenAIRequestSeedKey.Int(val)
  5996. }
  5997. // GenAIRequestStopSequences returns an attribute KeyValue conforming to the
  5998. // "gen_ai.request.stop_sequences" semantic conventions. It represents the list
  5999. // of sequences that the model will use to stop generating further tokens.
  6000. func GenAIRequestStopSequences(val ...string) attribute.KeyValue {
  6001. return GenAIRequestStopSequencesKey.StringSlice(val)
  6002. }
  6003. // GenAIRequestTemperature returns an attribute KeyValue conforming to the
  6004. // "gen_ai.request.temperature" semantic conventions. It represents the
  6005. // temperature setting for the GenAI request.
  6006. func GenAIRequestTemperature(val float64) attribute.KeyValue {
  6007. return GenAIRequestTemperatureKey.Float64(val)
  6008. }
  6009. // GenAIRequestTopK returns an attribute KeyValue conforming to the
  6010. // "gen_ai.request.top_k" semantic conventions. It represents the top_k sampling
  6011. // setting for the GenAI request.
  6012. func GenAIRequestTopK(val float64) attribute.KeyValue {
  6013. return GenAIRequestTopKKey.Float64(val)
  6014. }
  6015. // GenAIRequestTopP returns an attribute KeyValue conforming to the
  6016. // "gen_ai.request.top_p" semantic conventions. It represents the top_p sampling
  6017. // setting for the GenAI request.
  6018. func GenAIRequestTopP(val float64) attribute.KeyValue {
  6019. return GenAIRequestTopPKey.Float64(val)
  6020. }
  6021. // GenAIResponseFinishReasons returns an attribute KeyValue conforming to the
  6022. // "gen_ai.response.finish_reasons" semantic conventions. It represents the array
  6023. // of reasons the model stopped generating tokens, corresponding to each
  6024. // generation received.
  6025. func GenAIResponseFinishReasons(val ...string) attribute.KeyValue {
  6026. return GenAIResponseFinishReasonsKey.StringSlice(val)
  6027. }
  6028. // GenAIResponseID returns an attribute KeyValue conforming to the
  6029. // "gen_ai.response.id" semantic conventions. It represents the unique identifier
  6030. // for the completion.
  6031. func GenAIResponseID(val string) attribute.KeyValue {
  6032. return GenAIResponseIDKey.String(val)
  6033. }
  6034. // GenAIResponseModel returns an attribute KeyValue conforming to the
  6035. // "gen_ai.response.model" semantic conventions. It represents the name of the
  6036. // model that generated the response.
  6037. func GenAIResponseModel(val string) attribute.KeyValue {
  6038. return GenAIResponseModelKey.String(val)
  6039. }
  6040. // GenAIToolCallID returns an attribute KeyValue conforming to the
  6041. // "gen_ai.tool.call.id" semantic conventions. It represents the tool call
  6042. // identifier.
  6043. func GenAIToolCallID(val string) attribute.KeyValue {
  6044. return GenAIToolCallIDKey.String(val)
  6045. }
  6046. // GenAIToolDescription returns an attribute KeyValue conforming to the
  6047. // "gen_ai.tool.description" semantic conventions. It represents the tool
  6048. // description.
  6049. func GenAIToolDescription(val string) attribute.KeyValue {
  6050. return GenAIToolDescriptionKey.String(val)
  6051. }
  6052. // GenAIToolName returns an attribute KeyValue conforming to the
  6053. // "gen_ai.tool.name" semantic conventions. It represents the name of the tool
  6054. // utilized by the agent.
  6055. func GenAIToolName(val string) attribute.KeyValue {
  6056. return GenAIToolNameKey.String(val)
  6057. }
  6058. // GenAIToolType returns an attribute KeyValue conforming to the
  6059. // "gen_ai.tool.type" semantic conventions. It represents the type of the tool
  6060. // utilized by the agent.
  6061. func GenAIToolType(val string) attribute.KeyValue {
  6062. return GenAIToolTypeKey.String(val)
  6063. }
  6064. // GenAIUsageInputTokens returns an attribute KeyValue conforming to the
  6065. // "gen_ai.usage.input_tokens" semantic conventions. It represents the number of
  6066. // tokens used in the GenAI input (prompt).
  6067. func GenAIUsageInputTokens(val int) attribute.KeyValue {
  6068. return GenAIUsageInputTokensKey.Int(val)
  6069. }
  6070. // GenAIUsageOutputTokens returns an attribute KeyValue conforming to the
  6071. // "gen_ai.usage.output_tokens" semantic conventions. It represents the number of
  6072. // tokens used in the GenAI response (completion).
  6073. func GenAIUsageOutputTokens(val int) attribute.KeyValue {
  6074. return GenAIUsageOutputTokensKey.Int(val)
  6075. }
  6076. // Enum values for gen_ai.operation.name
  6077. var (
  6078. // Chat completion operation such as [OpenAI Chat API]
  6079. // Stability: development
  6080. //
  6081. // [OpenAI Chat API]: https://platform.openai.com/docs/api-reference/chat
  6082. GenAIOperationNameChat = GenAIOperationNameKey.String("chat")
  6083. // Multimodal content generation operation such as [Gemini Generate Content]
  6084. // Stability: development
  6085. //
  6086. // [Gemini Generate Content]: https://ai.google.dev/api/generate-content
  6087. GenAIOperationNameGenerateContent = GenAIOperationNameKey.String("generate_content")
  6088. // Text completions operation such as [OpenAI Completions API (Legacy)]
  6089. // Stability: development
  6090. //
  6091. // [OpenAI Completions API (Legacy)]: https://platform.openai.com/docs/api-reference/completions
  6092. GenAIOperationNameTextCompletion = GenAIOperationNameKey.String("text_completion")
  6093. // Embeddings operation such as [OpenAI Create embeddings API]
  6094. // Stability: development
  6095. //
  6096. // [OpenAI Create embeddings API]: https://platform.openai.com/docs/api-reference/embeddings/create
  6097. GenAIOperationNameEmbeddings = GenAIOperationNameKey.String("embeddings")
  6098. // Create GenAI agent
  6099. // Stability: development
  6100. GenAIOperationNameCreateAgent = GenAIOperationNameKey.String("create_agent")
  6101. // Invoke GenAI agent
  6102. // Stability: development
  6103. GenAIOperationNameInvokeAgent = GenAIOperationNameKey.String("invoke_agent")
  6104. // Execute a tool
  6105. // Stability: development
  6106. GenAIOperationNameExecuteTool = GenAIOperationNameKey.String("execute_tool")
  6107. )
  6108. // Enum values for gen_ai.output.type
  6109. var (
  6110. // Plain text
  6111. // Stability: development
  6112. GenAIOutputTypeText = GenAIOutputTypeKey.String("text")
  6113. // JSON object with known or unknown schema
  6114. // Stability: development
  6115. GenAIOutputTypeJSON = GenAIOutputTypeKey.String("json")
  6116. // Image
  6117. // Stability: development
  6118. GenAIOutputTypeImage = GenAIOutputTypeKey.String("image")
  6119. // Speech
  6120. // Stability: development
  6121. GenAIOutputTypeSpeech = GenAIOutputTypeKey.String("speech")
  6122. )
  6123. // Enum values for gen_ai.provider.name
  6124. var (
  6125. // [OpenAI]
  6126. // Stability: development
  6127. //
  6128. // [OpenAI]: https://openai.com/
  6129. GenAIProviderNameOpenAI = GenAIProviderNameKey.String("openai")
  6130. // Any Google generative AI endpoint
  6131. // Stability: development
  6132. GenAIProviderNameGCPGenAI = GenAIProviderNameKey.String("gcp.gen_ai")
  6133. // [Vertex AI]
  6134. // Stability: development
  6135. //
  6136. // [Vertex AI]: https://cloud.google.com/vertex-ai
  6137. GenAIProviderNameGCPVertexAI = GenAIProviderNameKey.String("gcp.vertex_ai")
  6138. // [Gemini]
  6139. // Stability: development
  6140. //
  6141. // [Gemini]: https://cloud.google.com/products/gemini
  6142. GenAIProviderNameGCPGemini = GenAIProviderNameKey.String("gcp.gemini")
  6143. // [Anthropic]
  6144. // Stability: development
  6145. //
  6146. // [Anthropic]: https://www.anthropic.com/
  6147. GenAIProviderNameAnthropic = GenAIProviderNameKey.String("anthropic")
  6148. // [Cohere]
  6149. // Stability: development
  6150. //
  6151. // [Cohere]: https://cohere.com/
  6152. GenAIProviderNameCohere = GenAIProviderNameKey.String("cohere")
  6153. // Azure AI Inference
  6154. // Stability: development
  6155. GenAIProviderNameAzureAIInference = GenAIProviderNameKey.String("azure.ai.inference")
  6156. // [Azure OpenAI]
  6157. // Stability: development
  6158. //
  6159. // [Azure OpenAI]: https://azure.microsoft.com/products/ai-services/openai-service/
  6160. GenAIProviderNameAzureAIOpenAI = GenAIProviderNameKey.String("azure.ai.openai")
  6161. // [IBM Watsonx AI]
  6162. // Stability: development
  6163. //
  6164. // [IBM Watsonx AI]: https://www.ibm.com/products/watsonx-ai
  6165. GenAIProviderNameIBMWatsonxAI = GenAIProviderNameKey.String("ibm.watsonx.ai")
  6166. // [AWS Bedrock]
  6167. // Stability: development
  6168. //
  6169. // [AWS Bedrock]: https://aws.amazon.com/bedrock
  6170. GenAIProviderNameAWSBedrock = GenAIProviderNameKey.String("aws.bedrock")
  6171. // [Perplexity]
  6172. // Stability: development
  6173. //
  6174. // [Perplexity]: https://www.perplexity.ai/
  6175. GenAIProviderNamePerplexity = GenAIProviderNameKey.String("perplexity")
  6176. // [xAI]
  6177. // Stability: development
  6178. //
  6179. // [xAI]: https://x.ai/
  6180. GenAIProviderNameXAI = GenAIProviderNameKey.String("x_ai")
  6181. // [DeepSeek]
  6182. // Stability: development
  6183. //
  6184. // [DeepSeek]: https://www.deepseek.com/
  6185. GenAIProviderNameDeepseek = GenAIProviderNameKey.String("deepseek")
  6186. // [Groq]
  6187. // Stability: development
  6188. //
  6189. // [Groq]: https://groq.com/
  6190. GenAIProviderNameGroq = GenAIProviderNameKey.String("groq")
  6191. // [Mistral AI]
  6192. // Stability: development
  6193. //
  6194. // [Mistral AI]: https://mistral.ai/
  6195. GenAIProviderNameMistralAI = GenAIProviderNameKey.String("mistral_ai")
  6196. )
  6197. // Enum values for gen_ai.token.type
  6198. var (
  6199. // Input tokens (prompt, input, etc.)
  6200. // Stability: development
  6201. GenAITokenTypeInput = GenAITokenTypeKey.String("input")
  6202. // Output tokens (completion, response, etc.)
  6203. // Stability: development
  6204. GenAITokenTypeOutput = GenAITokenTypeKey.String("output")
  6205. )
  6206. // Namespace: geo
  6207. const (
  6208. // GeoContinentCodeKey is the attribute Key conforming to the
  6209. // "geo.continent.code" semantic conventions. It represents the two-letter code
  6210. // representing continent’s name.
  6211. //
  6212. // Type: Enum
  6213. // RequirementLevel: Recommended
  6214. // Stability: Development
  6215. //
  6216. // Examples:
  6217. GeoContinentCodeKey = attribute.Key("geo.continent.code")
  6218. // GeoCountryISOCodeKey is the attribute Key conforming to the
  6219. // "geo.country.iso_code" semantic conventions. It represents the two-letter ISO
  6220. // Country Code ([ISO 3166-1 alpha2]).
  6221. //
  6222. // Type: string
  6223. // RequirementLevel: Recommended
  6224. // Stability: Development
  6225. //
  6226. // Examples: "CA"
  6227. //
  6228. // [ISO 3166-1 alpha2]: https://wikipedia.org/wiki/ISO_3166-1#Codes
  6229. GeoCountryISOCodeKey = attribute.Key("geo.country.iso_code")
  6230. // GeoLocalityNameKey is the attribute Key conforming to the "geo.locality.name"
  6231. // semantic conventions. It represents the locality name. Represents the name of
  6232. // a city, town, village, or similar populated place.
  6233. //
  6234. // Type: string
  6235. // RequirementLevel: Recommended
  6236. // Stability: Development
  6237. //
  6238. // Examples: "Montreal", "Berlin"
  6239. GeoLocalityNameKey = attribute.Key("geo.locality.name")
  6240. // GeoLocationLatKey is the attribute Key conforming to the "geo.location.lat"
  6241. // semantic conventions. It represents the latitude of the geo location in
  6242. // [WGS84].
  6243. //
  6244. // Type: double
  6245. // RequirementLevel: Recommended
  6246. // Stability: Development
  6247. //
  6248. // Examples: 45.505918
  6249. //
  6250. // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
  6251. GeoLocationLatKey = attribute.Key("geo.location.lat")
  6252. // GeoLocationLonKey is the attribute Key conforming to the "geo.location.lon"
  6253. // semantic conventions. It represents the longitude of the geo location in
  6254. // [WGS84].
  6255. //
  6256. // Type: double
  6257. // RequirementLevel: Recommended
  6258. // Stability: Development
  6259. //
  6260. // Examples: -73.61483
  6261. //
  6262. // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
  6263. GeoLocationLonKey = attribute.Key("geo.location.lon")
  6264. // GeoPostalCodeKey is the attribute Key conforming to the "geo.postal_code"
  6265. // semantic conventions. It represents the postal code associated with the
  6266. // location. Values appropriate for this field may also be known as a postcode
  6267. // or ZIP code and will vary widely from country to country.
  6268. //
  6269. // Type: string
  6270. // RequirementLevel: Recommended
  6271. // Stability: Development
  6272. //
  6273. // Examples: "94040"
  6274. GeoPostalCodeKey = attribute.Key("geo.postal_code")
  6275. // GeoRegionISOCodeKey is the attribute Key conforming to the
  6276. // "geo.region.iso_code" semantic conventions. It represents the region ISO code
  6277. // ([ISO 3166-2]).
  6278. //
  6279. // Type: string
  6280. // RequirementLevel: Recommended
  6281. // Stability: Development
  6282. //
  6283. // Examples: "CA-QC"
  6284. //
  6285. // [ISO 3166-2]: https://wikipedia.org/wiki/ISO_3166-2
  6286. GeoRegionISOCodeKey = attribute.Key("geo.region.iso_code")
  6287. )
  6288. // GeoCountryISOCode returns an attribute KeyValue conforming to the
  6289. // "geo.country.iso_code" semantic conventions. It represents the two-letter ISO
  6290. // Country Code ([ISO 3166-1 alpha2]).
  6291. //
  6292. // [ISO 3166-1 alpha2]: https://wikipedia.org/wiki/ISO_3166-1#Codes
  6293. func GeoCountryISOCode(val string) attribute.KeyValue {
  6294. return GeoCountryISOCodeKey.String(val)
  6295. }
  6296. // GeoLocalityName returns an attribute KeyValue conforming to the
  6297. // "geo.locality.name" semantic conventions. It represents the locality name.
  6298. // Represents the name of a city, town, village, or similar populated place.
  6299. func GeoLocalityName(val string) attribute.KeyValue {
  6300. return GeoLocalityNameKey.String(val)
  6301. }
  6302. // GeoLocationLat returns an attribute KeyValue conforming to the
  6303. // "geo.location.lat" semantic conventions. It represents the latitude of the geo
  6304. // location in [WGS84].
  6305. //
  6306. // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
  6307. func GeoLocationLat(val float64) attribute.KeyValue {
  6308. return GeoLocationLatKey.Float64(val)
  6309. }
  6310. // GeoLocationLon returns an attribute KeyValue conforming to the
  6311. // "geo.location.lon" semantic conventions. It represents the longitude of the
  6312. // geo location in [WGS84].
  6313. //
  6314. // [WGS84]: https://wikipedia.org/wiki/World_Geodetic_System#WGS84
  6315. func GeoLocationLon(val float64) attribute.KeyValue {
  6316. return GeoLocationLonKey.Float64(val)
  6317. }
  6318. // GeoPostalCode returns an attribute KeyValue conforming to the
  6319. // "geo.postal_code" semantic conventions. It represents the postal code
  6320. // associated with the location. Values appropriate for this field may also be
  6321. // known as a postcode or ZIP code and will vary widely from country to country.
  6322. func GeoPostalCode(val string) attribute.KeyValue {
  6323. return GeoPostalCodeKey.String(val)
  6324. }
  6325. // GeoRegionISOCode returns an attribute KeyValue conforming to the
  6326. // "geo.region.iso_code" semantic conventions. It represents the region ISO code
  6327. // ([ISO 3166-2]).
  6328. //
  6329. // [ISO 3166-2]: https://wikipedia.org/wiki/ISO_3166-2
  6330. func GeoRegionISOCode(val string) attribute.KeyValue {
  6331. return GeoRegionISOCodeKey.String(val)
  6332. }
  6333. // Enum values for geo.continent.code
  6334. var (
  6335. // Africa
  6336. // Stability: development
  6337. GeoContinentCodeAf = GeoContinentCodeKey.String("AF")
  6338. // Antarctica
  6339. // Stability: development
  6340. GeoContinentCodeAn = GeoContinentCodeKey.String("AN")
  6341. // Asia
  6342. // Stability: development
  6343. GeoContinentCodeAs = GeoContinentCodeKey.String("AS")
  6344. // Europe
  6345. // Stability: development
  6346. GeoContinentCodeEu = GeoContinentCodeKey.String("EU")
  6347. // North America
  6348. // Stability: development
  6349. GeoContinentCodeNa = GeoContinentCodeKey.String("NA")
  6350. // Oceania
  6351. // Stability: development
  6352. GeoContinentCodeOc = GeoContinentCodeKey.String("OC")
  6353. // South America
  6354. // Stability: development
  6355. GeoContinentCodeSa = GeoContinentCodeKey.String("SA")
  6356. )
  6357. // Namespace: go
  6358. const (
  6359. // GoMemoryTypeKey is the attribute Key conforming to the "go.memory.type"
  6360. // semantic conventions. It represents the type of memory.
  6361. //
  6362. // Type: Enum
  6363. // RequirementLevel: Recommended
  6364. // Stability: Development
  6365. //
  6366. // Examples: "other", "stack"
  6367. GoMemoryTypeKey = attribute.Key("go.memory.type")
  6368. )
  6369. // Enum values for go.memory.type
  6370. var (
  6371. // Memory allocated from the heap that is reserved for stack space, whether or
  6372. // not it is currently in-use.
  6373. // Stability: development
  6374. GoMemoryTypeStack = GoMemoryTypeKey.String("stack")
  6375. // Memory used by the Go runtime, excluding other categories of memory usage
  6376. // described in this enumeration.
  6377. // Stability: development
  6378. GoMemoryTypeOther = GoMemoryTypeKey.String("other")
  6379. )
  6380. // Namespace: graphql
  6381. const (
  6382. // GraphQLDocumentKey is the attribute Key conforming to the "graphql.document"
  6383. // semantic conventions. It represents the GraphQL document being executed.
  6384. //
  6385. // Type: string
  6386. // RequirementLevel: Recommended
  6387. // Stability: Development
  6388. //
  6389. // Examples: query findBookById { bookById(id: ?) { name } }
  6390. // Note: The value may be sanitized to exclude sensitive information.
  6391. GraphQLDocumentKey = attribute.Key("graphql.document")
  6392. // GraphQLOperationNameKey is the attribute Key conforming to the
  6393. // "graphql.operation.name" semantic conventions. It represents the name of the
  6394. // operation being executed.
  6395. //
  6396. // Type: string
  6397. // RequirementLevel: Recommended
  6398. // Stability: Development
  6399. //
  6400. // Examples: findBookById
  6401. GraphQLOperationNameKey = attribute.Key("graphql.operation.name")
  6402. // GraphQLOperationTypeKey is the attribute Key conforming to the
  6403. // "graphql.operation.type" semantic conventions. It represents the type of the
  6404. // operation being executed.
  6405. //
  6406. // Type: Enum
  6407. // RequirementLevel: Recommended
  6408. // Stability: Development
  6409. //
  6410. // Examples: "query", "mutation", "subscription"
  6411. GraphQLOperationTypeKey = attribute.Key("graphql.operation.type")
  6412. )
  6413. // GraphQLDocument returns an attribute KeyValue conforming to the
  6414. // "graphql.document" semantic conventions. It represents the GraphQL document
  6415. // being executed.
  6416. func GraphQLDocument(val string) attribute.KeyValue {
  6417. return GraphQLDocumentKey.String(val)
  6418. }
  6419. // GraphQLOperationName returns an attribute KeyValue conforming to the
  6420. // "graphql.operation.name" semantic conventions. It represents the name of the
  6421. // operation being executed.
  6422. func GraphQLOperationName(val string) attribute.KeyValue {
  6423. return GraphQLOperationNameKey.String(val)
  6424. }
  6425. // Enum values for graphql.operation.type
  6426. var (
  6427. // GraphQL query
  6428. // Stability: development
  6429. GraphQLOperationTypeQuery = GraphQLOperationTypeKey.String("query")
  6430. // GraphQL mutation
  6431. // Stability: development
  6432. GraphQLOperationTypeMutation = GraphQLOperationTypeKey.String("mutation")
  6433. // GraphQL subscription
  6434. // Stability: development
  6435. GraphQLOperationTypeSubscription = GraphQLOperationTypeKey.String("subscription")
  6436. )
  6437. // Namespace: heroku
  6438. const (
  6439. // HerokuAppIDKey is the attribute Key conforming to the "heroku.app.id"
  6440. // semantic conventions. It represents the unique identifier for the
  6441. // application.
  6442. //
  6443. // Type: string
  6444. // RequirementLevel: Recommended
  6445. // Stability: Development
  6446. //
  6447. // Examples: "2daa2797-e42b-4624-9322-ec3f968df4da"
  6448. HerokuAppIDKey = attribute.Key("heroku.app.id")
  6449. // HerokuReleaseCommitKey is the attribute Key conforming to the
  6450. // "heroku.release.commit" semantic conventions. It represents the commit hash
  6451. // for the current release.
  6452. //
  6453. // Type: string
  6454. // RequirementLevel: Recommended
  6455. // Stability: Development
  6456. //
  6457. // Examples: "e6134959463efd8966b20e75b913cafe3f5ec"
  6458. HerokuReleaseCommitKey = attribute.Key("heroku.release.commit")
  6459. // HerokuReleaseCreationTimestampKey is the attribute Key conforming to the
  6460. // "heroku.release.creation_timestamp" semantic conventions. It represents the
  6461. // time and date the release was created.
  6462. //
  6463. // Type: string
  6464. // RequirementLevel: Recommended
  6465. // Stability: Development
  6466. //
  6467. // Examples: "2022-10-23T18:00:42Z"
  6468. HerokuReleaseCreationTimestampKey = attribute.Key("heroku.release.creation_timestamp")
  6469. )
  6470. // HerokuAppID returns an attribute KeyValue conforming to the "heroku.app.id"
  6471. // semantic conventions. It represents the unique identifier for the application.
  6472. func HerokuAppID(val string) attribute.KeyValue {
  6473. return HerokuAppIDKey.String(val)
  6474. }
  6475. // HerokuReleaseCommit returns an attribute KeyValue conforming to the
  6476. // "heroku.release.commit" semantic conventions. It represents the commit hash
  6477. // for the current release.
  6478. func HerokuReleaseCommit(val string) attribute.KeyValue {
  6479. return HerokuReleaseCommitKey.String(val)
  6480. }
  6481. // HerokuReleaseCreationTimestamp returns an attribute KeyValue conforming to the
  6482. // "heroku.release.creation_timestamp" semantic conventions. It represents the
  6483. // time and date the release was created.
  6484. func HerokuReleaseCreationTimestamp(val string) attribute.KeyValue {
  6485. return HerokuReleaseCreationTimestampKey.String(val)
  6486. }
  6487. // Namespace: host
  6488. const (
  6489. // HostArchKey is the attribute Key conforming to the "host.arch" semantic
  6490. // conventions. It represents the CPU architecture the host system is running
  6491. // on.
  6492. //
  6493. // Type: Enum
  6494. // RequirementLevel: Recommended
  6495. // Stability: Development
  6496. //
  6497. // Examples:
  6498. HostArchKey = attribute.Key("host.arch")
  6499. // HostCPUCacheL2SizeKey is the attribute Key conforming to the
  6500. // "host.cpu.cache.l2.size" semantic conventions. It represents the amount of
  6501. // level 2 memory cache available to the processor (in Bytes).
  6502. //
  6503. // Type: int
  6504. // RequirementLevel: Recommended
  6505. // Stability: Development
  6506. //
  6507. // Examples: 12288000
  6508. HostCPUCacheL2SizeKey = attribute.Key("host.cpu.cache.l2.size")
  6509. // HostCPUFamilyKey is the attribute Key conforming to the "host.cpu.family"
  6510. // semantic conventions. It represents the family or generation of the CPU.
  6511. //
  6512. // Type: string
  6513. // RequirementLevel: Recommended
  6514. // Stability: Development
  6515. //
  6516. // Examples: "6", "PA-RISC 1.1e"
  6517. HostCPUFamilyKey = attribute.Key("host.cpu.family")
  6518. // HostCPUModelIDKey is the attribute Key conforming to the "host.cpu.model.id"
  6519. // semantic conventions. It represents the model identifier. It provides more
  6520. // granular information about the CPU, distinguishing it from other CPUs within
  6521. // the same family.
  6522. //
  6523. // Type: string
  6524. // RequirementLevel: Recommended
  6525. // Stability: Development
  6526. //
  6527. // Examples: "6", "9000/778/B180L"
  6528. HostCPUModelIDKey = attribute.Key("host.cpu.model.id")
  6529. // HostCPUModelNameKey is the attribute Key conforming to the
  6530. // "host.cpu.model.name" semantic conventions. It represents the model
  6531. // designation of the processor.
  6532. //
  6533. // Type: string
  6534. // RequirementLevel: Recommended
  6535. // Stability: Development
  6536. //
  6537. // Examples: "11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz"
  6538. HostCPUModelNameKey = attribute.Key("host.cpu.model.name")
  6539. // HostCPUSteppingKey is the attribute Key conforming to the "host.cpu.stepping"
  6540. // semantic conventions. It represents the stepping or core revisions.
  6541. //
  6542. // Type: string
  6543. // RequirementLevel: Recommended
  6544. // Stability: Development
  6545. //
  6546. // Examples: "1", "r1p1"
  6547. HostCPUSteppingKey = attribute.Key("host.cpu.stepping")
  6548. // HostCPUVendorIDKey is the attribute Key conforming to the
  6549. // "host.cpu.vendor.id" semantic conventions. It represents the processor
  6550. // manufacturer identifier. A maximum 12-character string.
  6551. //
  6552. // Type: string
  6553. // RequirementLevel: Recommended
  6554. // Stability: Development
  6555. //
  6556. // Examples: "GenuineIntel"
  6557. // Note: [CPUID] command returns the vendor ID string in EBX, EDX and ECX
  6558. // registers. Writing these to memory in this order results in a 12-character
  6559. // string.
  6560. //
  6561. // [CPUID]: https://wiki.osdev.org/CPUID
  6562. HostCPUVendorIDKey = attribute.Key("host.cpu.vendor.id")
  6563. // HostIDKey is the attribute Key conforming to the "host.id" semantic
  6564. // conventions. It represents the unique host ID. For Cloud, this must be the
  6565. // instance_id assigned by the cloud provider. For non-containerized systems,
  6566. // this should be the `machine-id`. See the table below for the sources to use
  6567. // to determine the `machine-id` based on operating system.
  6568. //
  6569. // Type: string
  6570. // RequirementLevel: Recommended
  6571. // Stability: Development
  6572. //
  6573. // Examples: "fdbf79e8af94cb7f9e8df36789187052"
  6574. HostIDKey = attribute.Key("host.id")
  6575. // HostImageIDKey is the attribute Key conforming to the "host.image.id"
  6576. // semantic conventions. It represents the VM image ID or host OS image ID. For
  6577. // Cloud, this value is from the provider.
  6578. //
  6579. // Type: string
  6580. // RequirementLevel: Recommended
  6581. // Stability: Development
  6582. //
  6583. // Examples: "ami-07b06b442921831e5"
  6584. HostImageIDKey = attribute.Key("host.image.id")
  6585. // HostImageNameKey is the attribute Key conforming to the "host.image.name"
  6586. // semantic conventions. It represents the name of the VM image or OS install
  6587. // the host was instantiated from.
  6588. //
  6589. // Type: string
  6590. // RequirementLevel: Recommended
  6591. // Stability: Development
  6592. //
  6593. // Examples: "infra-ami-eks-worker-node-7d4ec78312", "CentOS-8-x86_64-1905"
  6594. HostImageNameKey = attribute.Key("host.image.name")
  6595. // HostImageVersionKey is the attribute Key conforming to the
  6596. // "host.image.version" semantic conventions. It represents the version string
  6597. // of the VM image or host OS as defined in [Version Attributes].
  6598. //
  6599. // Type: string
  6600. // RequirementLevel: Recommended
  6601. // Stability: Development
  6602. //
  6603. // Examples: "0.1"
  6604. //
  6605. // [Version Attributes]: /docs/resource/README.md#version-attributes
  6606. HostImageVersionKey = attribute.Key("host.image.version")
  6607. // HostIPKey is the attribute Key conforming to the "host.ip" semantic
  6608. // conventions. It represents the available IP addresses of the host, excluding
  6609. // loopback interfaces.
  6610. //
  6611. // Type: string[]
  6612. // RequirementLevel: Recommended
  6613. // Stability: Development
  6614. //
  6615. // Examples: "192.168.1.140", "fe80::abc2:4a28:737a:609e"
  6616. // Note: IPv4 Addresses MUST be specified in dotted-quad notation. IPv6
  6617. // addresses MUST be specified in the [RFC 5952] format.
  6618. //
  6619. // [RFC 5952]: https://www.rfc-editor.org/rfc/rfc5952.html
  6620. HostIPKey = attribute.Key("host.ip")
  6621. // HostMacKey is the attribute Key conforming to the "host.mac" semantic
  6622. // conventions. It represents the available MAC addresses of the host, excluding
  6623. // loopback interfaces.
  6624. //
  6625. // Type: string[]
  6626. // RequirementLevel: Recommended
  6627. // Stability: Development
  6628. //
  6629. // Examples: "AC-DE-48-23-45-67", "AC-DE-48-23-45-67-01-9F"
  6630. // Note: MAC Addresses MUST be represented in [IEEE RA hexadecimal form]: as
  6631. // hyphen-separated octets in uppercase hexadecimal form from most to least
  6632. // significant.
  6633. //
  6634. // [IEEE RA hexadecimal form]: https://standards.ieee.org/wp-content/uploads/import/documents/tutorials/eui.pdf
  6635. HostMacKey = attribute.Key("host.mac")
  6636. // HostNameKey is the attribute Key conforming to the "host.name" semantic
  6637. // conventions. It represents the name of the host. On Unix systems, it may
  6638. // contain what the hostname command returns, or the fully qualified hostname,
  6639. // or another name specified by the user.
  6640. //
  6641. // Type: string
  6642. // RequirementLevel: Recommended
  6643. // Stability: Development
  6644. //
  6645. // Examples: "opentelemetry-test"
  6646. HostNameKey = attribute.Key("host.name")
  6647. // HostTypeKey is the attribute Key conforming to the "host.type" semantic
  6648. // conventions. It represents the type of host. For Cloud, this must be the
  6649. // machine type.
  6650. //
  6651. // Type: string
  6652. // RequirementLevel: Recommended
  6653. // Stability: Development
  6654. //
  6655. // Examples: "n1-standard-1"
  6656. HostTypeKey = attribute.Key("host.type")
  6657. )
  6658. // HostCPUCacheL2Size returns an attribute KeyValue conforming to the
  6659. // "host.cpu.cache.l2.size" semantic conventions. It represents the amount of
  6660. // level 2 memory cache available to the processor (in Bytes).
  6661. func HostCPUCacheL2Size(val int) attribute.KeyValue {
  6662. return HostCPUCacheL2SizeKey.Int(val)
  6663. }
  6664. // HostCPUFamily returns an attribute KeyValue conforming to the
  6665. // "host.cpu.family" semantic conventions. It represents the family or generation
  6666. // of the CPU.
  6667. func HostCPUFamily(val string) attribute.KeyValue {
  6668. return HostCPUFamilyKey.String(val)
  6669. }
  6670. // HostCPUModelID returns an attribute KeyValue conforming to the
  6671. // "host.cpu.model.id" semantic conventions. It represents the model identifier.
  6672. // It provides more granular information about the CPU, distinguishing it from
  6673. // other CPUs within the same family.
  6674. func HostCPUModelID(val string) attribute.KeyValue {
  6675. return HostCPUModelIDKey.String(val)
  6676. }
  6677. // HostCPUModelName returns an attribute KeyValue conforming to the
  6678. // "host.cpu.model.name" semantic conventions. It represents the model
  6679. // designation of the processor.
  6680. func HostCPUModelName(val string) attribute.KeyValue {
  6681. return HostCPUModelNameKey.String(val)
  6682. }
  6683. // HostCPUStepping returns an attribute KeyValue conforming to the
  6684. // "host.cpu.stepping" semantic conventions. It represents the stepping or core
  6685. // revisions.
  6686. func HostCPUStepping(val string) attribute.KeyValue {
  6687. return HostCPUSteppingKey.String(val)
  6688. }
  6689. // HostCPUVendorID returns an attribute KeyValue conforming to the
  6690. // "host.cpu.vendor.id" semantic conventions. It represents the processor
  6691. // manufacturer identifier. A maximum 12-character string.
  6692. func HostCPUVendorID(val string) attribute.KeyValue {
  6693. return HostCPUVendorIDKey.String(val)
  6694. }
  6695. // HostID returns an attribute KeyValue conforming to the "host.id" semantic
  6696. // conventions. It represents the unique host ID. For Cloud, this must be the
  6697. // instance_id assigned by the cloud provider. For non-containerized systems,
  6698. // this should be the `machine-id`. See the table below for the sources to use to
  6699. // determine the `machine-id` based on operating system.
  6700. func HostID(val string) attribute.KeyValue {
  6701. return HostIDKey.String(val)
  6702. }
  6703. // HostImageID returns an attribute KeyValue conforming to the "host.image.id"
  6704. // semantic conventions. It represents the VM image ID or host OS image ID. For
  6705. // Cloud, this value is from the provider.
  6706. func HostImageID(val string) attribute.KeyValue {
  6707. return HostImageIDKey.String(val)
  6708. }
  6709. // HostImageName returns an attribute KeyValue conforming to the
  6710. // "host.image.name" semantic conventions. It represents the name of the VM image
  6711. // or OS install the host was instantiated from.
  6712. func HostImageName(val string) attribute.KeyValue {
  6713. return HostImageNameKey.String(val)
  6714. }
  6715. // HostImageVersion returns an attribute KeyValue conforming to the
  6716. // "host.image.version" semantic conventions. It represents the version string of
  6717. // the VM image or host OS as defined in [Version Attributes].
  6718. //
  6719. // [Version Attributes]: /docs/resource/README.md#version-attributes
  6720. func HostImageVersion(val string) attribute.KeyValue {
  6721. return HostImageVersionKey.String(val)
  6722. }
  6723. // HostIP returns an attribute KeyValue conforming to the "host.ip" semantic
  6724. // conventions. It represents the available IP addresses of the host, excluding
  6725. // loopback interfaces.
  6726. func HostIP(val ...string) attribute.KeyValue {
  6727. return HostIPKey.StringSlice(val)
  6728. }
  6729. // HostMac returns an attribute KeyValue conforming to the "host.mac" semantic
  6730. // conventions. It represents the available MAC addresses of the host, excluding
  6731. // loopback interfaces.
  6732. func HostMac(val ...string) attribute.KeyValue {
  6733. return HostMacKey.StringSlice(val)
  6734. }
  6735. // HostName returns an attribute KeyValue conforming to the "host.name" semantic
  6736. // conventions. It represents the name of the host. On Unix systems, it may
  6737. // contain what the hostname command returns, or the fully qualified hostname, or
  6738. // another name specified by the user.
  6739. func HostName(val string) attribute.KeyValue {
  6740. return HostNameKey.String(val)
  6741. }
  6742. // HostType returns an attribute KeyValue conforming to the "host.type" semantic
  6743. // conventions. It represents the type of host. For Cloud, this must be the
  6744. // machine type.
  6745. func HostType(val string) attribute.KeyValue {
  6746. return HostTypeKey.String(val)
  6747. }
  6748. // Enum values for host.arch
  6749. var (
  6750. // AMD64
  6751. // Stability: development
  6752. HostArchAMD64 = HostArchKey.String("amd64")
  6753. // ARM32
  6754. // Stability: development
  6755. HostArchARM32 = HostArchKey.String("arm32")
  6756. // ARM64
  6757. // Stability: development
  6758. HostArchARM64 = HostArchKey.String("arm64")
  6759. // Itanium
  6760. // Stability: development
  6761. HostArchIA64 = HostArchKey.String("ia64")
  6762. // 32-bit PowerPC
  6763. // Stability: development
  6764. HostArchPPC32 = HostArchKey.String("ppc32")
  6765. // 64-bit PowerPC
  6766. // Stability: development
  6767. HostArchPPC64 = HostArchKey.String("ppc64")
  6768. // IBM z/Architecture
  6769. // Stability: development
  6770. HostArchS390x = HostArchKey.String("s390x")
  6771. // 32-bit x86
  6772. // Stability: development
  6773. HostArchX86 = HostArchKey.String("x86")
  6774. )
  6775. // Namespace: http
  6776. const (
  6777. // HTTPConnectionStateKey is the attribute Key conforming to the
  6778. // "http.connection.state" semantic conventions. It represents the state of the
  6779. // HTTP connection in the HTTP connection pool.
  6780. //
  6781. // Type: Enum
  6782. // RequirementLevel: Recommended
  6783. // Stability: Development
  6784. //
  6785. // Examples: "active", "idle"
  6786. HTTPConnectionStateKey = attribute.Key("http.connection.state")
  6787. // HTTPRequestBodySizeKey is the attribute Key conforming to the
  6788. // "http.request.body.size" semantic conventions. It represents the size of the
  6789. // request payload body in bytes. This is the number of bytes transferred
  6790. // excluding headers and is often, but not always, present as the
  6791. // [Content-Length] header. For requests using transport encoding, this should
  6792. // be the compressed size.
  6793. //
  6794. // Type: int
  6795. // RequirementLevel: Recommended
  6796. // Stability: Development
  6797. //
  6798. // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
  6799. HTTPRequestBodySizeKey = attribute.Key("http.request.body.size")
  6800. // HTTPRequestMethodKey is the attribute Key conforming to the
  6801. // "http.request.method" semantic conventions. It represents the HTTP request
  6802. // method.
  6803. //
  6804. // Type: Enum
  6805. // RequirementLevel: Recommended
  6806. // Stability: Stable
  6807. //
  6808. // Examples: "GET", "POST", "HEAD"
  6809. // Note: HTTP request method value SHOULD be "known" to the instrumentation.
  6810. // By default, this convention defines "known" methods as the ones listed in
  6811. // [RFC9110]
  6812. // and the PATCH method defined in [RFC5789].
  6813. //
  6814. // If the HTTP request method is not known to instrumentation, it MUST set the
  6815. // `http.request.method` attribute to `_OTHER`.
  6816. //
  6817. // If the HTTP instrumentation could end up converting valid HTTP request
  6818. // methods to `_OTHER`, then it MUST provide a way to override
  6819. // the list of known HTTP methods. If this override is done via environment
  6820. // variable, then the environment variable MUST be named
  6821. // OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of
  6822. // case-sensitive known HTTP methods
  6823. // (this list MUST be a full override of the default known method, it is not a
  6824. // list of known methods in addition to the defaults).
  6825. //
  6826. // HTTP method names are case-sensitive and `http.request.method` attribute
  6827. // value MUST match a known HTTP method name exactly.
  6828. // Instrumentations for specific web frameworks that consider HTTP methods to be
  6829. // case insensitive, SHOULD populate a canonical equivalent.
  6830. // Tracing instrumentations that do so, MUST also set
  6831. // `http.request.method_original` to the original value.
  6832. //
  6833. // [RFC9110]: https://www.rfc-editor.org/rfc/rfc9110.html#name-methods
  6834. // [RFC5789]: https://www.rfc-editor.org/rfc/rfc5789.html
  6835. HTTPRequestMethodKey = attribute.Key("http.request.method")
  6836. // HTTPRequestMethodOriginalKey is the attribute Key conforming to the
  6837. // "http.request.method_original" semantic conventions. It represents the
  6838. // original HTTP method sent by the client in the request line.
  6839. //
  6840. // Type: string
  6841. // RequirementLevel: Recommended
  6842. // Stability: Stable
  6843. //
  6844. // Examples: "GeT", "ACL", "foo"
  6845. HTTPRequestMethodOriginalKey = attribute.Key("http.request.method_original")
  6846. // HTTPRequestResendCountKey is the attribute Key conforming to the
  6847. // "http.request.resend_count" semantic conventions. It represents the ordinal
  6848. // number of request resending attempt (for any reason, including redirects).
  6849. //
  6850. // Type: int
  6851. // RequirementLevel: Recommended
  6852. // Stability: Stable
  6853. //
  6854. // Note: The resend count SHOULD be updated each time an HTTP request gets
  6855. // resent by the client, regardless of what was the cause of the resending (e.g.
  6856. // redirection, authorization failure, 503 Server Unavailable, network issues,
  6857. // or any other).
  6858. HTTPRequestResendCountKey = attribute.Key("http.request.resend_count")
  6859. // HTTPRequestSizeKey is the attribute Key conforming to the "http.request.size"
  6860. // semantic conventions. It represents the total size of the request in bytes.
  6861. // This should be the total number of bytes sent over the wire, including the
  6862. // request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers, and request
  6863. // body if any.
  6864. //
  6865. // Type: int
  6866. // RequirementLevel: Recommended
  6867. // Stability: Development
  6868. HTTPRequestSizeKey = attribute.Key("http.request.size")
  6869. // HTTPResponseBodySizeKey is the attribute Key conforming to the
  6870. // "http.response.body.size" semantic conventions. It represents the size of the
  6871. // response payload body in bytes. This is the number of bytes transferred
  6872. // excluding headers and is often, but not always, present as the
  6873. // [Content-Length] header. For requests using transport encoding, this should
  6874. // be the compressed size.
  6875. //
  6876. // Type: int
  6877. // RequirementLevel: Recommended
  6878. // Stability: Development
  6879. //
  6880. // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
  6881. HTTPResponseBodySizeKey = attribute.Key("http.response.body.size")
  6882. // HTTPResponseSizeKey is the attribute Key conforming to the
  6883. // "http.response.size" semantic conventions. It represents the total size of
  6884. // the response in bytes. This should be the total number of bytes sent over the
  6885. // wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3),
  6886. // headers, and response body and trailers if any.
  6887. //
  6888. // Type: int
  6889. // RequirementLevel: Recommended
  6890. // Stability: Development
  6891. HTTPResponseSizeKey = attribute.Key("http.response.size")
  6892. // HTTPResponseStatusCodeKey is the attribute Key conforming to the
  6893. // "http.response.status_code" semantic conventions. It represents the
  6894. // [HTTP response status code].
  6895. //
  6896. // Type: int
  6897. // RequirementLevel: Recommended
  6898. // Stability: Stable
  6899. //
  6900. // Examples: 200
  6901. //
  6902. // [HTTP response status code]: https://tools.ietf.org/html/rfc7231#section-6
  6903. HTTPResponseStatusCodeKey = attribute.Key("http.response.status_code")
  6904. // HTTPRouteKey is the attribute Key conforming to the "http.route" semantic
  6905. // conventions. It represents the matched route, that is, the path template in
  6906. // the format used by the respective server framework.
  6907. //
  6908. // Type: string
  6909. // RequirementLevel: Recommended
  6910. // Stability: Stable
  6911. //
  6912. // Examples: "/users/:userID?", "{controller}/{action}/{id?}"
  6913. // Note: MUST NOT be populated when this is not supported by the HTTP server
  6914. // framework as the route attribute should have low-cardinality and the URI path
  6915. // can NOT substitute it.
  6916. // SHOULD include the [application root] if there is one.
  6917. //
  6918. // [application root]: /docs/http/http-spans.md#http-server-definitions
  6919. HTTPRouteKey = attribute.Key("http.route")
  6920. )
  6921. // HTTPRequestBodySize returns an attribute KeyValue conforming to the
  6922. // "http.request.body.size" semantic conventions. It represents the size of the
  6923. // request payload body in bytes. This is the number of bytes transferred
  6924. // excluding headers and is often, but not always, present as the
  6925. // [Content-Length] header. For requests using transport encoding, this should be
  6926. // the compressed size.
  6927. //
  6928. // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
  6929. func HTTPRequestBodySize(val int) attribute.KeyValue {
  6930. return HTTPRequestBodySizeKey.Int(val)
  6931. }
  6932. // HTTPRequestHeader returns an attribute KeyValue conforming to the
  6933. // "http.request.header" semantic conventions. It represents the HTTP request
  6934. // headers, `<key>` being the normalized HTTP Header name (lowercase), the value
  6935. // being the header values.
  6936. func HTTPRequestHeader(key string, val ...string) attribute.KeyValue {
  6937. return attribute.StringSlice("http.request.header."+key, val)
  6938. }
  6939. // HTTPRequestMethodOriginal returns an attribute KeyValue conforming to the
  6940. // "http.request.method_original" semantic conventions. It represents the
  6941. // original HTTP method sent by the client in the request line.
  6942. func HTTPRequestMethodOriginal(val string) attribute.KeyValue {
  6943. return HTTPRequestMethodOriginalKey.String(val)
  6944. }
  6945. // HTTPRequestResendCount returns an attribute KeyValue conforming to the
  6946. // "http.request.resend_count" semantic conventions. It represents the ordinal
  6947. // number of request resending attempt (for any reason, including redirects).
  6948. func HTTPRequestResendCount(val int) attribute.KeyValue {
  6949. return HTTPRequestResendCountKey.Int(val)
  6950. }
  6951. // HTTPRequestSize returns an attribute KeyValue conforming to the
  6952. // "http.request.size" semantic conventions. It represents the total size of the
  6953. // request in bytes. This should be the total number of bytes sent over the wire,
  6954. // including the request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers,
  6955. // and request body if any.
  6956. func HTTPRequestSize(val int) attribute.KeyValue {
  6957. return HTTPRequestSizeKey.Int(val)
  6958. }
  6959. // HTTPResponseBodySize returns an attribute KeyValue conforming to the
  6960. // "http.response.body.size" semantic conventions. It represents the size of the
  6961. // response payload body in bytes. This is the number of bytes transferred
  6962. // excluding headers and is often, but not always, present as the
  6963. // [Content-Length] header. For requests using transport encoding, this should be
  6964. // the compressed size.
  6965. //
  6966. // [Content-Length]: https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length
  6967. func HTTPResponseBodySize(val int) attribute.KeyValue {
  6968. return HTTPResponseBodySizeKey.Int(val)
  6969. }
  6970. // HTTPResponseHeader returns an attribute KeyValue conforming to the
  6971. // "http.response.header" semantic conventions. It represents the HTTP response
  6972. // headers, `<key>` being the normalized HTTP Header name (lowercase), the value
  6973. // being the header values.
  6974. func HTTPResponseHeader(key string, val ...string) attribute.KeyValue {
  6975. return attribute.StringSlice("http.response.header."+key, val)
  6976. }
  6977. // HTTPResponseSize returns an attribute KeyValue conforming to the
  6978. // "http.response.size" semantic conventions. It represents the total size of the
  6979. // response in bytes. This should be the total number of bytes sent over the
  6980. // wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3),
  6981. // headers, and response body and trailers if any.
  6982. func HTTPResponseSize(val int) attribute.KeyValue {
  6983. return HTTPResponseSizeKey.Int(val)
  6984. }
  6985. // HTTPResponseStatusCode returns an attribute KeyValue conforming to the
  6986. // "http.response.status_code" semantic conventions. It represents the
  6987. // [HTTP response status code].
  6988. //
  6989. // [HTTP response status code]: https://tools.ietf.org/html/rfc7231#section-6
  6990. func HTTPResponseStatusCode(val int) attribute.KeyValue {
  6991. return HTTPResponseStatusCodeKey.Int(val)
  6992. }
  6993. // HTTPRoute returns an attribute KeyValue conforming to the "http.route"
  6994. // semantic conventions. It represents the matched route, that is, the path
  6995. // template in the format used by the respective server framework.
  6996. func HTTPRoute(val string) attribute.KeyValue {
  6997. return HTTPRouteKey.String(val)
  6998. }
  6999. // Enum values for http.connection.state
  7000. var (
  7001. // active state.
  7002. // Stability: development
  7003. HTTPConnectionStateActive = HTTPConnectionStateKey.String("active")
  7004. // idle state.
  7005. // Stability: development
  7006. HTTPConnectionStateIdle = HTTPConnectionStateKey.String("idle")
  7007. )
  7008. // Enum values for http.request.method
  7009. var (
  7010. // CONNECT method.
  7011. // Stability: stable
  7012. HTTPRequestMethodConnect = HTTPRequestMethodKey.String("CONNECT")
  7013. // DELETE method.
  7014. // Stability: stable
  7015. HTTPRequestMethodDelete = HTTPRequestMethodKey.String("DELETE")
  7016. // GET method.
  7017. // Stability: stable
  7018. HTTPRequestMethodGet = HTTPRequestMethodKey.String("GET")
  7019. // HEAD method.
  7020. // Stability: stable
  7021. HTTPRequestMethodHead = HTTPRequestMethodKey.String("HEAD")
  7022. // OPTIONS method.
  7023. // Stability: stable
  7024. HTTPRequestMethodOptions = HTTPRequestMethodKey.String("OPTIONS")
  7025. // PATCH method.
  7026. // Stability: stable
  7027. HTTPRequestMethodPatch = HTTPRequestMethodKey.String("PATCH")
  7028. // POST method.
  7029. // Stability: stable
  7030. HTTPRequestMethodPost = HTTPRequestMethodKey.String("POST")
  7031. // PUT method.
  7032. // Stability: stable
  7033. HTTPRequestMethodPut = HTTPRequestMethodKey.String("PUT")
  7034. // TRACE method.
  7035. // Stability: stable
  7036. HTTPRequestMethodTrace = HTTPRequestMethodKey.String("TRACE")
  7037. // Any HTTP method that the instrumentation has no prior knowledge of.
  7038. // Stability: stable
  7039. HTTPRequestMethodOther = HTTPRequestMethodKey.String("_OTHER")
  7040. )
  7041. // Namespace: hw
  7042. const (
  7043. // HwBatteryCapacityKey is the attribute Key conforming to the
  7044. // "hw.battery.capacity" semantic conventions. It represents the design capacity
  7045. // in Watts-hours or Amper-hours.
  7046. //
  7047. // Type: string
  7048. // RequirementLevel: Recommended
  7049. // Stability: Development
  7050. //
  7051. // Examples: "9.3Ah", "50Wh"
  7052. HwBatteryCapacityKey = attribute.Key("hw.battery.capacity")
  7053. // HwBatteryChemistryKey is the attribute Key conforming to the
  7054. // "hw.battery.chemistry" semantic conventions. It represents the battery
  7055. // [chemistry], e.g. Lithium-Ion, Nickel-Cadmium, etc.
  7056. //
  7057. // Type: string
  7058. // RequirementLevel: Recommended
  7059. // Stability: Development
  7060. //
  7061. // Examples: "Li-ion", "NiMH"
  7062. //
  7063. // [chemistry]: https://schemas.dmtf.org/wbem/cim-html/2.31.0/CIM_Battery.html
  7064. HwBatteryChemistryKey = attribute.Key("hw.battery.chemistry")
  7065. // HwBatteryStateKey is the attribute Key conforming to the "hw.battery.state"
  7066. // semantic conventions. It represents the current state of the battery.
  7067. //
  7068. // Type: Enum
  7069. // RequirementLevel: Recommended
  7070. // Stability: Development
  7071. //
  7072. // Examples:
  7073. HwBatteryStateKey = attribute.Key("hw.battery.state")
  7074. // HwBiosVersionKey is the attribute Key conforming to the "hw.bios_version"
  7075. // semantic conventions. It represents the BIOS version of the hardware
  7076. // component.
  7077. //
  7078. // Type: string
  7079. // RequirementLevel: Recommended
  7080. // Stability: Development
  7081. //
  7082. // Examples: "1.2.3"
  7083. HwBiosVersionKey = attribute.Key("hw.bios_version")
  7084. // HwDriverVersionKey is the attribute Key conforming to the "hw.driver_version"
  7085. // semantic conventions. It represents the driver version for the hardware
  7086. // component.
  7087. //
  7088. // Type: string
  7089. // RequirementLevel: Recommended
  7090. // Stability: Development
  7091. //
  7092. // Examples: "10.2.1-3"
  7093. HwDriverVersionKey = attribute.Key("hw.driver_version")
  7094. // HwEnclosureTypeKey is the attribute Key conforming to the "hw.enclosure.type"
  7095. // semantic conventions. It represents the type of the enclosure (useful for
  7096. // modular systems).
  7097. //
  7098. // Type: string
  7099. // RequirementLevel: Recommended
  7100. // Stability: Development
  7101. //
  7102. // Examples: "Computer", "Storage", "Switch"
  7103. HwEnclosureTypeKey = attribute.Key("hw.enclosure.type")
  7104. // HwFirmwareVersionKey is the attribute Key conforming to the
  7105. // "hw.firmware_version" semantic conventions. It represents the firmware
  7106. // version of the hardware component.
  7107. //
  7108. // Type: string
  7109. // RequirementLevel: Recommended
  7110. // Stability: Development
  7111. //
  7112. // Examples: "2.0.1"
  7113. HwFirmwareVersionKey = attribute.Key("hw.firmware_version")
  7114. // HwGpuTaskKey is the attribute Key conforming to the "hw.gpu.task" semantic
  7115. // conventions. It represents the type of task the GPU is performing.
  7116. //
  7117. // Type: Enum
  7118. // RequirementLevel: Recommended
  7119. // Stability: Development
  7120. //
  7121. // Examples:
  7122. HwGpuTaskKey = attribute.Key("hw.gpu.task")
  7123. // HwIDKey is the attribute Key conforming to the "hw.id" semantic conventions.
  7124. // It represents an identifier for the hardware component, unique within the
  7125. // monitored host.
  7126. //
  7127. // Type: string
  7128. // RequirementLevel: Recommended
  7129. // Stability: Development
  7130. //
  7131. // Examples: "win32battery_battery_testsysa33_1"
  7132. HwIDKey = attribute.Key("hw.id")
  7133. // HwLimitTypeKey is the attribute Key conforming to the "hw.limit_type"
  7134. // semantic conventions. It represents the type of limit for hardware
  7135. // components.
  7136. //
  7137. // Type: Enum
  7138. // RequirementLevel: Recommended
  7139. // Stability: Development
  7140. //
  7141. // Examples:
  7142. HwLimitTypeKey = attribute.Key("hw.limit_type")
  7143. // HwLogicalDiskRaidLevelKey is the attribute Key conforming to the
  7144. // "hw.logical_disk.raid_level" semantic conventions. It represents the RAID
  7145. // Level of the logical disk.
  7146. //
  7147. // Type: string
  7148. // RequirementLevel: Recommended
  7149. // Stability: Development
  7150. //
  7151. // Examples: "RAID0+1", "RAID5", "RAID10"
  7152. HwLogicalDiskRaidLevelKey = attribute.Key("hw.logical_disk.raid_level")
  7153. // HwLogicalDiskStateKey is the attribute Key conforming to the
  7154. // "hw.logical_disk.state" semantic conventions. It represents the state of the
  7155. // logical disk space usage.
  7156. //
  7157. // Type: Enum
  7158. // RequirementLevel: Recommended
  7159. // Stability: Development
  7160. //
  7161. // Examples:
  7162. HwLogicalDiskStateKey = attribute.Key("hw.logical_disk.state")
  7163. // HwMemoryTypeKey is the attribute Key conforming to the "hw.memory.type"
  7164. // semantic conventions. It represents the type of the memory module.
  7165. //
  7166. // Type: string
  7167. // RequirementLevel: Recommended
  7168. // Stability: Development
  7169. //
  7170. // Examples: "DDR4", "DDR5", "LPDDR5"
  7171. HwMemoryTypeKey = attribute.Key("hw.memory.type")
  7172. // HwModelKey is the attribute Key conforming to the "hw.model" semantic
  7173. // conventions. It represents the descriptive model name of the hardware
  7174. // component.
  7175. //
  7176. // Type: string
  7177. // RequirementLevel: Recommended
  7178. // Stability: Development
  7179. //
  7180. // Examples: "PERC H740P", "Intel(R) Core(TM) i7-10700K", "Dell XPS 15 Battery"
  7181. HwModelKey = attribute.Key("hw.model")
  7182. // HwNameKey is the attribute Key conforming to the "hw.name" semantic
  7183. // conventions. It represents an easily-recognizable name for the hardware
  7184. // component.
  7185. //
  7186. // Type: string
  7187. // RequirementLevel: Recommended
  7188. // Stability: Development
  7189. //
  7190. // Examples: "eth0"
  7191. HwNameKey = attribute.Key("hw.name")
  7192. // HwNetworkLogicalAddressesKey is the attribute Key conforming to the
  7193. // "hw.network.logical_addresses" semantic conventions. It represents the
  7194. // logical addresses of the adapter (e.g. IP address, or WWPN).
  7195. //
  7196. // Type: string[]
  7197. // RequirementLevel: Recommended
  7198. // Stability: Development
  7199. //
  7200. // Examples: "172.16.8.21", "57.11.193.42"
  7201. HwNetworkLogicalAddressesKey = attribute.Key("hw.network.logical_addresses")
  7202. // HwNetworkPhysicalAddressKey is the attribute Key conforming to the
  7203. // "hw.network.physical_address" semantic conventions. It represents the
  7204. // physical address of the adapter (e.g. MAC address, or WWNN).
  7205. //
  7206. // Type: string
  7207. // RequirementLevel: Recommended
  7208. // Stability: Development
  7209. //
  7210. // Examples: "00-90-F5-E9-7B-36"
  7211. HwNetworkPhysicalAddressKey = attribute.Key("hw.network.physical_address")
  7212. // HwParentKey is the attribute Key conforming to the "hw.parent" semantic
  7213. // conventions. It represents the unique identifier of the parent component
  7214. // (typically the `hw.id` attribute of the enclosure, or disk controller).
  7215. //
  7216. // Type: string
  7217. // RequirementLevel: Recommended
  7218. // Stability: Development
  7219. //
  7220. // Examples: "dellStorage_perc_0"
  7221. HwParentKey = attribute.Key("hw.parent")
  7222. // HwPhysicalDiskSmartAttributeKey is the attribute Key conforming to the
  7223. // "hw.physical_disk.smart_attribute" semantic conventions. It represents the
  7224. // [S.M.A.R.T.] (Self-Monitoring, Analysis, and Reporting Technology) attribute
  7225. // of the physical disk.
  7226. //
  7227. // Type: string
  7228. // RequirementLevel: Recommended
  7229. // Stability: Development
  7230. //
  7231. // Examples: "Spin Retry Count", "Seek Error Rate", "Raw Read Error Rate"
  7232. //
  7233. // [S.M.A.R.T.]: https://wikipedia.org/wiki/S.M.A.R.T.
  7234. HwPhysicalDiskSmartAttributeKey = attribute.Key("hw.physical_disk.smart_attribute")
  7235. // HwPhysicalDiskStateKey is the attribute Key conforming to the
  7236. // "hw.physical_disk.state" semantic conventions. It represents the state of the
  7237. // physical disk endurance utilization.
  7238. //
  7239. // Type: Enum
  7240. // RequirementLevel: Recommended
  7241. // Stability: Development
  7242. //
  7243. // Examples:
  7244. HwPhysicalDiskStateKey = attribute.Key("hw.physical_disk.state")
  7245. // HwPhysicalDiskTypeKey is the attribute Key conforming to the
  7246. // "hw.physical_disk.type" semantic conventions. It represents the type of the
  7247. // physical disk.
  7248. //
  7249. // Type: string
  7250. // RequirementLevel: Recommended
  7251. // Stability: Development
  7252. //
  7253. // Examples: "HDD", "SSD", "10K"
  7254. HwPhysicalDiskTypeKey = attribute.Key("hw.physical_disk.type")
  7255. // HwSensorLocationKey is the attribute Key conforming to the
  7256. // "hw.sensor_location" semantic conventions. It represents the location of the
  7257. // sensor.
  7258. //
  7259. // Type: string
  7260. // RequirementLevel: Recommended
  7261. // Stability: Development
  7262. //
  7263. // Examples: "cpu0", "ps1", "INLET", "CPU0_DIE", "AMBIENT", "MOTHERBOARD", "PS0
  7264. // V3_3", "MAIN_12V", "CPU_VCORE"
  7265. HwSensorLocationKey = attribute.Key("hw.sensor_location")
  7266. // HwSerialNumberKey is the attribute Key conforming to the "hw.serial_number"
  7267. // semantic conventions. It represents the serial number of the hardware
  7268. // component.
  7269. //
  7270. // Type: string
  7271. // RequirementLevel: Recommended
  7272. // Stability: Development
  7273. //
  7274. // Examples: "CNFCP0123456789"
  7275. HwSerialNumberKey = attribute.Key("hw.serial_number")
  7276. // HwStateKey is the attribute Key conforming to the "hw.state" semantic
  7277. // conventions. It represents the current state of the component.
  7278. //
  7279. // Type: Enum
  7280. // RequirementLevel: Recommended
  7281. // Stability: Development
  7282. //
  7283. // Examples:
  7284. HwStateKey = attribute.Key("hw.state")
  7285. // HwTapeDriveOperationTypeKey is the attribute Key conforming to the
  7286. // "hw.tape_drive.operation_type" semantic conventions. It represents the type
  7287. // of tape drive operation.
  7288. //
  7289. // Type: Enum
  7290. // RequirementLevel: Recommended
  7291. // Stability: Development
  7292. //
  7293. // Examples:
  7294. HwTapeDriveOperationTypeKey = attribute.Key("hw.tape_drive.operation_type")
  7295. // HwTypeKey is the attribute Key conforming to the "hw.type" semantic
  7296. // conventions. It represents the type of the component.
  7297. //
  7298. // Type: Enum
  7299. // RequirementLevel: Recommended
  7300. // Stability: Development
  7301. //
  7302. // Examples:
  7303. // Note: Describes the category of the hardware component for which `hw.state`
  7304. // is being reported. For example, `hw.type=temperature` along with
  7305. // `hw.state=degraded` would indicate that the temperature of the hardware
  7306. // component has been reported as `degraded`.
  7307. HwTypeKey = attribute.Key("hw.type")
  7308. // HwVendorKey is the attribute Key conforming to the "hw.vendor" semantic
  7309. // conventions. It represents the vendor name of the hardware component.
  7310. //
  7311. // Type: string
  7312. // RequirementLevel: Recommended
  7313. // Stability: Development
  7314. //
  7315. // Examples: "Dell", "HP", "Intel", "AMD", "LSI", "Lenovo"
  7316. HwVendorKey = attribute.Key("hw.vendor")
  7317. )
  7318. // HwBatteryCapacity returns an attribute KeyValue conforming to the
  7319. // "hw.battery.capacity" semantic conventions. It represents the design capacity
  7320. // in Watts-hours or Amper-hours.
  7321. func HwBatteryCapacity(val string) attribute.KeyValue {
  7322. return HwBatteryCapacityKey.String(val)
  7323. }
  7324. // HwBatteryChemistry returns an attribute KeyValue conforming to the
  7325. // "hw.battery.chemistry" semantic conventions. It represents the battery
  7326. // [chemistry], e.g. Lithium-Ion, Nickel-Cadmium, etc.
  7327. //
  7328. // [chemistry]: https://schemas.dmtf.org/wbem/cim-html/2.31.0/CIM_Battery.html
  7329. func HwBatteryChemistry(val string) attribute.KeyValue {
  7330. return HwBatteryChemistryKey.String(val)
  7331. }
  7332. // HwBiosVersion returns an attribute KeyValue conforming to the
  7333. // "hw.bios_version" semantic conventions. It represents the BIOS version of the
  7334. // hardware component.
  7335. func HwBiosVersion(val string) attribute.KeyValue {
  7336. return HwBiosVersionKey.String(val)
  7337. }
  7338. // HwDriverVersion returns an attribute KeyValue conforming to the
  7339. // "hw.driver_version" semantic conventions. It represents the driver version for
  7340. // the hardware component.
  7341. func HwDriverVersion(val string) attribute.KeyValue {
  7342. return HwDriverVersionKey.String(val)
  7343. }
  7344. // HwEnclosureType returns an attribute KeyValue conforming to the
  7345. // "hw.enclosure.type" semantic conventions. It represents the type of the
  7346. // enclosure (useful for modular systems).
  7347. func HwEnclosureType(val string) attribute.KeyValue {
  7348. return HwEnclosureTypeKey.String(val)
  7349. }
  7350. // HwFirmwareVersion returns an attribute KeyValue conforming to the
  7351. // "hw.firmware_version" semantic conventions. It represents the firmware version
  7352. // of the hardware component.
  7353. func HwFirmwareVersion(val string) attribute.KeyValue {
  7354. return HwFirmwareVersionKey.String(val)
  7355. }
  7356. // HwID returns an attribute KeyValue conforming to the "hw.id" semantic
  7357. // conventions. It represents an identifier for the hardware component, unique
  7358. // within the monitored host.
  7359. func HwID(val string) attribute.KeyValue {
  7360. return HwIDKey.String(val)
  7361. }
  7362. // HwLogicalDiskRaidLevel returns an attribute KeyValue conforming to the
  7363. // "hw.logical_disk.raid_level" semantic conventions. It represents the RAID
  7364. // Level of the logical disk.
  7365. func HwLogicalDiskRaidLevel(val string) attribute.KeyValue {
  7366. return HwLogicalDiskRaidLevelKey.String(val)
  7367. }
  7368. // HwMemoryType returns an attribute KeyValue conforming to the "hw.memory.type"
  7369. // semantic conventions. It represents the type of the memory module.
  7370. func HwMemoryType(val string) attribute.KeyValue {
  7371. return HwMemoryTypeKey.String(val)
  7372. }
  7373. // HwModel returns an attribute KeyValue conforming to the "hw.model" semantic
  7374. // conventions. It represents the descriptive model name of the hardware
  7375. // component.
  7376. func HwModel(val string) attribute.KeyValue {
  7377. return HwModelKey.String(val)
  7378. }
  7379. // HwName returns an attribute KeyValue conforming to the "hw.name" semantic
  7380. // conventions. It represents an easily-recognizable name for the hardware
  7381. // component.
  7382. func HwName(val string) attribute.KeyValue {
  7383. return HwNameKey.String(val)
  7384. }
  7385. // HwNetworkLogicalAddresses returns an attribute KeyValue conforming to the
  7386. // "hw.network.logical_addresses" semantic conventions. It represents the logical
  7387. // addresses of the adapter (e.g. IP address, or WWPN).
  7388. func HwNetworkLogicalAddresses(val ...string) attribute.KeyValue {
  7389. return HwNetworkLogicalAddressesKey.StringSlice(val)
  7390. }
  7391. // HwNetworkPhysicalAddress returns an attribute KeyValue conforming to the
  7392. // "hw.network.physical_address" semantic conventions. It represents the physical
  7393. // address of the adapter (e.g. MAC address, or WWNN).
  7394. func HwNetworkPhysicalAddress(val string) attribute.KeyValue {
  7395. return HwNetworkPhysicalAddressKey.String(val)
  7396. }
  7397. // HwParent returns an attribute KeyValue conforming to the "hw.parent" semantic
  7398. // conventions. It represents the unique identifier of the parent component
  7399. // (typically the `hw.id` attribute of the enclosure, or disk controller).
  7400. func HwParent(val string) attribute.KeyValue {
  7401. return HwParentKey.String(val)
  7402. }
  7403. // HwPhysicalDiskSmartAttribute returns an attribute KeyValue conforming to the
  7404. // "hw.physical_disk.smart_attribute" semantic conventions. It represents the
  7405. // [S.M.A.R.T.] (Self-Monitoring, Analysis, and Reporting Technology) attribute
  7406. // of the physical disk.
  7407. //
  7408. // [S.M.A.R.T.]: https://wikipedia.org/wiki/S.M.A.R.T.
  7409. func HwPhysicalDiskSmartAttribute(val string) attribute.KeyValue {
  7410. return HwPhysicalDiskSmartAttributeKey.String(val)
  7411. }
  7412. // HwPhysicalDiskType returns an attribute KeyValue conforming to the
  7413. // "hw.physical_disk.type" semantic conventions. It represents the type of the
  7414. // physical disk.
  7415. func HwPhysicalDiskType(val string) attribute.KeyValue {
  7416. return HwPhysicalDiskTypeKey.String(val)
  7417. }
  7418. // HwSensorLocation returns an attribute KeyValue conforming to the
  7419. // "hw.sensor_location" semantic conventions. It represents the location of the
  7420. // sensor.
  7421. func HwSensorLocation(val string) attribute.KeyValue {
  7422. return HwSensorLocationKey.String(val)
  7423. }
  7424. // HwSerialNumber returns an attribute KeyValue conforming to the
  7425. // "hw.serial_number" semantic conventions. It represents the serial number of
  7426. // the hardware component.
  7427. func HwSerialNumber(val string) attribute.KeyValue {
  7428. return HwSerialNumberKey.String(val)
  7429. }
  7430. // HwVendor returns an attribute KeyValue conforming to the "hw.vendor" semantic
  7431. // conventions. It represents the vendor name of the hardware component.
  7432. func HwVendor(val string) attribute.KeyValue {
  7433. return HwVendorKey.String(val)
  7434. }
  7435. // Enum values for hw.battery.state
  7436. var (
  7437. // Charging
  7438. // Stability: development
  7439. HwBatteryStateCharging = HwBatteryStateKey.String("charging")
  7440. // Discharging
  7441. // Stability: development
  7442. HwBatteryStateDischarging = HwBatteryStateKey.String("discharging")
  7443. )
  7444. // Enum values for hw.gpu.task
  7445. var (
  7446. // Decoder
  7447. // Stability: development
  7448. HwGpuTaskDecoder = HwGpuTaskKey.String("decoder")
  7449. // Encoder
  7450. // Stability: development
  7451. HwGpuTaskEncoder = HwGpuTaskKey.String("encoder")
  7452. // General
  7453. // Stability: development
  7454. HwGpuTaskGeneral = HwGpuTaskKey.String("general")
  7455. )
  7456. // Enum values for hw.limit_type
  7457. var (
  7458. // Critical
  7459. // Stability: development
  7460. HwLimitTypeCritical = HwLimitTypeKey.String("critical")
  7461. // Degraded
  7462. // Stability: development
  7463. HwLimitTypeDegraded = HwLimitTypeKey.String("degraded")
  7464. // High Critical
  7465. // Stability: development
  7466. HwLimitTypeHighCritical = HwLimitTypeKey.String("high.critical")
  7467. // High Degraded
  7468. // Stability: development
  7469. HwLimitTypeHighDegraded = HwLimitTypeKey.String("high.degraded")
  7470. // Low Critical
  7471. // Stability: development
  7472. HwLimitTypeLowCritical = HwLimitTypeKey.String("low.critical")
  7473. // Low Degraded
  7474. // Stability: development
  7475. HwLimitTypeLowDegraded = HwLimitTypeKey.String("low.degraded")
  7476. // Maximum
  7477. // Stability: development
  7478. HwLimitTypeMax = HwLimitTypeKey.String("max")
  7479. // Throttled
  7480. // Stability: development
  7481. HwLimitTypeThrottled = HwLimitTypeKey.String("throttled")
  7482. // Turbo
  7483. // Stability: development
  7484. HwLimitTypeTurbo = HwLimitTypeKey.String("turbo")
  7485. )
  7486. // Enum values for hw.logical_disk.state
  7487. var (
  7488. // Used
  7489. // Stability: development
  7490. HwLogicalDiskStateUsed = HwLogicalDiskStateKey.String("used")
  7491. // Free
  7492. // Stability: development
  7493. HwLogicalDiskStateFree = HwLogicalDiskStateKey.String("free")
  7494. )
  7495. // Enum values for hw.physical_disk.state
  7496. var (
  7497. // Remaining
  7498. // Stability: development
  7499. HwPhysicalDiskStateRemaining = HwPhysicalDiskStateKey.String("remaining")
  7500. )
  7501. // Enum values for hw.state
  7502. var (
  7503. // Degraded
  7504. // Stability: development
  7505. HwStateDegraded = HwStateKey.String("degraded")
  7506. // Failed
  7507. // Stability: development
  7508. HwStateFailed = HwStateKey.String("failed")
  7509. // Needs Cleaning
  7510. // Stability: development
  7511. HwStateNeedsCleaning = HwStateKey.String("needs_cleaning")
  7512. // OK
  7513. // Stability: development
  7514. HwStateOk = HwStateKey.String("ok")
  7515. // Predicted Failure
  7516. // Stability: development
  7517. HwStatePredictedFailure = HwStateKey.String("predicted_failure")
  7518. )
  7519. // Enum values for hw.tape_drive.operation_type
  7520. var (
  7521. // Mount
  7522. // Stability: development
  7523. HwTapeDriveOperationTypeMount = HwTapeDriveOperationTypeKey.String("mount")
  7524. // Unmount
  7525. // Stability: development
  7526. HwTapeDriveOperationTypeUnmount = HwTapeDriveOperationTypeKey.String("unmount")
  7527. // Clean
  7528. // Stability: development
  7529. HwTapeDriveOperationTypeClean = HwTapeDriveOperationTypeKey.String("clean")
  7530. )
  7531. // Enum values for hw.type
  7532. var (
  7533. // Battery
  7534. // Stability: development
  7535. HwTypeBattery = HwTypeKey.String("battery")
  7536. // CPU
  7537. // Stability: development
  7538. HwTypeCPU = HwTypeKey.String("cpu")
  7539. // Disk controller
  7540. // Stability: development
  7541. HwTypeDiskController = HwTypeKey.String("disk_controller")
  7542. // Enclosure
  7543. // Stability: development
  7544. HwTypeEnclosure = HwTypeKey.String("enclosure")
  7545. // Fan
  7546. // Stability: development
  7547. HwTypeFan = HwTypeKey.String("fan")
  7548. // GPU
  7549. // Stability: development
  7550. HwTypeGpu = HwTypeKey.String("gpu")
  7551. // Logical disk
  7552. // Stability: development
  7553. HwTypeLogicalDisk = HwTypeKey.String("logical_disk")
  7554. // Memory
  7555. // Stability: development
  7556. HwTypeMemory = HwTypeKey.String("memory")
  7557. // Network
  7558. // Stability: development
  7559. HwTypeNetwork = HwTypeKey.String("network")
  7560. // Physical disk
  7561. // Stability: development
  7562. HwTypePhysicalDisk = HwTypeKey.String("physical_disk")
  7563. // Power supply
  7564. // Stability: development
  7565. HwTypePowerSupply = HwTypeKey.String("power_supply")
  7566. // Tape drive
  7567. // Stability: development
  7568. HwTypeTapeDrive = HwTypeKey.String("tape_drive")
  7569. // Temperature
  7570. // Stability: development
  7571. HwTypeTemperature = HwTypeKey.String("temperature")
  7572. // Voltage
  7573. // Stability: development
  7574. HwTypeVoltage = HwTypeKey.String("voltage")
  7575. )
  7576. // Namespace: ios
  7577. const (
  7578. // IOSAppStateKey is the attribute Key conforming to the "ios.app.state"
  7579. // semantic conventions. It represents the this attribute represents the state
  7580. // of the application.
  7581. //
  7582. // Type: Enum
  7583. // RequirementLevel: Recommended
  7584. // Stability: Development
  7585. //
  7586. // Examples:
  7587. // Note: The iOS lifecycle states are defined in the
  7588. // [UIApplicationDelegate documentation], and from which the `OS terminology`
  7589. // column values are derived.
  7590. //
  7591. // [UIApplicationDelegate documentation]: https://developer.apple.com/documentation/uikit/uiapplicationdelegate
  7592. IOSAppStateKey = attribute.Key("ios.app.state")
  7593. )
  7594. // Enum values for ios.app.state
  7595. var (
  7596. // The app has become `active`. Associated with UIKit notification
  7597. // `applicationDidBecomeActive`.
  7598. //
  7599. // Stability: development
  7600. IOSAppStateActive = IOSAppStateKey.String("active")
  7601. // The app is now `inactive`. Associated with UIKit notification
  7602. // `applicationWillResignActive`.
  7603. //
  7604. // Stability: development
  7605. IOSAppStateInactive = IOSAppStateKey.String("inactive")
  7606. // The app is now in the background. This value is associated with UIKit
  7607. // notification `applicationDidEnterBackground`.
  7608. //
  7609. // Stability: development
  7610. IOSAppStateBackground = IOSAppStateKey.String("background")
  7611. // The app is now in the foreground. This value is associated with UIKit
  7612. // notification `applicationWillEnterForeground`.
  7613. //
  7614. // Stability: development
  7615. IOSAppStateForeground = IOSAppStateKey.String("foreground")
  7616. // The app is about to terminate. Associated with UIKit notification
  7617. // `applicationWillTerminate`.
  7618. //
  7619. // Stability: development
  7620. IOSAppStateTerminate = IOSAppStateKey.String("terminate")
  7621. )
  7622. // Namespace: k8s
  7623. const (
  7624. // K8SClusterNameKey is the attribute Key conforming to the "k8s.cluster.name"
  7625. // semantic conventions. It represents the name of the cluster.
  7626. //
  7627. // Type: string
  7628. // RequirementLevel: Recommended
  7629. // Stability: Development
  7630. //
  7631. // Examples: "opentelemetry-cluster"
  7632. K8SClusterNameKey = attribute.Key("k8s.cluster.name")
  7633. // K8SClusterUIDKey is the attribute Key conforming to the "k8s.cluster.uid"
  7634. // semantic conventions. It represents a pseudo-ID for the cluster, set to the
  7635. // UID of the `kube-system` namespace.
  7636. //
  7637. // Type: string
  7638. // RequirementLevel: Recommended
  7639. // Stability: Development
  7640. //
  7641. // Examples: "218fc5a9-a5f1-4b54-aa05-46717d0ab26d"
  7642. // Note: K8s doesn't have support for obtaining a cluster ID. If this is ever
  7643. // added, we will recommend collecting the `k8s.cluster.uid` through the
  7644. // official APIs. In the meantime, we are able to use the `uid` of the
  7645. // `kube-system` namespace as a proxy for cluster ID. Read on for the
  7646. // rationale.
  7647. //
  7648. // Every object created in a K8s cluster is assigned a distinct UID. The
  7649. // `kube-system` namespace is used by Kubernetes itself and will exist
  7650. // for the lifetime of the cluster. Using the `uid` of the `kube-system`
  7651. // namespace is a reasonable proxy for the K8s ClusterID as it will only
  7652. // change if the cluster is rebuilt. Furthermore, Kubernetes UIDs are
  7653. // UUIDs as standardized by
  7654. // [ISO/IEC 9834-8 and ITU-T X.667].
  7655. // Which states:
  7656. //
  7657. // > If generated according to one of the mechanisms defined in Rec.
  7658. // > ITU-T X.667 | ISO/IEC 9834-8, a UUID is either guaranteed to be
  7659. // > different from all other UUIDs generated before 3603 A.D., or is
  7660. // > extremely likely to be different (depending on the mechanism chosen).
  7661. //
  7662. // Therefore, UIDs between clusters should be extremely unlikely to
  7663. // conflict.
  7664. //
  7665. // [ISO/IEC 9834-8 and ITU-T X.667]: https://www.itu.int/ITU-T/studygroups/com17/oid.html
  7666. K8SClusterUIDKey = attribute.Key("k8s.cluster.uid")
  7667. // K8SContainerNameKey is the attribute Key conforming to the
  7668. // "k8s.container.name" semantic conventions. It represents the name of the
  7669. // Container from Pod specification, must be unique within a Pod. Container
  7670. // runtime usually uses different globally unique name (`container.name`).
  7671. //
  7672. // Type: string
  7673. // RequirementLevel: Recommended
  7674. // Stability: Development
  7675. //
  7676. // Examples: "redis"
  7677. K8SContainerNameKey = attribute.Key("k8s.container.name")
  7678. // K8SContainerRestartCountKey is the attribute Key conforming to the
  7679. // "k8s.container.restart_count" semantic conventions. It represents the number
  7680. // of times the container was restarted. This attribute can be used to identify
  7681. // a particular container (running or stopped) within a container spec.
  7682. //
  7683. // Type: int
  7684. // RequirementLevel: Recommended
  7685. // Stability: Development
  7686. //
  7687. // Examples:
  7688. K8SContainerRestartCountKey = attribute.Key("k8s.container.restart_count")
  7689. // K8SContainerStatusLastTerminatedReasonKey is the attribute Key conforming to
  7690. // the "k8s.container.status.last_terminated_reason" semantic conventions. It
  7691. // represents the last terminated reason of the Container.
  7692. //
  7693. // Type: string
  7694. // RequirementLevel: Recommended
  7695. // Stability: Development
  7696. //
  7697. // Examples: "Evicted", "Error"
  7698. K8SContainerStatusLastTerminatedReasonKey = attribute.Key("k8s.container.status.last_terminated_reason")
  7699. // K8SContainerStatusReasonKey is the attribute Key conforming to the
  7700. // "k8s.container.status.reason" semantic conventions. It represents the reason
  7701. // for the container state. Corresponds to the `reason` field of the:
  7702. // [K8s ContainerStateWaiting] or [K8s ContainerStateTerminated].
  7703. //
  7704. // Type: Enum
  7705. // RequirementLevel: Recommended
  7706. // Stability: Development
  7707. //
  7708. // Examples: "ContainerCreating", "CrashLoopBackOff",
  7709. // "CreateContainerConfigError", "ErrImagePull", "ImagePullBackOff",
  7710. // "OOMKilled", "Completed", "Error", "ContainerCannotRun"
  7711. //
  7712. // [K8s ContainerStateWaiting]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#containerstatewaiting-v1-core
  7713. // [K8s ContainerStateTerminated]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#containerstateterminated-v1-core
  7714. K8SContainerStatusReasonKey = attribute.Key("k8s.container.status.reason")
  7715. // K8SContainerStatusStateKey is the attribute Key conforming to the
  7716. // "k8s.container.status.state" semantic conventions. It represents the state of
  7717. // the container. [K8s ContainerState].
  7718. //
  7719. // Type: Enum
  7720. // RequirementLevel: Recommended
  7721. // Stability: Development
  7722. //
  7723. // Examples: "terminated", "running", "waiting"
  7724. //
  7725. // [K8s ContainerState]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#containerstate-v1-core
  7726. K8SContainerStatusStateKey = attribute.Key("k8s.container.status.state")
  7727. // K8SCronJobNameKey is the attribute Key conforming to the "k8s.cronjob.name"
  7728. // semantic conventions. It represents the name of the CronJob.
  7729. //
  7730. // Type: string
  7731. // RequirementLevel: Recommended
  7732. // Stability: Development
  7733. //
  7734. // Examples: "opentelemetry"
  7735. K8SCronJobNameKey = attribute.Key("k8s.cronjob.name")
  7736. // K8SCronJobUIDKey is the attribute Key conforming to the "k8s.cronjob.uid"
  7737. // semantic conventions. It represents the UID of the CronJob.
  7738. //
  7739. // Type: string
  7740. // RequirementLevel: Recommended
  7741. // Stability: Development
  7742. //
  7743. // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
  7744. K8SCronJobUIDKey = attribute.Key("k8s.cronjob.uid")
  7745. // K8SDaemonSetNameKey is the attribute Key conforming to the
  7746. // "k8s.daemonset.name" semantic conventions. It represents the name of the
  7747. // DaemonSet.
  7748. //
  7749. // Type: string
  7750. // RequirementLevel: Recommended
  7751. // Stability: Development
  7752. //
  7753. // Examples: "opentelemetry"
  7754. K8SDaemonSetNameKey = attribute.Key("k8s.daemonset.name")
  7755. // K8SDaemonSetUIDKey is the attribute Key conforming to the "k8s.daemonset.uid"
  7756. // semantic conventions. It represents the UID of the DaemonSet.
  7757. //
  7758. // Type: string
  7759. // RequirementLevel: Recommended
  7760. // Stability: Development
  7761. //
  7762. // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
  7763. K8SDaemonSetUIDKey = attribute.Key("k8s.daemonset.uid")
  7764. // K8SDeploymentNameKey is the attribute Key conforming to the
  7765. // "k8s.deployment.name" semantic conventions. It represents the name of the
  7766. // Deployment.
  7767. //
  7768. // Type: string
  7769. // RequirementLevel: Recommended
  7770. // Stability: Development
  7771. //
  7772. // Examples: "opentelemetry"
  7773. K8SDeploymentNameKey = attribute.Key("k8s.deployment.name")
  7774. // K8SDeploymentUIDKey is the attribute Key conforming to the
  7775. // "k8s.deployment.uid" semantic conventions. It represents the UID of the
  7776. // Deployment.
  7777. //
  7778. // Type: string
  7779. // RequirementLevel: Recommended
  7780. // Stability: Development
  7781. //
  7782. // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
  7783. K8SDeploymentUIDKey = attribute.Key("k8s.deployment.uid")
  7784. // K8SHPAMetricTypeKey is the attribute Key conforming to the
  7785. // "k8s.hpa.metric.type" semantic conventions. It represents the type of metric
  7786. // source for the horizontal pod autoscaler.
  7787. //
  7788. // Type: string
  7789. // RequirementLevel: Recommended
  7790. // Stability: Development
  7791. //
  7792. // Examples: "Resource", "ContainerResource"
  7793. // Note: This attribute reflects the `type` field of spec.metrics[] in the HPA.
  7794. K8SHPAMetricTypeKey = attribute.Key("k8s.hpa.metric.type")
  7795. // K8SHPANameKey is the attribute Key conforming to the "k8s.hpa.name" semantic
  7796. // conventions. It represents the name of the horizontal pod autoscaler.
  7797. //
  7798. // Type: string
  7799. // RequirementLevel: Recommended
  7800. // Stability: Development
  7801. //
  7802. // Examples: "opentelemetry"
  7803. K8SHPANameKey = attribute.Key("k8s.hpa.name")
  7804. // K8SHPAScaletargetrefAPIVersionKey is the attribute Key conforming to the
  7805. // "k8s.hpa.scaletargetref.api_version" semantic conventions. It represents the
  7806. // API version of the target resource to scale for the HorizontalPodAutoscaler.
  7807. //
  7808. // Type: string
  7809. // RequirementLevel: Recommended
  7810. // Stability: Development
  7811. //
  7812. // Examples: "apps/v1", "autoscaling/v2"
  7813. // Note: This maps to the `apiVersion` field in the `scaleTargetRef` of the HPA
  7814. // spec.
  7815. K8SHPAScaletargetrefAPIVersionKey = attribute.Key("k8s.hpa.scaletargetref.api_version")
  7816. // K8SHPAScaletargetrefKindKey is the attribute Key conforming to the
  7817. // "k8s.hpa.scaletargetref.kind" semantic conventions. It represents the kind of
  7818. // the target resource to scale for the HorizontalPodAutoscaler.
  7819. //
  7820. // Type: string
  7821. // RequirementLevel: Recommended
  7822. // Stability: Development
  7823. //
  7824. // Examples: "Deployment", "StatefulSet"
  7825. // Note: This maps to the `kind` field in the `scaleTargetRef` of the HPA spec.
  7826. K8SHPAScaletargetrefKindKey = attribute.Key("k8s.hpa.scaletargetref.kind")
  7827. // K8SHPAScaletargetrefNameKey is the attribute Key conforming to the
  7828. // "k8s.hpa.scaletargetref.name" semantic conventions. It represents the name of
  7829. // the target resource to scale for the HorizontalPodAutoscaler.
  7830. //
  7831. // Type: string
  7832. // RequirementLevel: Recommended
  7833. // Stability: Development
  7834. //
  7835. // Examples: "my-deployment", "my-statefulset"
  7836. // Note: This maps to the `name` field in the `scaleTargetRef` of the HPA spec.
  7837. K8SHPAScaletargetrefNameKey = attribute.Key("k8s.hpa.scaletargetref.name")
  7838. // K8SHPAUIDKey is the attribute Key conforming to the "k8s.hpa.uid" semantic
  7839. // conventions. It represents the UID of the horizontal pod autoscaler.
  7840. //
  7841. // Type: string
  7842. // RequirementLevel: Recommended
  7843. // Stability: Development
  7844. //
  7845. // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
  7846. K8SHPAUIDKey = attribute.Key("k8s.hpa.uid")
  7847. // K8SHugepageSizeKey is the attribute Key conforming to the "k8s.hugepage.size"
  7848. // semantic conventions. It represents the size (identifier) of the K8s huge
  7849. // page.
  7850. //
  7851. // Type: string
  7852. // RequirementLevel: Recommended
  7853. // Stability: Development
  7854. //
  7855. // Examples: "2Mi"
  7856. K8SHugepageSizeKey = attribute.Key("k8s.hugepage.size")
  7857. // K8SJobNameKey is the attribute Key conforming to the "k8s.job.name" semantic
  7858. // conventions. It represents the name of the Job.
  7859. //
  7860. // Type: string
  7861. // RequirementLevel: Recommended
  7862. // Stability: Development
  7863. //
  7864. // Examples: "opentelemetry"
  7865. K8SJobNameKey = attribute.Key("k8s.job.name")
  7866. // K8SJobUIDKey is the attribute Key conforming to the "k8s.job.uid" semantic
  7867. // conventions. It represents the UID of the Job.
  7868. //
  7869. // Type: string
  7870. // RequirementLevel: Recommended
  7871. // Stability: Development
  7872. //
  7873. // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
  7874. K8SJobUIDKey = attribute.Key("k8s.job.uid")
  7875. // K8SNamespaceNameKey is the attribute Key conforming to the
  7876. // "k8s.namespace.name" semantic conventions. It represents the name of the
  7877. // namespace that the pod is running in.
  7878. //
  7879. // Type: string
  7880. // RequirementLevel: Recommended
  7881. // Stability: Development
  7882. //
  7883. // Examples: "default"
  7884. K8SNamespaceNameKey = attribute.Key("k8s.namespace.name")
  7885. // K8SNamespacePhaseKey is the attribute Key conforming to the
  7886. // "k8s.namespace.phase" semantic conventions. It represents the phase of the
  7887. // K8s namespace.
  7888. //
  7889. // Type: Enum
  7890. // RequirementLevel: Recommended
  7891. // Stability: Development
  7892. //
  7893. // Examples: "active", "terminating"
  7894. // Note: This attribute aligns with the `phase` field of the
  7895. // [K8s NamespaceStatus]
  7896. //
  7897. // [K8s NamespaceStatus]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#namespacestatus-v1-core
  7898. K8SNamespacePhaseKey = attribute.Key("k8s.namespace.phase")
  7899. // K8SNodeConditionStatusKey is the attribute Key conforming to the
  7900. // "k8s.node.condition.status" semantic conventions. It represents the status of
  7901. // the condition, one of True, False, Unknown.
  7902. //
  7903. // Type: Enum
  7904. // RequirementLevel: Recommended
  7905. // Stability: Development
  7906. //
  7907. // Examples: "true", "false", "unknown"
  7908. // Note: This attribute aligns with the `status` field of the
  7909. // [NodeCondition]
  7910. //
  7911. // [NodeCondition]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#nodecondition-v1-core
  7912. K8SNodeConditionStatusKey = attribute.Key("k8s.node.condition.status")
  7913. // K8SNodeConditionTypeKey is the attribute Key conforming to the
  7914. // "k8s.node.condition.type" semantic conventions. It represents the condition
  7915. // type of a K8s Node.
  7916. //
  7917. // Type: Enum
  7918. // RequirementLevel: Recommended
  7919. // Stability: Development
  7920. //
  7921. // Examples: "Ready", "DiskPressure"
  7922. // Note: K8s Node conditions as described
  7923. // by [K8s documentation].
  7924. //
  7925. // This attribute aligns with the `type` field of the
  7926. // [NodeCondition]
  7927. //
  7928. // The set of possible values is not limited to those listed here. Managed
  7929. // Kubernetes environments,
  7930. // or custom controllers MAY introduce additional node condition types.
  7931. // When this occurs, the exact value as reported by the Kubernetes API SHOULD be
  7932. // used.
  7933. //
  7934. // [K8s documentation]: https://v1-32.docs.kubernetes.io/docs/reference/node/node-status/#condition
  7935. // [NodeCondition]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#nodecondition-v1-core
  7936. K8SNodeConditionTypeKey = attribute.Key("k8s.node.condition.type")
  7937. // K8SNodeNameKey is the attribute Key conforming to the "k8s.node.name"
  7938. // semantic conventions. It represents the name of the Node.
  7939. //
  7940. // Type: string
  7941. // RequirementLevel: Recommended
  7942. // Stability: Development
  7943. //
  7944. // Examples: "node-1"
  7945. K8SNodeNameKey = attribute.Key("k8s.node.name")
  7946. // K8SNodeUIDKey is the attribute Key conforming to the "k8s.node.uid" semantic
  7947. // conventions. It represents the UID of the Node.
  7948. //
  7949. // Type: string
  7950. // RequirementLevel: Recommended
  7951. // Stability: Development
  7952. //
  7953. // Examples: "1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2"
  7954. K8SNodeUIDKey = attribute.Key("k8s.node.uid")
  7955. // K8SPodNameKey is the attribute Key conforming to the "k8s.pod.name" semantic
  7956. // conventions. It represents the name of the Pod.
  7957. //
  7958. // Type: string
  7959. // RequirementLevel: Recommended
  7960. // Stability: Development
  7961. //
  7962. // Examples: "opentelemetry-pod-autoconf"
  7963. K8SPodNameKey = attribute.Key("k8s.pod.name")
  7964. // K8SPodUIDKey is the attribute Key conforming to the "k8s.pod.uid" semantic
  7965. // conventions. It represents the UID of the Pod.
  7966. //
  7967. // Type: string
  7968. // RequirementLevel: Recommended
  7969. // Stability: Development
  7970. //
  7971. // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
  7972. K8SPodUIDKey = attribute.Key("k8s.pod.uid")
  7973. // K8SReplicaSetNameKey is the attribute Key conforming to the
  7974. // "k8s.replicaset.name" semantic conventions. It represents the name of the
  7975. // ReplicaSet.
  7976. //
  7977. // Type: string
  7978. // RequirementLevel: Recommended
  7979. // Stability: Development
  7980. //
  7981. // Examples: "opentelemetry"
  7982. K8SReplicaSetNameKey = attribute.Key("k8s.replicaset.name")
  7983. // K8SReplicaSetUIDKey is the attribute Key conforming to the
  7984. // "k8s.replicaset.uid" semantic conventions. It represents the UID of the
  7985. // ReplicaSet.
  7986. //
  7987. // Type: string
  7988. // RequirementLevel: Recommended
  7989. // Stability: Development
  7990. //
  7991. // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
  7992. K8SReplicaSetUIDKey = attribute.Key("k8s.replicaset.uid")
  7993. // K8SReplicationControllerNameKey is the attribute Key conforming to the
  7994. // "k8s.replicationcontroller.name" semantic conventions. It represents the name
  7995. // of the replication controller.
  7996. //
  7997. // Type: string
  7998. // RequirementLevel: Recommended
  7999. // Stability: Development
  8000. //
  8001. // Examples: "opentelemetry"
  8002. K8SReplicationControllerNameKey = attribute.Key("k8s.replicationcontroller.name")
  8003. // K8SReplicationControllerUIDKey is the attribute Key conforming to the
  8004. // "k8s.replicationcontroller.uid" semantic conventions. It represents the UID
  8005. // of the replication controller.
  8006. //
  8007. // Type: string
  8008. // RequirementLevel: Recommended
  8009. // Stability: Development
  8010. //
  8011. // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
  8012. K8SReplicationControllerUIDKey = attribute.Key("k8s.replicationcontroller.uid")
  8013. // K8SResourceQuotaNameKey is the attribute Key conforming to the
  8014. // "k8s.resourcequota.name" semantic conventions. It represents the name of the
  8015. // resource quota.
  8016. //
  8017. // Type: string
  8018. // RequirementLevel: Recommended
  8019. // Stability: Development
  8020. //
  8021. // Examples: "opentelemetry"
  8022. K8SResourceQuotaNameKey = attribute.Key("k8s.resourcequota.name")
  8023. // K8SResourceQuotaResourceNameKey is the attribute Key conforming to the
  8024. // "k8s.resourcequota.resource_name" semantic conventions. It represents the
  8025. // name of the K8s resource a resource quota defines.
  8026. //
  8027. // Type: string
  8028. // RequirementLevel: Recommended
  8029. // Stability: Development
  8030. //
  8031. // Examples: "count/replicationcontrollers"
  8032. // Note: The value for this attribute can be either the full
  8033. // `count/<resource>[.<group>]` string (e.g., count/deployments.apps,
  8034. // count/pods), or, for certain core Kubernetes resources, just the resource
  8035. // name (e.g., pods, services, configmaps). Both forms are supported by
  8036. // Kubernetes for object count quotas. See
  8037. // [Kubernetes Resource Quotas documentation] for more details.
  8038. //
  8039. // [Kubernetes Resource Quotas documentation]: https://kubernetes.io/docs/concepts/policy/resource-quotas/#object-count-quota
  8040. K8SResourceQuotaResourceNameKey = attribute.Key("k8s.resourcequota.resource_name")
  8041. // K8SResourceQuotaUIDKey is the attribute Key conforming to the
  8042. // "k8s.resourcequota.uid" semantic conventions. It represents the UID of the
  8043. // resource quota.
  8044. //
  8045. // Type: string
  8046. // RequirementLevel: Recommended
  8047. // Stability: Development
  8048. //
  8049. // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
  8050. K8SResourceQuotaUIDKey = attribute.Key("k8s.resourcequota.uid")
  8051. // K8SStatefulSetNameKey is the attribute Key conforming to the
  8052. // "k8s.statefulset.name" semantic conventions. It represents the name of the
  8053. // StatefulSet.
  8054. //
  8055. // Type: string
  8056. // RequirementLevel: Recommended
  8057. // Stability: Development
  8058. //
  8059. // Examples: "opentelemetry"
  8060. K8SStatefulSetNameKey = attribute.Key("k8s.statefulset.name")
  8061. // K8SStatefulSetUIDKey is the attribute Key conforming to the
  8062. // "k8s.statefulset.uid" semantic conventions. It represents the UID of the
  8063. // StatefulSet.
  8064. //
  8065. // Type: string
  8066. // RequirementLevel: Recommended
  8067. // Stability: Development
  8068. //
  8069. // Examples: "275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"
  8070. K8SStatefulSetUIDKey = attribute.Key("k8s.statefulset.uid")
  8071. // K8SStorageclassNameKey is the attribute Key conforming to the
  8072. // "k8s.storageclass.name" semantic conventions. It represents the name of K8s
  8073. // [StorageClass] object.
  8074. //
  8075. // Type: string
  8076. // RequirementLevel: Recommended
  8077. // Stability: Development
  8078. //
  8079. // Examples: "gold.storageclass.storage.k8s.io"
  8080. //
  8081. // [StorageClass]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#storageclass-v1-storage-k8s-io
  8082. K8SStorageclassNameKey = attribute.Key("k8s.storageclass.name")
  8083. // K8SVolumeNameKey is the attribute Key conforming to the "k8s.volume.name"
  8084. // semantic conventions. It represents the name of the K8s volume.
  8085. //
  8086. // Type: string
  8087. // RequirementLevel: Recommended
  8088. // Stability: Development
  8089. //
  8090. // Examples: "volume0"
  8091. K8SVolumeNameKey = attribute.Key("k8s.volume.name")
  8092. // K8SVolumeTypeKey is the attribute Key conforming to the "k8s.volume.type"
  8093. // semantic conventions. It represents the type of the K8s volume.
  8094. //
  8095. // Type: Enum
  8096. // RequirementLevel: Recommended
  8097. // Stability: Development
  8098. //
  8099. // Examples: "emptyDir", "persistentVolumeClaim"
  8100. K8SVolumeTypeKey = attribute.Key("k8s.volume.type")
  8101. )
  8102. // K8SClusterName returns an attribute KeyValue conforming to the
  8103. // "k8s.cluster.name" semantic conventions. It represents the name of the
  8104. // cluster.
  8105. func K8SClusterName(val string) attribute.KeyValue {
  8106. return K8SClusterNameKey.String(val)
  8107. }
  8108. // K8SClusterUID returns an attribute KeyValue conforming to the
  8109. // "k8s.cluster.uid" semantic conventions. It represents a pseudo-ID for the
  8110. // cluster, set to the UID of the `kube-system` namespace.
  8111. func K8SClusterUID(val string) attribute.KeyValue {
  8112. return K8SClusterUIDKey.String(val)
  8113. }
  8114. // K8SContainerName returns an attribute KeyValue conforming to the
  8115. // "k8s.container.name" semantic conventions. It represents the name of the
  8116. // Container from Pod specification, must be unique within a Pod. Container
  8117. // runtime usually uses different globally unique name (`container.name`).
  8118. func K8SContainerName(val string) attribute.KeyValue {
  8119. return K8SContainerNameKey.String(val)
  8120. }
  8121. // K8SContainerRestartCount returns an attribute KeyValue conforming to the
  8122. // "k8s.container.restart_count" semantic conventions. It represents the number
  8123. // of times the container was restarted. This attribute can be used to identify a
  8124. // particular container (running or stopped) within a container spec.
  8125. func K8SContainerRestartCount(val int) attribute.KeyValue {
  8126. return K8SContainerRestartCountKey.Int(val)
  8127. }
  8128. // K8SContainerStatusLastTerminatedReason returns an attribute KeyValue
  8129. // conforming to the "k8s.container.status.last_terminated_reason" semantic
  8130. // conventions. It represents the last terminated reason of the Container.
  8131. func K8SContainerStatusLastTerminatedReason(val string) attribute.KeyValue {
  8132. return K8SContainerStatusLastTerminatedReasonKey.String(val)
  8133. }
  8134. // K8SCronJobAnnotation returns an attribute KeyValue conforming to the
  8135. // "k8s.cronjob.annotation" semantic conventions. It represents the cronjob
  8136. // annotation placed on the CronJob, the `<key>` being the annotation name, the
  8137. // value being the annotation value.
  8138. func K8SCronJobAnnotation(key string, val string) attribute.KeyValue {
  8139. return attribute.String("k8s.cronjob.annotation."+key, val)
  8140. }
  8141. // K8SCronJobLabel returns an attribute KeyValue conforming to the
  8142. // "k8s.cronjob.label" semantic conventions. It represents the label placed on
  8143. // the CronJob, the `<key>` being the label name, the value being the label
  8144. // value.
  8145. func K8SCronJobLabel(key string, val string) attribute.KeyValue {
  8146. return attribute.String("k8s.cronjob.label."+key, val)
  8147. }
  8148. // K8SCronJobName returns an attribute KeyValue conforming to the
  8149. // "k8s.cronjob.name" semantic conventions. It represents the name of the
  8150. // CronJob.
  8151. func K8SCronJobName(val string) attribute.KeyValue {
  8152. return K8SCronJobNameKey.String(val)
  8153. }
  8154. // K8SCronJobUID returns an attribute KeyValue conforming to the
  8155. // "k8s.cronjob.uid" semantic conventions. It represents the UID of the CronJob.
  8156. func K8SCronJobUID(val string) attribute.KeyValue {
  8157. return K8SCronJobUIDKey.String(val)
  8158. }
  8159. // K8SDaemonSetAnnotation returns an attribute KeyValue conforming to the
  8160. // "k8s.daemonset.annotation" semantic conventions. It represents the annotation
  8161. // placed on the DaemonSet, the `<key>` being the annotation name, the value
  8162. // being the annotation value, even if the value is empty.
  8163. func K8SDaemonSetAnnotation(key string, val string) attribute.KeyValue {
  8164. return attribute.String("k8s.daemonset.annotation."+key, val)
  8165. }
  8166. // K8SDaemonSetLabel returns an attribute KeyValue conforming to the
  8167. // "k8s.daemonset.label" semantic conventions. It represents the label placed on
  8168. // the DaemonSet, the `<key>` being the label name, the value being the label
  8169. // value, even if the value is empty.
  8170. func K8SDaemonSetLabel(key string, val string) attribute.KeyValue {
  8171. return attribute.String("k8s.daemonset.label."+key, val)
  8172. }
  8173. // K8SDaemonSetName returns an attribute KeyValue conforming to the
  8174. // "k8s.daemonset.name" semantic conventions. It represents the name of the
  8175. // DaemonSet.
  8176. func K8SDaemonSetName(val string) attribute.KeyValue {
  8177. return K8SDaemonSetNameKey.String(val)
  8178. }
  8179. // K8SDaemonSetUID returns an attribute KeyValue conforming to the
  8180. // "k8s.daemonset.uid" semantic conventions. It represents the UID of the
  8181. // DaemonSet.
  8182. func K8SDaemonSetUID(val string) attribute.KeyValue {
  8183. return K8SDaemonSetUIDKey.String(val)
  8184. }
  8185. // K8SDeploymentAnnotation returns an attribute KeyValue conforming to the
  8186. // "k8s.deployment.annotation" semantic conventions. It represents the annotation
  8187. // placed on the Deployment, the `<key>` being the annotation name, the value
  8188. // being the annotation value, even if the value is empty.
  8189. func K8SDeploymentAnnotation(key string, val string) attribute.KeyValue {
  8190. return attribute.String("k8s.deployment.annotation."+key, val)
  8191. }
  8192. // K8SDeploymentLabel returns an attribute KeyValue conforming to the
  8193. // "k8s.deployment.label" semantic conventions. It represents the label placed on
  8194. // the Deployment, the `<key>` being the label name, the value being the label
  8195. // value, even if the value is empty.
  8196. func K8SDeploymentLabel(key string, val string) attribute.KeyValue {
  8197. return attribute.String("k8s.deployment.label."+key, val)
  8198. }
  8199. // K8SDeploymentName returns an attribute KeyValue conforming to the
  8200. // "k8s.deployment.name" semantic conventions. It represents the name of the
  8201. // Deployment.
  8202. func K8SDeploymentName(val string) attribute.KeyValue {
  8203. return K8SDeploymentNameKey.String(val)
  8204. }
  8205. // K8SDeploymentUID returns an attribute KeyValue conforming to the
  8206. // "k8s.deployment.uid" semantic conventions. It represents the UID of the
  8207. // Deployment.
  8208. func K8SDeploymentUID(val string) attribute.KeyValue {
  8209. return K8SDeploymentUIDKey.String(val)
  8210. }
  8211. // K8SHPAMetricType returns an attribute KeyValue conforming to the
  8212. // "k8s.hpa.metric.type" semantic conventions. It represents the type of metric
  8213. // source for the horizontal pod autoscaler.
  8214. func K8SHPAMetricType(val string) attribute.KeyValue {
  8215. return K8SHPAMetricTypeKey.String(val)
  8216. }
  8217. // K8SHPAName returns an attribute KeyValue conforming to the "k8s.hpa.name"
  8218. // semantic conventions. It represents the name of the horizontal pod autoscaler.
  8219. func K8SHPAName(val string) attribute.KeyValue {
  8220. return K8SHPANameKey.String(val)
  8221. }
  8222. // K8SHPAScaletargetrefAPIVersion returns an attribute KeyValue conforming to the
  8223. // "k8s.hpa.scaletargetref.api_version" semantic conventions. It represents the
  8224. // API version of the target resource to scale for the HorizontalPodAutoscaler.
  8225. func K8SHPAScaletargetrefAPIVersion(val string) attribute.KeyValue {
  8226. return K8SHPAScaletargetrefAPIVersionKey.String(val)
  8227. }
  8228. // K8SHPAScaletargetrefKind returns an attribute KeyValue conforming to the
  8229. // "k8s.hpa.scaletargetref.kind" semantic conventions. It represents the kind of
  8230. // the target resource to scale for the HorizontalPodAutoscaler.
  8231. func K8SHPAScaletargetrefKind(val string) attribute.KeyValue {
  8232. return K8SHPAScaletargetrefKindKey.String(val)
  8233. }
  8234. // K8SHPAScaletargetrefName returns an attribute KeyValue conforming to the
  8235. // "k8s.hpa.scaletargetref.name" semantic conventions. It represents the name of
  8236. // the target resource to scale for the HorizontalPodAutoscaler.
  8237. func K8SHPAScaletargetrefName(val string) attribute.KeyValue {
  8238. return K8SHPAScaletargetrefNameKey.String(val)
  8239. }
  8240. // K8SHPAUID returns an attribute KeyValue conforming to the "k8s.hpa.uid"
  8241. // semantic conventions. It represents the UID of the horizontal pod autoscaler.
  8242. func K8SHPAUID(val string) attribute.KeyValue {
  8243. return K8SHPAUIDKey.String(val)
  8244. }
  8245. // K8SHugepageSize returns an attribute KeyValue conforming to the
  8246. // "k8s.hugepage.size" semantic conventions. It represents the size (identifier)
  8247. // of the K8s huge page.
  8248. func K8SHugepageSize(val string) attribute.KeyValue {
  8249. return K8SHugepageSizeKey.String(val)
  8250. }
  8251. // K8SJobAnnotation returns an attribute KeyValue conforming to the
  8252. // "k8s.job.annotation" semantic conventions. It represents the annotation placed
  8253. // on the Job, the `<key>` being the annotation name, the value being the
  8254. // annotation value, even if the value is empty.
  8255. func K8SJobAnnotation(key string, val string) attribute.KeyValue {
  8256. return attribute.String("k8s.job.annotation."+key, val)
  8257. }
  8258. // K8SJobLabel returns an attribute KeyValue conforming to the "k8s.job.label"
  8259. // semantic conventions. It represents the label placed on the Job, the `<key>`
  8260. // being the label name, the value being the label value, even if the value is
  8261. // empty.
  8262. func K8SJobLabel(key string, val string) attribute.KeyValue {
  8263. return attribute.String("k8s.job.label."+key, val)
  8264. }
  8265. // K8SJobName returns an attribute KeyValue conforming to the "k8s.job.name"
  8266. // semantic conventions. It represents the name of the Job.
  8267. func K8SJobName(val string) attribute.KeyValue {
  8268. return K8SJobNameKey.String(val)
  8269. }
  8270. // K8SJobUID returns an attribute KeyValue conforming to the "k8s.job.uid"
  8271. // semantic conventions. It represents the UID of the Job.
  8272. func K8SJobUID(val string) attribute.KeyValue {
  8273. return K8SJobUIDKey.String(val)
  8274. }
  8275. // K8SNamespaceAnnotation returns an attribute KeyValue conforming to the
  8276. // "k8s.namespace.annotation" semantic conventions. It represents the annotation
  8277. // placed on the Namespace, the `<key>` being the annotation name, the value
  8278. // being the annotation value, even if the value is empty.
  8279. func K8SNamespaceAnnotation(key string, val string) attribute.KeyValue {
  8280. return attribute.String("k8s.namespace.annotation."+key, val)
  8281. }
  8282. // K8SNamespaceLabel returns an attribute KeyValue conforming to the
  8283. // "k8s.namespace.label" semantic conventions. It represents the label placed on
  8284. // the Namespace, the `<key>` being the label name, the value being the label
  8285. // value, even if the value is empty.
  8286. func K8SNamespaceLabel(key string, val string) attribute.KeyValue {
  8287. return attribute.String("k8s.namespace.label."+key, val)
  8288. }
  8289. // K8SNamespaceName returns an attribute KeyValue conforming to the
  8290. // "k8s.namespace.name" semantic conventions. It represents the name of the
  8291. // namespace that the pod is running in.
  8292. func K8SNamespaceName(val string) attribute.KeyValue {
  8293. return K8SNamespaceNameKey.String(val)
  8294. }
  8295. // K8SNodeAnnotation returns an attribute KeyValue conforming to the
  8296. // "k8s.node.annotation" semantic conventions. It represents the annotation
  8297. // placed on the Node, the `<key>` being the annotation name, the value being the
  8298. // annotation value, even if the value is empty.
  8299. func K8SNodeAnnotation(key string, val string) attribute.KeyValue {
  8300. return attribute.String("k8s.node.annotation."+key, val)
  8301. }
  8302. // K8SNodeLabel returns an attribute KeyValue conforming to the "k8s.node.label"
  8303. // semantic conventions. It represents the label placed on the Node, the `<key>`
  8304. // being the label name, the value being the label value, even if the value is
  8305. // empty.
  8306. func K8SNodeLabel(key string, val string) attribute.KeyValue {
  8307. return attribute.String("k8s.node.label."+key, val)
  8308. }
  8309. // K8SNodeName returns an attribute KeyValue conforming to the "k8s.node.name"
  8310. // semantic conventions. It represents the name of the Node.
  8311. func K8SNodeName(val string) attribute.KeyValue {
  8312. return K8SNodeNameKey.String(val)
  8313. }
  8314. // K8SNodeUID returns an attribute KeyValue conforming to the "k8s.node.uid"
  8315. // semantic conventions. It represents the UID of the Node.
  8316. func K8SNodeUID(val string) attribute.KeyValue {
  8317. return K8SNodeUIDKey.String(val)
  8318. }
  8319. // K8SPodAnnotation returns an attribute KeyValue conforming to the
  8320. // "k8s.pod.annotation" semantic conventions. It represents the annotation placed
  8321. // on the Pod, the `<key>` being the annotation name, the value being the
  8322. // annotation value.
  8323. func K8SPodAnnotation(key string, val string) attribute.KeyValue {
  8324. return attribute.String("k8s.pod.annotation."+key, val)
  8325. }
  8326. // K8SPodLabel returns an attribute KeyValue conforming to the "k8s.pod.label"
  8327. // semantic conventions. It represents the label placed on the Pod, the `<key>`
  8328. // being the label name, the value being the label value.
  8329. func K8SPodLabel(key string, val string) attribute.KeyValue {
  8330. return attribute.String("k8s.pod.label."+key, val)
  8331. }
  8332. // K8SPodName returns an attribute KeyValue conforming to the "k8s.pod.name"
  8333. // semantic conventions. It represents the name of the Pod.
  8334. func K8SPodName(val string) attribute.KeyValue {
  8335. return K8SPodNameKey.String(val)
  8336. }
  8337. // K8SPodUID returns an attribute KeyValue conforming to the "k8s.pod.uid"
  8338. // semantic conventions. It represents the UID of the Pod.
  8339. func K8SPodUID(val string) attribute.KeyValue {
  8340. return K8SPodUIDKey.String(val)
  8341. }
  8342. // K8SReplicaSetAnnotation returns an attribute KeyValue conforming to the
  8343. // "k8s.replicaset.annotation" semantic conventions. It represents the annotation
  8344. // placed on the ReplicaSet, the `<key>` being the annotation name, the value
  8345. // being the annotation value, even if the value is empty.
  8346. func K8SReplicaSetAnnotation(key string, val string) attribute.KeyValue {
  8347. return attribute.String("k8s.replicaset.annotation."+key, val)
  8348. }
  8349. // K8SReplicaSetLabel returns an attribute KeyValue conforming to the
  8350. // "k8s.replicaset.label" semantic conventions. It represents the label placed on
  8351. // the ReplicaSet, the `<key>` being the label name, the value being the label
  8352. // value, even if the value is empty.
  8353. func K8SReplicaSetLabel(key string, val string) attribute.KeyValue {
  8354. return attribute.String("k8s.replicaset.label."+key, val)
  8355. }
  8356. // K8SReplicaSetName returns an attribute KeyValue conforming to the
  8357. // "k8s.replicaset.name" semantic conventions. It represents the name of the
  8358. // ReplicaSet.
  8359. func K8SReplicaSetName(val string) attribute.KeyValue {
  8360. return K8SReplicaSetNameKey.String(val)
  8361. }
  8362. // K8SReplicaSetUID returns an attribute KeyValue conforming to the
  8363. // "k8s.replicaset.uid" semantic conventions. It represents the UID of the
  8364. // ReplicaSet.
  8365. func K8SReplicaSetUID(val string) attribute.KeyValue {
  8366. return K8SReplicaSetUIDKey.String(val)
  8367. }
  8368. // K8SReplicationControllerName returns an attribute KeyValue conforming to the
  8369. // "k8s.replicationcontroller.name" semantic conventions. It represents the name
  8370. // of the replication controller.
  8371. func K8SReplicationControllerName(val string) attribute.KeyValue {
  8372. return K8SReplicationControllerNameKey.String(val)
  8373. }
  8374. // K8SReplicationControllerUID returns an attribute KeyValue conforming to the
  8375. // "k8s.replicationcontroller.uid" semantic conventions. It represents the UID of
  8376. // the replication controller.
  8377. func K8SReplicationControllerUID(val string) attribute.KeyValue {
  8378. return K8SReplicationControllerUIDKey.String(val)
  8379. }
  8380. // K8SResourceQuotaName returns an attribute KeyValue conforming to the
  8381. // "k8s.resourcequota.name" semantic conventions. It represents the name of the
  8382. // resource quota.
  8383. func K8SResourceQuotaName(val string) attribute.KeyValue {
  8384. return K8SResourceQuotaNameKey.String(val)
  8385. }
  8386. // K8SResourceQuotaResourceName returns an attribute KeyValue conforming to the
  8387. // "k8s.resourcequota.resource_name" semantic conventions. It represents the name
  8388. // of the K8s resource a resource quota defines.
  8389. func K8SResourceQuotaResourceName(val string) attribute.KeyValue {
  8390. return K8SResourceQuotaResourceNameKey.String(val)
  8391. }
  8392. // K8SResourceQuotaUID returns an attribute KeyValue conforming to the
  8393. // "k8s.resourcequota.uid" semantic conventions. It represents the UID of the
  8394. // resource quota.
  8395. func K8SResourceQuotaUID(val string) attribute.KeyValue {
  8396. return K8SResourceQuotaUIDKey.String(val)
  8397. }
  8398. // K8SStatefulSetAnnotation returns an attribute KeyValue conforming to the
  8399. // "k8s.statefulset.annotation" semantic conventions. It represents the
  8400. // annotation placed on the StatefulSet, the `<key>` being the annotation name,
  8401. // the value being the annotation value, even if the value is empty.
  8402. func K8SStatefulSetAnnotation(key string, val string) attribute.KeyValue {
  8403. return attribute.String("k8s.statefulset.annotation."+key, val)
  8404. }
  8405. // K8SStatefulSetLabel returns an attribute KeyValue conforming to the
  8406. // "k8s.statefulset.label" semantic conventions. It represents the label placed
  8407. // on the StatefulSet, the `<key>` being the label name, the value being the
  8408. // label value, even if the value is empty.
  8409. func K8SStatefulSetLabel(key string, val string) attribute.KeyValue {
  8410. return attribute.String("k8s.statefulset.label."+key, val)
  8411. }
  8412. // K8SStatefulSetName returns an attribute KeyValue conforming to the
  8413. // "k8s.statefulset.name" semantic conventions. It represents the name of the
  8414. // StatefulSet.
  8415. func K8SStatefulSetName(val string) attribute.KeyValue {
  8416. return K8SStatefulSetNameKey.String(val)
  8417. }
  8418. // K8SStatefulSetUID returns an attribute KeyValue conforming to the
  8419. // "k8s.statefulset.uid" semantic conventions. It represents the UID of the
  8420. // StatefulSet.
  8421. func K8SStatefulSetUID(val string) attribute.KeyValue {
  8422. return K8SStatefulSetUIDKey.String(val)
  8423. }
  8424. // K8SStorageclassName returns an attribute KeyValue conforming to the
  8425. // "k8s.storageclass.name" semantic conventions. It represents the name of K8s
  8426. // [StorageClass] object.
  8427. //
  8428. // [StorageClass]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#storageclass-v1-storage-k8s-io
  8429. func K8SStorageclassName(val string) attribute.KeyValue {
  8430. return K8SStorageclassNameKey.String(val)
  8431. }
  8432. // K8SVolumeName returns an attribute KeyValue conforming to the
  8433. // "k8s.volume.name" semantic conventions. It represents the name of the K8s
  8434. // volume.
  8435. func K8SVolumeName(val string) attribute.KeyValue {
  8436. return K8SVolumeNameKey.String(val)
  8437. }
  8438. // Enum values for k8s.container.status.reason
  8439. var (
  8440. // The container is being created.
  8441. // Stability: development
  8442. K8SContainerStatusReasonContainerCreating = K8SContainerStatusReasonKey.String("ContainerCreating")
  8443. // The container is in a crash loop back off state.
  8444. // Stability: development
  8445. K8SContainerStatusReasonCrashLoopBackOff = K8SContainerStatusReasonKey.String("CrashLoopBackOff")
  8446. // There was an error creating the container configuration.
  8447. // Stability: development
  8448. K8SContainerStatusReasonCreateContainerConfigError = K8SContainerStatusReasonKey.String("CreateContainerConfigError")
  8449. // There was an error pulling the container image.
  8450. // Stability: development
  8451. K8SContainerStatusReasonErrImagePull = K8SContainerStatusReasonKey.String("ErrImagePull")
  8452. // The container image pull is in back off state.
  8453. // Stability: development
  8454. K8SContainerStatusReasonImagePullBackOff = K8SContainerStatusReasonKey.String("ImagePullBackOff")
  8455. // The container was killed due to out of memory.
  8456. // Stability: development
  8457. K8SContainerStatusReasonOomKilled = K8SContainerStatusReasonKey.String("OOMKilled")
  8458. // The container has completed execution.
  8459. // Stability: development
  8460. K8SContainerStatusReasonCompleted = K8SContainerStatusReasonKey.String("Completed")
  8461. // There was an error with the container.
  8462. // Stability: development
  8463. K8SContainerStatusReasonError = K8SContainerStatusReasonKey.String("Error")
  8464. // The container cannot run.
  8465. // Stability: development
  8466. K8SContainerStatusReasonContainerCannotRun = K8SContainerStatusReasonKey.String("ContainerCannotRun")
  8467. )
  8468. // Enum values for k8s.container.status.state
  8469. var (
  8470. // The container has terminated.
  8471. // Stability: development
  8472. K8SContainerStatusStateTerminated = K8SContainerStatusStateKey.String("terminated")
  8473. // The container is running.
  8474. // Stability: development
  8475. K8SContainerStatusStateRunning = K8SContainerStatusStateKey.String("running")
  8476. // The container is waiting.
  8477. // Stability: development
  8478. K8SContainerStatusStateWaiting = K8SContainerStatusStateKey.String("waiting")
  8479. )
  8480. // Enum values for k8s.namespace.phase
  8481. var (
  8482. // Active namespace phase as described by [K8s API]
  8483. // Stability: development
  8484. //
  8485. // [K8s API]: https://pkg.go.dev/k8s.io/api@v0.31.3/core/v1#NamespacePhase
  8486. K8SNamespacePhaseActive = K8SNamespacePhaseKey.String("active")
  8487. // Terminating namespace phase as described by [K8s API]
  8488. // Stability: development
  8489. //
  8490. // [K8s API]: https://pkg.go.dev/k8s.io/api@v0.31.3/core/v1#NamespacePhase
  8491. K8SNamespacePhaseTerminating = K8SNamespacePhaseKey.String("terminating")
  8492. )
  8493. // Enum values for k8s.node.condition.status
  8494. var (
  8495. // condition_true
  8496. // Stability: development
  8497. K8SNodeConditionStatusConditionTrue = K8SNodeConditionStatusKey.String("true")
  8498. // condition_false
  8499. // Stability: development
  8500. K8SNodeConditionStatusConditionFalse = K8SNodeConditionStatusKey.String("false")
  8501. // condition_unknown
  8502. // Stability: development
  8503. K8SNodeConditionStatusConditionUnknown = K8SNodeConditionStatusKey.String("unknown")
  8504. )
  8505. // Enum values for k8s.node.condition.type
  8506. var (
  8507. // The node is healthy and ready to accept pods
  8508. // Stability: development
  8509. K8SNodeConditionTypeReady = K8SNodeConditionTypeKey.String("Ready")
  8510. // Pressure exists on the disk size—that is, if the disk capacity is low
  8511. // Stability: development
  8512. K8SNodeConditionTypeDiskPressure = K8SNodeConditionTypeKey.String("DiskPressure")
  8513. // Pressure exists on the node memory—that is, if the node memory is low
  8514. // Stability: development
  8515. K8SNodeConditionTypeMemoryPressure = K8SNodeConditionTypeKey.String("MemoryPressure")
  8516. // Pressure exists on the processes—that is, if there are too many processes
  8517. // on the node
  8518. // Stability: development
  8519. K8SNodeConditionTypePIDPressure = K8SNodeConditionTypeKey.String("PIDPressure")
  8520. // The network for the node is not correctly configured
  8521. // Stability: development
  8522. K8SNodeConditionTypeNetworkUnavailable = K8SNodeConditionTypeKey.String("NetworkUnavailable")
  8523. )
  8524. // Enum values for k8s.volume.type
  8525. var (
  8526. // A [persistentVolumeClaim] volume
  8527. // Stability: development
  8528. //
  8529. // [persistentVolumeClaim]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#persistentvolumeclaim
  8530. K8SVolumeTypePersistentVolumeClaim = K8SVolumeTypeKey.String("persistentVolumeClaim")
  8531. // A [configMap] volume
  8532. // Stability: development
  8533. //
  8534. // [configMap]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#configmap
  8535. K8SVolumeTypeConfigMap = K8SVolumeTypeKey.String("configMap")
  8536. // A [downwardAPI] volume
  8537. // Stability: development
  8538. //
  8539. // [downwardAPI]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#downwardapi
  8540. K8SVolumeTypeDownwardAPI = K8SVolumeTypeKey.String("downwardAPI")
  8541. // An [emptyDir] volume
  8542. // Stability: development
  8543. //
  8544. // [emptyDir]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#emptydir
  8545. K8SVolumeTypeEmptyDir = K8SVolumeTypeKey.String("emptyDir")
  8546. // A [secret] volume
  8547. // Stability: development
  8548. //
  8549. // [secret]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#secret
  8550. K8SVolumeTypeSecret = K8SVolumeTypeKey.String("secret")
  8551. // A [local] volume
  8552. // Stability: development
  8553. //
  8554. // [local]: https://v1-30.docs.kubernetes.io/docs/concepts/storage/volumes/#local
  8555. K8SVolumeTypeLocal = K8SVolumeTypeKey.String("local")
  8556. )
  8557. // Namespace: linux
  8558. const (
  8559. // LinuxMemorySlabStateKey is the attribute Key conforming to the
  8560. // "linux.memory.slab.state" semantic conventions. It represents the Linux Slab
  8561. // memory state.
  8562. //
  8563. // Type: Enum
  8564. // RequirementLevel: Recommended
  8565. // Stability: Development
  8566. //
  8567. // Examples: "reclaimable", "unreclaimable"
  8568. LinuxMemorySlabStateKey = attribute.Key("linux.memory.slab.state")
  8569. )
  8570. // Enum values for linux.memory.slab.state
  8571. var (
  8572. // reclaimable
  8573. // Stability: development
  8574. LinuxMemorySlabStateReclaimable = LinuxMemorySlabStateKey.String("reclaimable")
  8575. // unreclaimable
  8576. // Stability: development
  8577. LinuxMemorySlabStateUnreclaimable = LinuxMemorySlabStateKey.String("unreclaimable")
  8578. )
  8579. // Namespace: log
  8580. const (
  8581. // LogFileNameKey is the attribute Key conforming to the "log.file.name"
  8582. // semantic conventions. It represents the basename of the file.
  8583. //
  8584. // Type: string
  8585. // RequirementLevel: Recommended
  8586. // Stability: Development
  8587. //
  8588. // Examples: "audit.log"
  8589. LogFileNameKey = attribute.Key("log.file.name")
  8590. // LogFileNameResolvedKey is the attribute Key conforming to the
  8591. // "log.file.name_resolved" semantic conventions. It represents the basename of
  8592. // the file, with symlinks resolved.
  8593. //
  8594. // Type: string
  8595. // RequirementLevel: Recommended
  8596. // Stability: Development
  8597. //
  8598. // Examples: "uuid.log"
  8599. LogFileNameResolvedKey = attribute.Key("log.file.name_resolved")
  8600. // LogFilePathKey is the attribute Key conforming to the "log.file.path"
  8601. // semantic conventions. It represents the full path to the file.
  8602. //
  8603. // Type: string
  8604. // RequirementLevel: Recommended
  8605. // Stability: Development
  8606. //
  8607. // Examples: "/var/log/mysql/audit.log"
  8608. LogFilePathKey = attribute.Key("log.file.path")
  8609. // LogFilePathResolvedKey is the attribute Key conforming to the
  8610. // "log.file.path_resolved" semantic conventions. It represents the full path to
  8611. // the file, with symlinks resolved.
  8612. //
  8613. // Type: string
  8614. // RequirementLevel: Recommended
  8615. // Stability: Development
  8616. //
  8617. // Examples: "/var/lib/docker/uuid.log"
  8618. LogFilePathResolvedKey = attribute.Key("log.file.path_resolved")
  8619. // LogIostreamKey is the attribute Key conforming to the "log.iostream" semantic
  8620. // conventions. It represents the stream associated with the log. See below for
  8621. // a list of well-known values.
  8622. //
  8623. // Type: Enum
  8624. // RequirementLevel: Recommended
  8625. // Stability: Development
  8626. //
  8627. // Examples:
  8628. LogIostreamKey = attribute.Key("log.iostream")
  8629. // LogRecordOriginalKey is the attribute Key conforming to the
  8630. // "log.record.original" semantic conventions. It represents the complete
  8631. // original Log Record.
  8632. //
  8633. // Type: string
  8634. // RequirementLevel: Recommended
  8635. // Stability: Development
  8636. //
  8637. // Examples: "77 <86>1 2015-08-06T21:58:59.694Z 192.168.2.133 inactive - - -
  8638. // Something happened", "[INFO] 8/3/24 12:34:56 Something happened"
  8639. // Note: This value MAY be added when processing a Log Record which was
  8640. // originally transmitted as a string or equivalent data type AND the Body field
  8641. // of the Log Record does not contain the same value. (e.g. a syslog or a log
  8642. // record read from a file.)
  8643. LogRecordOriginalKey = attribute.Key("log.record.original")
  8644. // LogRecordUIDKey is the attribute Key conforming to the "log.record.uid"
  8645. // semantic conventions. It represents a unique identifier for the Log Record.
  8646. //
  8647. // Type: string
  8648. // RequirementLevel: Recommended
  8649. // Stability: Development
  8650. //
  8651. // Examples: "01ARZ3NDEKTSV4RRFFQ69G5FAV"
  8652. // Note: If an id is provided, other log records with the same id will be
  8653. // considered duplicates and can be removed safely. This means, that two
  8654. // distinguishable log records MUST have different values.
  8655. // The id MAY be an
  8656. // [Universally Unique Lexicographically Sortable Identifier (ULID)], but other
  8657. // identifiers (e.g. UUID) may be used as needed.
  8658. //
  8659. // [Universally Unique Lexicographically Sortable Identifier (ULID)]: https://github.com/ulid/spec
  8660. LogRecordUIDKey = attribute.Key("log.record.uid")
  8661. )
  8662. // LogFileName returns an attribute KeyValue conforming to the "log.file.name"
  8663. // semantic conventions. It represents the basename of the file.
  8664. func LogFileName(val string) attribute.KeyValue {
  8665. return LogFileNameKey.String(val)
  8666. }
  8667. // LogFileNameResolved returns an attribute KeyValue conforming to the
  8668. // "log.file.name_resolved" semantic conventions. It represents the basename of
  8669. // the file, with symlinks resolved.
  8670. func LogFileNameResolved(val string) attribute.KeyValue {
  8671. return LogFileNameResolvedKey.String(val)
  8672. }
  8673. // LogFilePath returns an attribute KeyValue conforming to the "log.file.path"
  8674. // semantic conventions. It represents the full path to the file.
  8675. func LogFilePath(val string) attribute.KeyValue {
  8676. return LogFilePathKey.String(val)
  8677. }
  8678. // LogFilePathResolved returns an attribute KeyValue conforming to the
  8679. // "log.file.path_resolved" semantic conventions. It represents the full path to
  8680. // the file, with symlinks resolved.
  8681. func LogFilePathResolved(val string) attribute.KeyValue {
  8682. return LogFilePathResolvedKey.String(val)
  8683. }
  8684. // LogRecordOriginal returns an attribute KeyValue conforming to the
  8685. // "log.record.original" semantic conventions. It represents the complete
  8686. // original Log Record.
  8687. func LogRecordOriginal(val string) attribute.KeyValue {
  8688. return LogRecordOriginalKey.String(val)
  8689. }
  8690. // LogRecordUID returns an attribute KeyValue conforming to the "log.record.uid"
  8691. // semantic conventions. It represents a unique identifier for the Log Record.
  8692. func LogRecordUID(val string) attribute.KeyValue {
  8693. return LogRecordUIDKey.String(val)
  8694. }
  8695. // Enum values for log.iostream
  8696. var (
  8697. // Logs from stdout stream
  8698. // Stability: development
  8699. LogIostreamStdout = LogIostreamKey.String("stdout")
  8700. // Events from stderr stream
  8701. // Stability: development
  8702. LogIostreamStderr = LogIostreamKey.String("stderr")
  8703. )
  8704. // Namespace: mainframe
  8705. const (
  8706. // MainframeLparNameKey is the attribute Key conforming to the
  8707. // "mainframe.lpar.name" semantic conventions. It represents the name of the
  8708. // logical partition that hosts a systems with a mainframe operating system.
  8709. //
  8710. // Type: string
  8711. // RequirementLevel: Recommended
  8712. // Stability: Development
  8713. //
  8714. // Examples: "LPAR01"
  8715. MainframeLparNameKey = attribute.Key("mainframe.lpar.name")
  8716. )
  8717. // MainframeLparName returns an attribute KeyValue conforming to the
  8718. // "mainframe.lpar.name" semantic conventions. It represents the name of the
  8719. // logical partition that hosts a systems with a mainframe operating system.
  8720. func MainframeLparName(val string) attribute.KeyValue {
  8721. return MainframeLparNameKey.String(val)
  8722. }
  8723. // Namespace: messaging
  8724. const (
  8725. // MessagingBatchMessageCountKey is the attribute Key conforming to the
  8726. // "messaging.batch.message_count" semantic conventions. It represents the
  8727. // number of messages sent, received, or processed in the scope of the batching
  8728. // operation.
  8729. //
  8730. // Type: int
  8731. // RequirementLevel: Recommended
  8732. // Stability: Development
  8733. //
  8734. // Examples: 0, 1, 2
  8735. // Note: Instrumentations SHOULD NOT set `messaging.batch.message_count` on
  8736. // spans that operate with a single message. When a messaging client library
  8737. // supports both batch and single-message API for the same operation,
  8738. // instrumentations SHOULD use `messaging.batch.message_count` for batching APIs
  8739. // and SHOULD NOT use it for single-message APIs.
  8740. MessagingBatchMessageCountKey = attribute.Key("messaging.batch.message_count")
  8741. // MessagingClientIDKey is the attribute Key conforming to the
  8742. // "messaging.client.id" semantic conventions. It represents a unique identifier
  8743. // for the client that consumes or produces a message.
  8744. //
  8745. // Type: string
  8746. // RequirementLevel: Recommended
  8747. // Stability: Development
  8748. //
  8749. // Examples: "client-5", "myhost@8742@s8083jm"
  8750. MessagingClientIDKey = attribute.Key("messaging.client.id")
  8751. // MessagingConsumerGroupNameKey is the attribute Key conforming to the
  8752. // "messaging.consumer.group.name" semantic conventions. It represents the name
  8753. // of the consumer group with which a consumer is associated.
  8754. //
  8755. // Type: string
  8756. // RequirementLevel: Recommended
  8757. // Stability: Development
  8758. //
  8759. // Examples: "my-group", "indexer"
  8760. // Note: Semantic conventions for individual messaging systems SHOULD document
  8761. // whether `messaging.consumer.group.name` is applicable and what it means in
  8762. // the context of that system.
  8763. MessagingConsumerGroupNameKey = attribute.Key("messaging.consumer.group.name")
  8764. // MessagingDestinationAnonymousKey is the attribute Key conforming to the
  8765. // "messaging.destination.anonymous" semantic conventions. It represents a
  8766. // boolean that is true if the message destination is anonymous (could be
  8767. // unnamed or have auto-generated name).
  8768. //
  8769. // Type: boolean
  8770. // RequirementLevel: Recommended
  8771. // Stability: Development
  8772. //
  8773. // Examples:
  8774. MessagingDestinationAnonymousKey = attribute.Key("messaging.destination.anonymous")
  8775. // MessagingDestinationNameKey is the attribute Key conforming to the
  8776. // "messaging.destination.name" semantic conventions. It represents the message
  8777. // destination name.
  8778. //
  8779. // Type: string
  8780. // RequirementLevel: Recommended
  8781. // Stability: Development
  8782. //
  8783. // Examples: "MyQueue", "MyTopic"
  8784. // Note: Destination name SHOULD uniquely identify a specific queue, topic or
  8785. // other entity within the broker. If
  8786. // the broker doesn't have such notion, the destination name SHOULD uniquely
  8787. // identify the broker.
  8788. MessagingDestinationNameKey = attribute.Key("messaging.destination.name")
  8789. // MessagingDestinationPartitionIDKey is the attribute Key conforming to the
  8790. // "messaging.destination.partition.id" semantic conventions. It represents the
  8791. // identifier of the partition messages are sent to or received from, unique
  8792. // within the `messaging.destination.name`.
  8793. //
  8794. // Type: string
  8795. // RequirementLevel: Recommended
  8796. // Stability: Development
  8797. //
  8798. // Examples: 1
  8799. MessagingDestinationPartitionIDKey = attribute.Key("messaging.destination.partition.id")
  8800. // MessagingDestinationSubscriptionNameKey is the attribute Key conforming to
  8801. // the "messaging.destination.subscription.name" semantic conventions. It
  8802. // represents the name of the destination subscription from which a message is
  8803. // consumed.
  8804. //
  8805. // Type: string
  8806. // RequirementLevel: Recommended
  8807. // Stability: Development
  8808. //
  8809. // Examples: "subscription-a"
  8810. // Note: Semantic conventions for individual messaging systems SHOULD document
  8811. // whether `messaging.destination.subscription.name` is applicable and what it
  8812. // means in the context of that system.
  8813. MessagingDestinationSubscriptionNameKey = attribute.Key("messaging.destination.subscription.name")
  8814. // MessagingDestinationTemplateKey is the attribute Key conforming to the
  8815. // "messaging.destination.template" semantic conventions. It represents the low
  8816. // cardinality representation of the messaging destination name.
  8817. //
  8818. // Type: string
  8819. // RequirementLevel: Recommended
  8820. // Stability: Development
  8821. //
  8822. // Examples: "/customers/{customerId}"
  8823. // Note: Destination names could be constructed from templates. An example would
  8824. // be a destination name involving a user name or product id. Although the
  8825. // destination name in this case is of high cardinality, the underlying template
  8826. // is of low cardinality and can be effectively used for grouping and
  8827. // aggregation.
  8828. MessagingDestinationTemplateKey = attribute.Key("messaging.destination.template")
  8829. // MessagingDestinationTemporaryKey is the attribute Key conforming to the
  8830. // "messaging.destination.temporary" semantic conventions. It represents a
  8831. // boolean that is true if the message destination is temporary and might not
  8832. // exist anymore after messages are processed.
  8833. //
  8834. // Type: boolean
  8835. // RequirementLevel: Recommended
  8836. // Stability: Development
  8837. //
  8838. // Examples:
  8839. MessagingDestinationTemporaryKey = attribute.Key("messaging.destination.temporary")
  8840. // MessagingEventHubsMessageEnqueuedTimeKey is the attribute Key conforming to
  8841. // the "messaging.eventhubs.message.enqueued_time" semantic conventions. It
  8842. // represents the UTC epoch seconds at which the message has been accepted and
  8843. // stored in the entity.
  8844. //
  8845. // Type: int
  8846. // RequirementLevel: Recommended
  8847. // Stability: Development
  8848. MessagingEventHubsMessageEnqueuedTimeKey = attribute.Key("messaging.eventhubs.message.enqueued_time")
  8849. // MessagingGCPPubSubMessageAckDeadlineKey is the attribute Key conforming to
  8850. // the "messaging.gcp_pubsub.message.ack_deadline" semantic conventions. It
  8851. // represents the ack deadline in seconds set for the modify ack deadline
  8852. // request.
  8853. //
  8854. // Type: int
  8855. // RequirementLevel: Recommended
  8856. // Stability: Development
  8857. MessagingGCPPubSubMessageAckDeadlineKey = attribute.Key("messaging.gcp_pubsub.message.ack_deadline")
  8858. // MessagingGCPPubSubMessageAckIDKey is the attribute Key conforming to the
  8859. // "messaging.gcp_pubsub.message.ack_id" semantic conventions. It represents the
  8860. // ack id for a given message.
  8861. //
  8862. // Type: string
  8863. // RequirementLevel: Recommended
  8864. // Stability: Development
  8865. //
  8866. // Examples: ack_id
  8867. MessagingGCPPubSubMessageAckIDKey = attribute.Key("messaging.gcp_pubsub.message.ack_id")
  8868. // MessagingGCPPubSubMessageDeliveryAttemptKey is the attribute Key conforming
  8869. // to the "messaging.gcp_pubsub.message.delivery_attempt" semantic conventions.
  8870. // It represents the delivery attempt for a given message.
  8871. //
  8872. // Type: int
  8873. // RequirementLevel: Recommended
  8874. // Stability: Development
  8875. MessagingGCPPubSubMessageDeliveryAttemptKey = attribute.Key("messaging.gcp_pubsub.message.delivery_attempt")
  8876. // MessagingGCPPubSubMessageOrderingKeyKey is the attribute Key conforming to
  8877. // the "messaging.gcp_pubsub.message.ordering_key" semantic conventions. It
  8878. // represents the ordering key for a given message. If the attribute is not
  8879. // present, the message does not have an ordering key.
  8880. //
  8881. // Type: string
  8882. // RequirementLevel: Recommended
  8883. // Stability: Development
  8884. //
  8885. // Examples: ordering_key
  8886. MessagingGCPPubSubMessageOrderingKeyKey = attribute.Key("messaging.gcp_pubsub.message.ordering_key")
  8887. // MessagingKafkaMessageKeyKey is the attribute Key conforming to the
  8888. // "messaging.kafka.message.key" semantic conventions. It represents the message
  8889. // keys in Kafka are used for grouping alike messages to ensure they're
  8890. // processed on the same partition. They differ from `messaging.message.id` in
  8891. // that they're not unique. If the key is `null`, the attribute MUST NOT be set.
  8892. //
  8893. // Type: string
  8894. // RequirementLevel: Recommended
  8895. // Stability: Development
  8896. //
  8897. // Examples: myKey
  8898. // Note: If the key type is not string, it's string representation has to be
  8899. // supplied for the attribute. If the key has no unambiguous, canonical string
  8900. // form, don't include its value.
  8901. MessagingKafkaMessageKeyKey = attribute.Key("messaging.kafka.message.key")
  8902. // MessagingKafkaMessageTombstoneKey is the attribute Key conforming to the
  8903. // "messaging.kafka.message.tombstone" semantic conventions. It represents a
  8904. // boolean that is true if the message is a tombstone.
  8905. //
  8906. // Type: boolean
  8907. // RequirementLevel: Recommended
  8908. // Stability: Development
  8909. //
  8910. // Examples:
  8911. MessagingKafkaMessageTombstoneKey = attribute.Key("messaging.kafka.message.tombstone")
  8912. // MessagingKafkaOffsetKey is the attribute Key conforming to the
  8913. // "messaging.kafka.offset" semantic conventions. It represents the offset of a
  8914. // record in the corresponding Kafka partition.
  8915. //
  8916. // Type: int
  8917. // RequirementLevel: Recommended
  8918. // Stability: Development
  8919. MessagingKafkaOffsetKey = attribute.Key("messaging.kafka.offset")
  8920. // MessagingMessageBodySizeKey is the attribute Key conforming to the
  8921. // "messaging.message.body.size" semantic conventions. It represents the size of
  8922. // the message body in bytes.
  8923. //
  8924. // Type: int
  8925. // RequirementLevel: Recommended
  8926. // Stability: Development
  8927. //
  8928. // Note: This can refer to both the compressed or uncompressed body size. If
  8929. // both sizes are known, the uncompressed
  8930. // body size should be used.
  8931. MessagingMessageBodySizeKey = attribute.Key("messaging.message.body.size")
  8932. // MessagingMessageConversationIDKey is the attribute Key conforming to the
  8933. // "messaging.message.conversation_id" semantic conventions. It represents the
  8934. // conversation ID identifying the conversation to which the message belongs,
  8935. // represented as a string. Sometimes called "Correlation ID".
  8936. //
  8937. // Type: string
  8938. // RequirementLevel: Recommended
  8939. // Stability: Development
  8940. //
  8941. // Examples: MyConversationId
  8942. MessagingMessageConversationIDKey = attribute.Key("messaging.message.conversation_id")
  8943. // MessagingMessageEnvelopeSizeKey is the attribute Key conforming to the
  8944. // "messaging.message.envelope.size" semantic conventions. It represents the
  8945. // size of the message body and metadata in bytes.
  8946. //
  8947. // Type: int
  8948. // RequirementLevel: Recommended
  8949. // Stability: Development
  8950. //
  8951. // Note: This can refer to both the compressed or uncompressed size. If both
  8952. // sizes are known, the uncompressed
  8953. // size should be used.
  8954. MessagingMessageEnvelopeSizeKey = attribute.Key("messaging.message.envelope.size")
  8955. // MessagingMessageIDKey is the attribute Key conforming to the
  8956. // "messaging.message.id" semantic conventions. It represents a value used by
  8957. // the messaging system as an identifier for the message, represented as a
  8958. // string.
  8959. //
  8960. // Type: string
  8961. // RequirementLevel: Recommended
  8962. // Stability: Development
  8963. //
  8964. // Examples: 452a7c7c7c7048c2f887f61572b18fc2
  8965. MessagingMessageIDKey = attribute.Key("messaging.message.id")
  8966. // MessagingOperationNameKey is the attribute Key conforming to the
  8967. // "messaging.operation.name" semantic conventions. It represents the
  8968. // system-specific name of the messaging operation.
  8969. //
  8970. // Type: string
  8971. // RequirementLevel: Recommended
  8972. // Stability: Development
  8973. //
  8974. // Examples: "ack", "nack", "send"
  8975. MessagingOperationNameKey = attribute.Key("messaging.operation.name")
  8976. // MessagingOperationTypeKey is the attribute Key conforming to the
  8977. // "messaging.operation.type" semantic conventions. It represents a string
  8978. // identifying the type of the messaging operation.
  8979. //
  8980. // Type: Enum
  8981. // RequirementLevel: Recommended
  8982. // Stability: Development
  8983. //
  8984. // Examples:
  8985. // Note: If a custom value is used, it MUST be of low cardinality.
  8986. MessagingOperationTypeKey = attribute.Key("messaging.operation.type")
  8987. // MessagingRabbitMQDestinationRoutingKeyKey is the attribute Key conforming to
  8988. // the "messaging.rabbitmq.destination.routing_key" semantic conventions. It
  8989. // represents the rabbitMQ message routing key.
  8990. //
  8991. // Type: string
  8992. // RequirementLevel: Recommended
  8993. // Stability: Development
  8994. //
  8995. // Examples: myKey
  8996. MessagingRabbitMQDestinationRoutingKeyKey = attribute.Key("messaging.rabbitmq.destination.routing_key")
  8997. // MessagingRabbitMQMessageDeliveryTagKey is the attribute Key conforming to the
  8998. // "messaging.rabbitmq.message.delivery_tag" semantic conventions. It represents
  8999. // the rabbitMQ message delivery tag.
  9000. //
  9001. // Type: int
  9002. // RequirementLevel: Recommended
  9003. // Stability: Development
  9004. MessagingRabbitMQMessageDeliveryTagKey = attribute.Key("messaging.rabbitmq.message.delivery_tag")
  9005. // MessagingRocketMQConsumptionModelKey is the attribute Key conforming to the
  9006. // "messaging.rocketmq.consumption_model" semantic conventions. It represents
  9007. // the model of message consumption. This only applies to consumer spans.
  9008. //
  9009. // Type: Enum
  9010. // RequirementLevel: Recommended
  9011. // Stability: Development
  9012. //
  9013. // Examples:
  9014. MessagingRocketMQConsumptionModelKey = attribute.Key("messaging.rocketmq.consumption_model")
  9015. // MessagingRocketMQMessageDelayTimeLevelKey is the attribute Key conforming to
  9016. // the "messaging.rocketmq.message.delay_time_level" semantic conventions. It
  9017. // represents the delay time level for delay message, which determines the
  9018. // message delay time.
  9019. //
  9020. // Type: int
  9021. // RequirementLevel: Recommended
  9022. // Stability: Development
  9023. MessagingRocketMQMessageDelayTimeLevelKey = attribute.Key("messaging.rocketmq.message.delay_time_level")
  9024. // MessagingRocketMQMessageDeliveryTimestampKey is the attribute Key conforming
  9025. // to the "messaging.rocketmq.message.delivery_timestamp" semantic conventions.
  9026. // It represents the timestamp in milliseconds that the delay message is
  9027. // expected to be delivered to consumer.
  9028. //
  9029. // Type: int
  9030. // RequirementLevel: Recommended
  9031. // Stability: Development
  9032. MessagingRocketMQMessageDeliveryTimestampKey = attribute.Key("messaging.rocketmq.message.delivery_timestamp")
  9033. // MessagingRocketMQMessageGroupKey is the attribute Key conforming to the
  9034. // "messaging.rocketmq.message.group" semantic conventions. It represents the it
  9035. // is essential for FIFO message. Messages that belong to the same message group
  9036. // are always processed one by one within the same consumer group.
  9037. //
  9038. // Type: string
  9039. // RequirementLevel: Recommended
  9040. // Stability: Development
  9041. //
  9042. // Examples: myMessageGroup
  9043. MessagingRocketMQMessageGroupKey = attribute.Key("messaging.rocketmq.message.group")
  9044. // MessagingRocketMQMessageKeysKey is the attribute Key conforming to the
  9045. // "messaging.rocketmq.message.keys" semantic conventions. It represents the
  9046. // key(s) of message, another way to mark message besides message id.
  9047. //
  9048. // Type: string[]
  9049. // RequirementLevel: Recommended
  9050. // Stability: Development
  9051. //
  9052. // Examples: "keyA", "keyB"
  9053. MessagingRocketMQMessageKeysKey = attribute.Key("messaging.rocketmq.message.keys")
  9054. // MessagingRocketMQMessageTagKey is the attribute Key conforming to the
  9055. // "messaging.rocketmq.message.tag" semantic conventions. It represents the
  9056. // secondary classifier of message besides topic.
  9057. //
  9058. // Type: string
  9059. // RequirementLevel: Recommended
  9060. // Stability: Development
  9061. //
  9062. // Examples: tagA
  9063. MessagingRocketMQMessageTagKey = attribute.Key("messaging.rocketmq.message.tag")
  9064. // MessagingRocketMQMessageTypeKey is the attribute Key conforming to the
  9065. // "messaging.rocketmq.message.type" semantic conventions. It represents the
  9066. // type of message.
  9067. //
  9068. // Type: Enum
  9069. // RequirementLevel: Recommended
  9070. // Stability: Development
  9071. //
  9072. // Examples:
  9073. MessagingRocketMQMessageTypeKey = attribute.Key("messaging.rocketmq.message.type")
  9074. // MessagingRocketMQNamespaceKey is the attribute Key conforming to the
  9075. // "messaging.rocketmq.namespace" semantic conventions. It represents the
  9076. // namespace of RocketMQ resources, resources in different namespaces are
  9077. // individual.
  9078. //
  9079. // Type: string
  9080. // RequirementLevel: Recommended
  9081. // Stability: Development
  9082. //
  9083. // Examples: myNamespace
  9084. MessagingRocketMQNamespaceKey = attribute.Key("messaging.rocketmq.namespace")
  9085. // MessagingServiceBusDispositionStatusKey is the attribute Key conforming to
  9086. // the "messaging.servicebus.disposition_status" semantic conventions. It
  9087. // represents the describes the [settlement type].
  9088. //
  9089. // Type: Enum
  9090. // RequirementLevel: Recommended
  9091. // Stability: Development
  9092. //
  9093. // Examples:
  9094. //
  9095. // [settlement type]: https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock
  9096. MessagingServiceBusDispositionStatusKey = attribute.Key("messaging.servicebus.disposition_status")
  9097. // MessagingServiceBusMessageDeliveryCountKey is the attribute Key conforming to
  9098. // the "messaging.servicebus.message.delivery_count" semantic conventions. It
  9099. // represents the number of deliveries that have been attempted for this
  9100. // message.
  9101. //
  9102. // Type: int
  9103. // RequirementLevel: Recommended
  9104. // Stability: Development
  9105. MessagingServiceBusMessageDeliveryCountKey = attribute.Key("messaging.servicebus.message.delivery_count")
  9106. // MessagingServiceBusMessageEnqueuedTimeKey is the attribute Key conforming to
  9107. // the "messaging.servicebus.message.enqueued_time" semantic conventions. It
  9108. // represents the UTC epoch seconds at which the message has been accepted and
  9109. // stored in the entity.
  9110. //
  9111. // Type: int
  9112. // RequirementLevel: Recommended
  9113. // Stability: Development
  9114. MessagingServiceBusMessageEnqueuedTimeKey = attribute.Key("messaging.servicebus.message.enqueued_time")
  9115. // MessagingSystemKey is the attribute Key conforming to the "messaging.system"
  9116. // semantic conventions. It represents the messaging system as identified by the
  9117. // client instrumentation.
  9118. //
  9119. // Type: Enum
  9120. // RequirementLevel: Recommended
  9121. // Stability: Development
  9122. //
  9123. // Examples:
  9124. // Note: The actual messaging system may differ from the one known by the
  9125. // client. For example, when using Kafka client libraries to communicate with
  9126. // Azure Event Hubs, the `messaging.system` is set to `kafka` based on the
  9127. // instrumentation's best knowledge.
  9128. MessagingSystemKey = attribute.Key("messaging.system")
  9129. )
  9130. // MessagingBatchMessageCount returns an attribute KeyValue conforming to the
  9131. // "messaging.batch.message_count" semantic conventions. It represents the number
  9132. // of messages sent, received, or processed in the scope of the batching
  9133. // operation.
  9134. func MessagingBatchMessageCount(val int) attribute.KeyValue {
  9135. return MessagingBatchMessageCountKey.Int(val)
  9136. }
  9137. // MessagingClientID returns an attribute KeyValue conforming to the
  9138. // "messaging.client.id" semantic conventions. It represents a unique identifier
  9139. // for the client that consumes or produces a message.
  9140. func MessagingClientID(val string) attribute.KeyValue {
  9141. return MessagingClientIDKey.String(val)
  9142. }
  9143. // MessagingConsumerGroupName returns an attribute KeyValue conforming to the
  9144. // "messaging.consumer.group.name" semantic conventions. It represents the name
  9145. // of the consumer group with which a consumer is associated.
  9146. func MessagingConsumerGroupName(val string) attribute.KeyValue {
  9147. return MessagingConsumerGroupNameKey.String(val)
  9148. }
  9149. // MessagingDestinationAnonymous returns an attribute KeyValue conforming to the
  9150. // "messaging.destination.anonymous" semantic conventions. It represents a
  9151. // boolean that is true if the message destination is anonymous (could be unnamed
  9152. // or have auto-generated name).
  9153. func MessagingDestinationAnonymous(val bool) attribute.KeyValue {
  9154. return MessagingDestinationAnonymousKey.Bool(val)
  9155. }
  9156. // MessagingDestinationName returns an attribute KeyValue conforming to the
  9157. // "messaging.destination.name" semantic conventions. It represents the message
  9158. // destination name.
  9159. func MessagingDestinationName(val string) attribute.KeyValue {
  9160. return MessagingDestinationNameKey.String(val)
  9161. }
  9162. // MessagingDestinationPartitionID returns an attribute KeyValue conforming to
  9163. // the "messaging.destination.partition.id" semantic conventions. It represents
  9164. // the identifier of the partition messages are sent to or received from, unique
  9165. // within the `messaging.destination.name`.
  9166. func MessagingDestinationPartitionID(val string) attribute.KeyValue {
  9167. return MessagingDestinationPartitionIDKey.String(val)
  9168. }
  9169. // MessagingDestinationSubscriptionName returns an attribute KeyValue conforming
  9170. // to the "messaging.destination.subscription.name" semantic conventions. It
  9171. // represents the name of the destination subscription from which a message is
  9172. // consumed.
  9173. func MessagingDestinationSubscriptionName(val string) attribute.KeyValue {
  9174. return MessagingDestinationSubscriptionNameKey.String(val)
  9175. }
  9176. // MessagingDestinationTemplate returns an attribute KeyValue conforming to the
  9177. // "messaging.destination.template" semantic conventions. It represents the low
  9178. // cardinality representation of the messaging destination name.
  9179. func MessagingDestinationTemplate(val string) attribute.KeyValue {
  9180. return MessagingDestinationTemplateKey.String(val)
  9181. }
  9182. // MessagingDestinationTemporary returns an attribute KeyValue conforming to the
  9183. // "messaging.destination.temporary" semantic conventions. It represents a
  9184. // boolean that is true if the message destination is temporary and might not
  9185. // exist anymore after messages are processed.
  9186. func MessagingDestinationTemporary(val bool) attribute.KeyValue {
  9187. return MessagingDestinationTemporaryKey.Bool(val)
  9188. }
  9189. // MessagingEventHubsMessageEnqueuedTime returns an attribute KeyValue conforming
  9190. // to the "messaging.eventhubs.message.enqueued_time" semantic conventions. It
  9191. // represents the UTC epoch seconds at which the message has been accepted and
  9192. // stored in the entity.
  9193. func MessagingEventHubsMessageEnqueuedTime(val int) attribute.KeyValue {
  9194. return MessagingEventHubsMessageEnqueuedTimeKey.Int(val)
  9195. }
  9196. // MessagingGCPPubSubMessageAckDeadline returns an attribute KeyValue conforming
  9197. // to the "messaging.gcp_pubsub.message.ack_deadline" semantic conventions. It
  9198. // represents the ack deadline in seconds set for the modify ack deadline
  9199. // request.
  9200. func MessagingGCPPubSubMessageAckDeadline(val int) attribute.KeyValue {
  9201. return MessagingGCPPubSubMessageAckDeadlineKey.Int(val)
  9202. }
  9203. // MessagingGCPPubSubMessageAckID returns an attribute KeyValue conforming to the
  9204. // "messaging.gcp_pubsub.message.ack_id" semantic conventions. It represents the
  9205. // ack id for a given message.
  9206. func MessagingGCPPubSubMessageAckID(val string) attribute.KeyValue {
  9207. return MessagingGCPPubSubMessageAckIDKey.String(val)
  9208. }
  9209. // MessagingGCPPubSubMessageDeliveryAttempt returns an attribute KeyValue
  9210. // conforming to the "messaging.gcp_pubsub.message.delivery_attempt" semantic
  9211. // conventions. It represents the delivery attempt for a given message.
  9212. func MessagingGCPPubSubMessageDeliveryAttempt(val int) attribute.KeyValue {
  9213. return MessagingGCPPubSubMessageDeliveryAttemptKey.Int(val)
  9214. }
  9215. // MessagingGCPPubSubMessageOrderingKey returns an attribute KeyValue conforming
  9216. // to the "messaging.gcp_pubsub.message.ordering_key" semantic conventions. It
  9217. // represents the ordering key for a given message. If the attribute is not
  9218. // present, the message does not have an ordering key.
  9219. func MessagingGCPPubSubMessageOrderingKey(val string) attribute.KeyValue {
  9220. return MessagingGCPPubSubMessageOrderingKeyKey.String(val)
  9221. }
  9222. // MessagingKafkaMessageKey returns an attribute KeyValue conforming to the
  9223. // "messaging.kafka.message.key" semantic conventions. It represents the message
  9224. // keys in Kafka are used for grouping alike messages to ensure they're processed
  9225. // on the same partition. They differ from `messaging.message.id` in that they're
  9226. // not unique. If the key is `null`, the attribute MUST NOT be set.
  9227. func MessagingKafkaMessageKey(val string) attribute.KeyValue {
  9228. return MessagingKafkaMessageKeyKey.String(val)
  9229. }
  9230. // MessagingKafkaMessageTombstone returns an attribute KeyValue conforming to the
  9231. // "messaging.kafka.message.tombstone" semantic conventions. It represents a
  9232. // boolean that is true if the message is a tombstone.
  9233. func MessagingKafkaMessageTombstone(val bool) attribute.KeyValue {
  9234. return MessagingKafkaMessageTombstoneKey.Bool(val)
  9235. }
  9236. // MessagingKafkaOffset returns an attribute KeyValue conforming to the
  9237. // "messaging.kafka.offset" semantic conventions. It represents the offset of a
  9238. // record in the corresponding Kafka partition.
  9239. func MessagingKafkaOffset(val int) attribute.KeyValue {
  9240. return MessagingKafkaOffsetKey.Int(val)
  9241. }
  9242. // MessagingMessageBodySize returns an attribute KeyValue conforming to the
  9243. // "messaging.message.body.size" semantic conventions. It represents the size of
  9244. // the message body in bytes.
  9245. func MessagingMessageBodySize(val int) attribute.KeyValue {
  9246. return MessagingMessageBodySizeKey.Int(val)
  9247. }
  9248. // MessagingMessageConversationID returns an attribute KeyValue conforming to the
  9249. // "messaging.message.conversation_id" semantic conventions. It represents the
  9250. // conversation ID identifying the conversation to which the message belongs,
  9251. // represented as a string. Sometimes called "Correlation ID".
  9252. func MessagingMessageConversationID(val string) attribute.KeyValue {
  9253. return MessagingMessageConversationIDKey.String(val)
  9254. }
  9255. // MessagingMessageEnvelopeSize returns an attribute KeyValue conforming to the
  9256. // "messaging.message.envelope.size" semantic conventions. It represents the size
  9257. // of the message body and metadata in bytes.
  9258. func MessagingMessageEnvelopeSize(val int) attribute.KeyValue {
  9259. return MessagingMessageEnvelopeSizeKey.Int(val)
  9260. }
  9261. // MessagingMessageID returns an attribute KeyValue conforming to the
  9262. // "messaging.message.id" semantic conventions. It represents a value used by the
  9263. // messaging system as an identifier for the message, represented as a string.
  9264. func MessagingMessageID(val string) attribute.KeyValue {
  9265. return MessagingMessageIDKey.String(val)
  9266. }
  9267. // MessagingOperationName returns an attribute KeyValue conforming to the
  9268. // "messaging.operation.name" semantic conventions. It represents the
  9269. // system-specific name of the messaging operation.
  9270. func MessagingOperationName(val string) attribute.KeyValue {
  9271. return MessagingOperationNameKey.String(val)
  9272. }
  9273. // MessagingRabbitMQDestinationRoutingKey returns an attribute KeyValue
  9274. // conforming to the "messaging.rabbitmq.destination.routing_key" semantic
  9275. // conventions. It represents the rabbitMQ message routing key.
  9276. func MessagingRabbitMQDestinationRoutingKey(val string) attribute.KeyValue {
  9277. return MessagingRabbitMQDestinationRoutingKeyKey.String(val)
  9278. }
  9279. // MessagingRabbitMQMessageDeliveryTag returns an attribute KeyValue conforming
  9280. // to the "messaging.rabbitmq.message.delivery_tag" semantic conventions. It
  9281. // represents the rabbitMQ message delivery tag.
  9282. func MessagingRabbitMQMessageDeliveryTag(val int) attribute.KeyValue {
  9283. return MessagingRabbitMQMessageDeliveryTagKey.Int(val)
  9284. }
  9285. // MessagingRocketMQMessageDelayTimeLevel returns an attribute KeyValue
  9286. // conforming to the "messaging.rocketmq.message.delay_time_level" semantic
  9287. // conventions. It represents the delay time level for delay message, which
  9288. // determines the message delay time.
  9289. func MessagingRocketMQMessageDelayTimeLevel(val int) attribute.KeyValue {
  9290. return MessagingRocketMQMessageDelayTimeLevelKey.Int(val)
  9291. }
  9292. // MessagingRocketMQMessageDeliveryTimestamp returns an attribute KeyValue
  9293. // conforming to the "messaging.rocketmq.message.delivery_timestamp" semantic
  9294. // conventions. It represents the timestamp in milliseconds that the delay
  9295. // message is expected to be delivered to consumer.
  9296. func MessagingRocketMQMessageDeliveryTimestamp(val int) attribute.KeyValue {
  9297. return MessagingRocketMQMessageDeliveryTimestampKey.Int(val)
  9298. }
  9299. // MessagingRocketMQMessageGroup returns an attribute KeyValue conforming to the
  9300. // "messaging.rocketmq.message.group" semantic conventions. It represents the it
  9301. // is essential for FIFO message. Messages that belong to the same message group
  9302. // are always processed one by one within the same consumer group.
  9303. func MessagingRocketMQMessageGroup(val string) attribute.KeyValue {
  9304. return MessagingRocketMQMessageGroupKey.String(val)
  9305. }
  9306. // MessagingRocketMQMessageKeys returns an attribute KeyValue conforming to the
  9307. // "messaging.rocketmq.message.keys" semantic conventions. It represents the
  9308. // key(s) of message, another way to mark message besides message id.
  9309. func MessagingRocketMQMessageKeys(val ...string) attribute.KeyValue {
  9310. return MessagingRocketMQMessageKeysKey.StringSlice(val)
  9311. }
  9312. // MessagingRocketMQMessageTag returns an attribute KeyValue conforming to the
  9313. // "messaging.rocketmq.message.tag" semantic conventions. It represents the
  9314. // secondary classifier of message besides topic.
  9315. func MessagingRocketMQMessageTag(val string) attribute.KeyValue {
  9316. return MessagingRocketMQMessageTagKey.String(val)
  9317. }
  9318. // MessagingRocketMQNamespace returns an attribute KeyValue conforming to the
  9319. // "messaging.rocketmq.namespace" semantic conventions. It represents the
  9320. // namespace of RocketMQ resources, resources in different namespaces are
  9321. // individual.
  9322. func MessagingRocketMQNamespace(val string) attribute.KeyValue {
  9323. return MessagingRocketMQNamespaceKey.String(val)
  9324. }
  9325. // MessagingServiceBusMessageDeliveryCount returns an attribute KeyValue
  9326. // conforming to the "messaging.servicebus.message.delivery_count" semantic
  9327. // conventions. It represents the number of deliveries that have been attempted
  9328. // for this message.
  9329. func MessagingServiceBusMessageDeliveryCount(val int) attribute.KeyValue {
  9330. return MessagingServiceBusMessageDeliveryCountKey.Int(val)
  9331. }
  9332. // MessagingServiceBusMessageEnqueuedTime returns an attribute KeyValue
  9333. // conforming to the "messaging.servicebus.message.enqueued_time" semantic
  9334. // conventions. It represents the UTC epoch seconds at which the message has been
  9335. // accepted and stored in the entity.
  9336. func MessagingServiceBusMessageEnqueuedTime(val int) attribute.KeyValue {
  9337. return MessagingServiceBusMessageEnqueuedTimeKey.Int(val)
  9338. }
  9339. // Enum values for messaging.operation.type
  9340. var (
  9341. // A message is created. "Create" spans always refer to a single message and are
  9342. // used to provide a unique creation context for messages in batch sending
  9343. // scenarios.
  9344. //
  9345. // Stability: development
  9346. MessagingOperationTypeCreate = MessagingOperationTypeKey.String("create")
  9347. // One or more messages are provided for sending to an intermediary. If a single
  9348. // message is sent, the context of the "Send" span can be used as the creation
  9349. // context and no "Create" span needs to be created.
  9350. //
  9351. // Stability: development
  9352. MessagingOperationTypeSend = MessagingOperationTypeKey.String("send")
  9353. // One or more messages are requested by a consumer. This operation refers to
  9354. // pull-based scenarios, where consumers explicitly call methods of messaging
  9355. // SDKs to receive messages.
  9356. //
  9357. // Stability: development
  9358. MessagingOperationTypeReceive = MessagingOperationTypeKey.String("receive")
  9359. // One or more messages are processed by a consumer.
  9360. //
  9361. // Stability: development
  9362. MessagingOperationTypeProcess = MessagingOperationTypeKey.String("process")
  9363. // One or more messages are settled.
  9364. //
  9365. // Stability: development
  9366. MessagingOperationTypeSettle = MessagingOperationTypeKey.String("settle")
  9367. )
  9368. // Enum values for messaging.rocketmq.consumption_model
  9369. var (
  9370. // Clustering consumption model
  9371. // Stability: development
  9372. MessagingRocketMQConsumptionModelClustering = MessagingRocketMQConsumptionModelKey.String("clustering")
  9373. // Broadcasting consumption model
  9374. // Stability: development
  9375. MessagingRocketMQConsumptionModelBroadcasting = MessagingRocketMQConsumptionModelKey.String("broadcasting")
  9376. )
  9377. // Enum values for messaging.rocketmq.message.type
  9378. var (
  9379. // Normal message
  9380. // Stability: development
  9381. MessagingRocketMQMessageTypeNormal = MessagingRocketMQMessageTypeKey.String("normal")
  9382. // FIFO message
  9383. // Stability: development
  9384. MessagingRocketMQMessageTypeFifo = MessagingRocketMQMessageTypeKey.String("fifo")
  9385. // Delay message
  9386. // Stability: development
  9387. MessagingRocketMQMessageTypeDelay = MessagingRocketMQMessageTypeKey.String("delay")
  9388. // Transaction message
  9389. // Stability: development
  9390. MessagingRocketMQMessageTypeTransaction = MessagingRocketMQMessageTypeKey.String("transaction")
  9391. )
  9392. // Enum values for messaging.servicebus.disposition_status
  9393. var (
  9394. // Message is completed
  9395. // Stability: development
  9396. MessagingServiceBusDispositionStatusComplete = MessagingServiceBusDispositionStatusKey.String("complete")
  9397. // Message is abandoned
  9398. // Stability: development
  9399. MessagingServiceBusDispositionStatusAbandon = MessagingServiceBusDispositionStatusKey.String("abandon")
  9400. // Message is sent to dead letter queue
  9401. // Stability: development
  9402. MessagingServiceBusDispositionStatusDeadLetter = MessagingServiceBusDispositionStatusKey.String("dead_letter")
  9403. // Message is deferred
  9404. // Stability: development
  9405. MessagingServiceBusDispositionStatusDefer = MessagingServiceBusDispositionStatusKey.String("defer")
  9406. )
  9407. // Enum values for messaging.system
  9408. var (
  9409. // Apache ActiveMQ
  9410. // Stability: development
  9411. MessagingSystemActiveMQ = MessagingSystemKey.String("activemq")
  9412. // Amazon Simple Notification Service (SNS)
  9413. // Stability: development
  9414. MessagingSystemAWSSNS = MessagingSystemKey.String("aws.sns")
  9415. // Amazon Simple Queue Service (SQS)
  9416. // Stability: development
  9417. MessagingSystemAWSSQS = MessagingSystemKey.String("aws_sqs")
  9418. // Azure Event Grid
  9419. // Stability: development
  9420. MessagingSystemEventGrid = MessagingSystemKey.String("eventgrid")
  9421. // Azure Event Hubs
  9422. // Stability: development
  9423. MessagingSystemEventHubs = MessagingSystemKey.String("eventhubs")
  9424. // Azure Service Bus
  9425. // Stability: development
  9426. MessagingSystemServiceBus = MessagingSystemKey.String("servicebus")
  9427. // Google Cloud Pub/Sub
  9428. // Stability: development
  9429. MessagingSystemGCPPubSub = MessagingSystemKey.String("gcp_pubsub")
  9430. // Java Message Service
  9431. // Stability: development
  9432. MessagingSystemJMS = MessagingSystemKey.String("jms")
  9433. // Apache Kafka
  9434. // Stability: development
  9435. MessagingSystemKafka = MessagingSystemKey.String("kafka")
  9436. // RabbitMQ
  9437. // Stability: development
  9438. MessagingSystemRabbitMQ = MessagingSystemKey.String("rabbitmq")
  9439. // Apache RocketMQ
  9440. // Stability: development
  9441. MessagingSystemRocketMQ = MessagingSystemKey.String("rocketmq")
  9442. // Apache Pulsar
  9443. // Stability: development
  9444. MessagingSystemPulsar = MessagingSystemKey.String("pulsar")
  9445. )
  9446. // Namespace: network
  9447. const (
  9448. // NetworkCarrierICCKey is the attribute Key conforming to the
  9449. // "network.carrier.icc" semantic conventions. It represents the ISO 3166-1
  9450. // alpha-2 2-character country code associated with the mobile carrier network.
  9451. //
  9452. // Type: string
  9453. // RequirementLevel: Recommended
  9454. // Stability: Development
  9455. //
  9456. // Examples: DE
  9457. NetworkCarrierICCKey = attribute.Key("network.carrier.icc")
  9458. // NetworkCarrierMCCKey is the attribute Key conforming to the
  9459. // "network.carrier.mcc" semantic conventions. It represents the mobile carrier
  9460. // country code.
  9461. //
  9462. // Type: string
  9463. // RequirementLevel: Recommended
  9464. // Stability: Development
  9465. //
  9466. // Examples: 310
  9467. NetworkCarrierMCCKey = attribute.Key("network.carrier.mcc")
  9468. // NetworkCarrierMNCKey is the attribute Key conforming to the
  9469. // "network.carrier.mnc" semantic conventions. It represents the mobile carrier
  9470. // network code.
  9471. //
  9472. // Type: string
  9473. // RequirementLevel: Recommended
  9474. // Stability: Development
  9475. //
  9476. // Examples: 001
  9477. NetworkCarrierMNCKey = attribute.Key("network.carrier.mnc")
  9478. // NetworkCarrierNameKey is the attribute Key conforming to the
  9479. // "network.carrier.name" semantic conventions. It represents the name of the
  9480. // mobile carrier.
  9481. //
  9482. // Type: string
  9483. // RequirementLevel: Recommended
  9484. // Stability: Development
  9485. //
  9486. // Examples: sprint
  9487. NetworkCarrierNameKey = attribute.Key("network.carrier.name")
  9488. // NetworkConnectionStateKey is the attribute Key conforming to the
  9489. // "network.connection.state" semantic conventions. It represents the state of
  9490. // network connection.
  9491. //
  9492. // Type: Enum
  9493. // RequirementLevel: Recommended
  9494. // Stability: Development
  9495. //
  9496. // Examples: "close_wait"
  9497. // Note: Connection states are defined as part of the [rfc9293]
  9498. //
  9499. // [rfc9293]: https://datatracker.ietf.org/doc/html/rfc9293#section-3.3.2
  9500. NetworkConnectionStateKey = attribute.Key("network.connection.state")
  9501. // NetworkConnectionSubtypeKey is the attribute Key conforming to the
  9502. // "network.connection.subtype" semantic conventions. It represents the this
  9503. // describes more details regarding the connection.type. It may be the type of
  9504. // cell technology connection, but it could be used for describing details about
  9505. // a wifi connection.
  9506. //
  9507. // Type: Enum
  9508. // RequirementLevel: Recommended
  9509. // Stability: Development
  9510. //
  9511. // Examples: LTE
  9512. NetworkConnectionSubtypeKey = attribute.Key("network.connection.subtype")
  9513. // NetworkConnectionTypeKey is the attribute Key conforming to the
  9514. // "network.connection.type" semantic conventions. It represents the internet
  9515. // connection type.
  9516. //
  9517. // Type: Enum
  9518. // RequirementLevel: Recommended
  9519. // Stability: Development
  9520. //
  9521. // Examples: wifi
  9522. NetworkConnectionTypeKey = attribute.Key("network.connection.type")
  9523. // NetworkInterfaceNameKey is the attribute Key conforming to the
  9524. // "network.interface.name" semantic conventions. It represents the network
  9525. // interface name.
  9526. //
  9527. // Type: string
  9528. // RequirementLevel: Recommended
  9529. // Stability: Development
  9530. //
  9531. // Examples: "lo", "eth0"
  9532. NetworkInterfaceNameKey = attribute.Key("network.interface.name")
  9533. // NetworkIODirectionKey is the attribute Key conforming to the
  9534. // "network.io.direction" semantic conventions. It represents the network IO
  9535. // operation direction.
  9536. //
  9537. // Type: Enum
  9538. // RequirementLevel: Recommended
  9539. // Stability: Development
  9540. //
  9541. // Examples: "transmit"
  9542. NetworkIODirectionKey = attribute.Key("network.io.direction")
  9543. // NetworkLocalAddressKey is the attribute Key conforming to the
  9544. // "network.local.address" semantic conventions. It represents the local address
  9545. // of the network connection - IP address or Unix domain socket name.
  9546. //
  9547. // Type: string
  9548. // RequirementLevel: Recommended
  9549. // Stability: Stable
  9550. //
  9551. // Examples: "10.1.2.80", "/tmp/my.sock"
  9552. NetworkLocalAddressKey = attribute.Key("network.local.address")
  9553. // NetworkLocalPortKey is the attribute Key conforming to the
  9554. // "network.local.port" semantic conventions. It represents the local port
  9555. // number of the network connection.
  9556. //
  9557. // Type: int
  9558. // RequirementLevel: Recommended
  9559. // Stability: Stable
  9560. //
  9561. // Examples: 65123
  9562. NetworkLocalPortKey = attribute.Key("network.local.port")
  9563. // NetworkPeerAddressKey is the attribute Key conforming to the
  9564. // "network.peer.address" semantic conventions. It represents the peer address
  9565. // of the network connection - IP address or Unix domain socket name.
  9566. //
  9567. // Type: string
  9568. // RequirementLevel: Recommended
  9569. // Stability: Stable
  9570. //
  9571. // Examples: "10.1.2.80", "/tmp/my.sock"
  9572. NetworkPeerAddressKey = attribute.Key("network.peer.address")
  9573. // NetworkPeerPortKey is the attribute Key conforming to the "network.peer.port"
  9574. // semantic conventions. It represents the peer port number of the network
  9575. // connection.
  9576. //
  9577. // Type: int
  9578. // RequirementLevel: Recommended
  9579. // Stability: Stable
  9580. //
  9581. // Examples: 65123
  9582. NetworkPeerPortKey = attribute.Key("network.peer.port")
  9583. // NetworkProtocolNameKey is the attribute Key conforming to the
  9584. // "network.protocol.name" semantic conventions. It represents the
  9585. // [OSI application layer] or non-OSI equivalent.
  9586. //
  9587. // Type: string
  9588. // RequirementLevel: Recommended
  9589. // Stability: Stable
  9590. //
  9591. // Examples: "amqp", "http", "mqtt"
  9592. // Note: The value SHOULD be normalized to lowercase.
  9593. //
  9594. // [OSI application layer]: https://wikipedia.org/wiki/Application_layer
  9595. NetworkProtocolNameKey = attribute.Key("network.protocol.name")
  9596. // NetworkProtocolVersionKey is the attribute Key conforming to the
  9597. // "network.protocol.version" semantic conventions. It represents the actual
  9598. // version of the protocol used for network communication.
  9599. //
  9600. // Type: string
  9601. // RequirementLevel: Recommended
  9602. // Stability: Stable
  9603. //
  9604. // Examples: "1.1", "2"
  9605. // Note: If protocol version is subject to negotiation (for example using [ALPN]
  9606. // ), this attribute SHOULD be set to the negotiated version. If the actual
  9607. // protocol version is not known, this attribute SHOULD NOT be set.
  9608. //
  9609. // [ALPN]: https://www.rfc-editor.org/rfc/rfc7301.html
  9610. NetworkProtocolVersionKey = attribute.Key("network.protocol.version")
  9611. // NetworkTransportKey is the attribute Key conforming to the
  9612. // "network.transport" semantic conventions. It represents the
  9613. // [OSI transport layer] or [inter-process communication method].
  9614. //
  9615. // Type: Enum
  9616. // RequirementLevel: Recommended
  9617. // Stability: Stable
  9618. //
  9619. // Examples: "tcp", "udp"
  9620. // Note: The value SHOULD be normalized to lowercase.
  9621. //
  9622. // Consider always setting the transport when setting a port number, since
  9623. // a port number is ambiguous without knowing the transport. For example
  9624. // different processes could be listening on TCP port 12345 and UDP port 12345.
  9625. //
  9626. // [OSI transport layer]: https://wikipedia.org/wiki/Transport_layer
  9627. // [inter-process communication method]: https://wikipedia.org/wiki/Inter-process_communication
  9628. NetworkTransportKey = attribute.Key("network.transport")
  9629. // NetworkTypeKey is the attribute Key conforming to the "network.type" semantic
  9630. // conventions. It represents the [OSI network layer] or non-OSI equivalent.
  9631. //
  9632. // Type: Enum
  9633. // RequirementLevel: Recommended
  9634. // Stability: Stable
  9635. //
  9636. // Examples: "ipv4", "ipv6"
  9637. // Note: The value SHOULD be normalized to lowercase.
  9638. //
  9639. // [OSI network layer]: https://wikipedia.org/wiki/Network_layer
  9640. NetworkTypeKey = attribute.Key("network.type")
  9641. )
  9642. // NetworkCarrierICC returns an attribute KeyValue conforming to the
  9643. // "network.carrier.icc" semantic conventions. It represents the ISO 3166-1
  9644. // alpha-2 2-character country code associated with the mobile carrier network.
  9645. func NetworkCarrierICC(val string) attribute.KeyValue {
  9646. return NetworkCarrierICCKey.String(val)
  9647. }
  9648. // NetworkCarrierMCC returns an attribute KeyValue conforming to the
  9649. // "network.carrier.mcc" semantic conventions. It represents the mobile carrier
  9650. // country code.
  9651. func NetworkCarrierMCC(val string) attribute.KeyValue {
  9652. return NetworkCarrierMCCKey.String(val)
  9653. }
  9654. // NetworkCarrierMNC returns an attribute KeyValue conforming to the
  9655. // "network.carrier.mnc" semantic conventions. It represents the mobile carrier
  9656. // network code.
  9657. func NetworkCarrierMNC(val string) attribute.KeyValue {
  9658. return NetworkCarrierMNCKey.String(val)
  9659. }
  9660. // NetworkCarrierName returns an attribute KeyValue conforming to the
  9661. // "network.carrier.name" semantic conventions. It represents the name of the
  9662. // mobile carrier.
  9663. func NetworkCarrierName(val string) attribute.KeyValue {
  9664. return NetworkCarrierNameKey.String(val)
  9665. }
  9666. // NetworkInterfaceName returns an attribute KeyValue conforming to the
  9667. // "network.interface.name" semantic conventions. It represents the network
  9668. // interface name.
  9669. func NetworkInterfaceName(val string) attribute.KeyValue {
  9670. return NetworkInterfaceNameKey.String(val)
  9671. }
  9672. // NetworkLocalAddress returns an attribute KeyValue conforming to the
  9673. // "network.local.address" semantic conventions. It represents the local address
  9674. // of the network connection - IP address or Unix domain socket name.
  9675. func NetworkLocalAddress(val string) attribute.KeyValue {
  9676. return NetworkLocalAddressKey.String(val)
  9677. }
  9678. // NetworkLocalPort returns an attribute KeyValue conforming to the
  9679. // "network.local.port" semantic conventions. It represents the local port number
  9680. // of the network connection.
  9681. func NetworkLocalPort(val int) attribute.KeyValue {
  9682. return NetworkLocalPortKey.Int(val)
  9683. }
  9684. // NetworkPeerAddress returns an attribute KeyValue conforming to the
  9685. // "network.peer.address" semantic conventions. It represents the peer address of
  9686. // the network connection - IP address or Unix domain socket name.
  9687. func NetworkPeerAddress(val string) attribute.KeyValue {
  9688. return NetworkPeerAddressKey.String(val)
  9689. }
  9690. // NetworkPeerPort returns an attribute KeyValue conforming to the
  9691. // "network.peer.port" semantic conventions. It represents the peer port number
  9692. // of the network connection.
  9693. func NetworkPeerPort(val int) attribute.KeyValue {
  9694. return NetworkPeerPortKey.Int(val)
  9695. }
  9696. // NetworkProtocolName returns an attribute KeyValue conforming to the
  9697. // "network.protocol.name" semantic conventions. It represents the
  9698. // [OSI application layer] or non-OSI equivalent.
  9699. //
  9700. // [OSI application layer]: https://wikipedia.org/wiki/Application_layer
  9701. func NetworkProtocolName(val string) attribute.KeyValue {
  9702. return NetworkProtocolNameKey.String(val)
  9703. }
  9704. // NetworkProtocolVersion returns an attribute KeyValue conforming to the
  9705. // "network.protocol.version" semantic conventions. It represents the actual
  9706. // version of the protocol used for network communication.
  9707. func NetworkProtocolVersion(val string) attribute.KeyValue {
  9708. return NetworkProtocolVersionKey.String(val)
  9709. }
  9710. // Enum values for network.connection.state
  9711. var (
  9712. // closed
  9713. // Stability: development
  9714. NetworkConnectionStateClosed = NetworkConnectionStateKey.String("closed")
  9715. // close_wait
  9716. // Stability: development
  9717. NetworkConnectionStateCloseWait = NetworkConnectionStateKey.String("close_wait")
  9718. // closing
  9719. // Stability: development
  9720. NetworkConnectionStateClosing = NetworkConnectionStateKey.String("closing")
  9721. // established
  9722. // Stability: development
  9723. NetworkConnectionStateEstablished = NetworkConnectionStateKey.String("established")
  9724. // fin_wait_1
  9725. // Stability: development
  9726. NetworkConnectionStateFinWait1 = NetworkConnectionStateKey.String("fin_wait_1")
  9727. // fin_wait_2
  9728. // Stability: development
  9729. NetworkConnectionStateFinWait2 = NetworkConnectionStateKey.String("fin_wait_2")
  9730. // last_ack
  9731. // Stability: development
  9732. NetworkConnectionStateLastAck = NetworkConnectionStateKey.String("last_ack")
  9733. // listen
  9734. // Stability: development
  9735. NetworkConnectionStateListen = NetworkConnectionStateKey.String("listen")
  9736. // syn_received
  9737. // Stability: development
  9738. NetworkConnectionStateSynReceived = NetworkConnectionStateKey.String("syn_received")
  9739. // syn_sent
  9740. // Stability: development
  9741. NetworkConnectionStateSynSent = NetworkConnectionStateKey.String("syn_sent")
  9742. // time_wait
  9743. // Stability: development
  9744. NetworkConnectionStateTimeWait = NetworkConnectionStateKey.String("time_wait")
  9745. )
  9746. // Enum values for network.connection.subtype
  9747. var (
  9748. // GPRS
  9749. // Stability: development
  9750. NetworkConnectionSubtypeGprs = NetworkConnectionSubtypeKey.String("gprs")
  9751. // EDGE
  9752. // Stability: development
  9753. NetworkConnectionSubtypeEdge = NetworkConnectionSubtypeKey.String("edge")
  9754. // UMTS
  9755. // Stability: development
  9756. NetworkConnectionSubtypeUmts = NetworkConnectionSubtypeKey.String("umts")
  9757. // CDMA
  9758. // Stability: development
  9759. NetworkConnectionSubtypeCdma = NetworkConnectionSubtypeKey.String("cdma")
  9760. // EVDO Rel. 0
  9761. // Stability: development
  9762. NetworkConnectionSubtypeEvdo0 = NetworkConnectionSubtypeKey.String("evdo_0")
  9763. // EVDO Rev. A
  9764. // Stability: development
  9765. NetworkConnectionSubtypeEvdoA = NetworkConnectionSubtypeKey.String("evdo_a")
  9766. // CDMA2000 1XRTT
  9767. // Stability: development
  9768. NetworkConnectionSubtypeCdma20001xrtt = NetworkConnectionSubtypeKey.String("cdma2000_1xrtt")
  9769. // HSDPA
  9770. // Stability: development
  9771. NetworkConnectionSubtypeHsdpa = NetworkConnectionSubtypeKey.String("hsdpa")
  9772. // HSUPA
  9773. // Stability: development
  9774. NetworkConnectionSubtypeHsupa = NetworkConnectionSubtypeKey.String("hsupa")
  9775. // HSPA
  9776. // Stability: development
  9777. NetworkConnectionSubtypeHspa = NetworkConnectionSubtypeKey.String("hspa")
  9778. // IDEN
  9779. // Stability: development
  9780. NetworkConnectionSubtypeIden = NetworkConnectionSubtypeKey.String("iden")
  9781. // EVDO Rev. B
  9782. // Stability: development
  9783. NetworkConnectionSubtypeEvdoB = NetworkConnectionSubtypeKey.String("evdo_b")
  9784. // LTE
  9785. // Stability: development
  9786. NetworkConnectionSubtypeLte = NetworkConnectionSubtypeKey.String("lte")
  9787. // EHRPD
  9788. // Stability: development
  9789. NetworkConnectionSubtypeEhrpd = NetworkConnectionSubtypeKey.String("ehrpd")
  9790. // HSPAP
  9791. // Stability: development
  9792. NetworkConnectionSubtypeHspap = NetworkConnectionSubtypeKey.String("hspap")
  9793. // GSM
  9794. // Stability: development
  9795. NetworkConnectionSubtypeGsm = NetworkConnectionSubtypeKey.String("gsm")
  9796. // TD-SCDMA
  9797. // Stability: development
  9798. NetworkConnectionSubtypeTdScdma = NetworkConnectionSubtypeKey.String("td_scdma")
  9799. // IWLAN
  9800. // Stability: development
  9801. NetworkConnectionSubtypeIwlan = NetworkConnectionSubtypeKey.String("iwlan")
  9802. // 5G NR (New Radio)
  9803. // Stability: development
  9804. NetworkConnectionSubtypeNr = NetworkConnectionSubtypeKey.String("nr")
  9805. // 5G NRNSA (New Radio Non-Standalone)
  9806. // Stability: development
  9807. NetworkConnectionSubtypeNrnsa = NetworkConnectionSubtypeKey.String("nrnsa")
  9808. // LTE CA
  9809. // Stability: development
  9810. NetworkConnectionSubtypeLteCa = NetworkConnectionSubtypeKey.String("lte_ca")
  9811. )
  9812. // Enum values for network.connection.type
  9813. var (
  9814. // wifi
  9815. // Stability: development
  9816. NetworkConnectionTypeWifi = NetworkConnectionTypeKey.String("wifi")
  9817. // wired
  9818. // Stability: development
  9819. NetworkConnectionTypeWired = NetworkConnectionTypeKey.String("wired")
  9820. // cell
  9821. // Stability: development
  9822. NetworkConnectionTypeCell = NetworkConnectionTypeKey.String("cell")
  9823. // unavailable
  9824. // Stability: development
  9825. NetworkConnectionTypeUnavailable = NetworkConnectionTypeKey.String("unavailable")
  9826. // unknown
  9827. // Stability: development
  9828. NetworkConnectionTypeUnknown = NetworkConnectionTypeKey.String("unknown")
  9829. )
  9830. // Enum values for network.io.direction
  9831. var (
  9832. // transmit
  9833. // Stability: development
  9834. NetworkIODirectionTransmit = NetworkIODirectionKey.String("transmit")
  9835. // receive
  9836. // Stability: development
  9837. NetworkIODirectionReceive = NetworkIODirectionKey.String("receive")
  9838. )
  9839. // Enum values for network.transport
  9840. var (
  9841. // TCP
  9842. // Stability: stable
  9843. NetworkTransportTCP = NetworkTransportKey.String("tcp")
  9844. // UDP
  9845. // Stability: stable
  9846. NetworkTransportUDP = NetworkTransportKey.String("udp")
  9847. // Named or anonymous pipe.
  9848. // Stability: stable
  9849. NetworkTransportPipe = NetworkTransportKey.String("pipe")
  9850. // Unix domain socket
  9851. // Stability: stable
  9852. NetworkTransportUnix = NetworkTransportKey.String("unix")
  9853. // QUIC
  9854. // Stability: stable
  9855. NetworkTransportQUIC = NetworkTransportKey.String("quic")
  9856. )
  9857. // Enum values for network.type
  9858. var (
  9859. // IPv4
  9860. // Stability: stable
  9861. NetworkTypeIPv4 = NetworkTypeKey.String("ipv4")
  9862. // IPv6
  9863. // Stability: stable
  9864. NetworkTypeIPv6 = NetworkTypeKey.String("ipv6")
  9865. )
  9866. // Namespace: oci
  9867. const (
  9868. // OCIManifestDigestKey is the attribute Key conforming to the
  9869. // "oci.manifest.digest" semantic conventions. It represents the digest of the
  9870. // OCI image manifest. For container images specifically is the digest by which
  9871. // the container image is known.
  9872. //
  9873. // Type: string
  9874. // RequirementLevel: Recommended
  9875. // Stability: Development
  9876. //
  9877. // Examples:
  9878. // "sha256:e4ca62c0d62f3e886e684806dfe9d4e0cda60d54986898173c1083856cfda0f4"
  9879. // Note: Follows [OCI Image Manifest Specification], and specifically the
  9880. // [Digest property].
  9881. // An example can be found in [Example Image Manifest].
  9882. //
  9883. // [OCI Image Manifest Specification]: https://github.com/opencontainers/image-spec/blob/main/manifest.md
  9884. // [Digest property]: https://github.com/opencontainers/image-spec/blob/main/descriptor.md#digests
  9885. // [Example Image Manifest]: https://github.com/opencontainers/image-spec/blob/main/manifest.md#example-image-manifest
  9886. OCIManifestDigestKey = attribute.Key("oci.manifest.digest")
  9887. )
  9888. // OCIManifestDigest returns an attribute KeyValue conforming to the
  9889. // "oci.manifest.digest" semantic conventions. It represents the digest of the
  9890. // OCI image manifest. For container images specifically is the digest by which
  9891. // the container image is known.
  9892. func OCIManifestDigest(val string) attribute.KeyValue {
  9893. return OCIManifestDigestKey.String(val)
  9894. }
  9895. // Namespace: openai
  9896. const (
  9897. // OpenAIRequestServiceTierKey is the attribute Key conforming to the
  9898. // "openai.request.service_tier" semantic conventions. It represents the service
  9899. // tier requested. May be a specific tier, default, or auto.
  9900. //
  9901. // Type: Enum
  9902. // RequirementLevel: Recommended
  9903. // Stability: Development
  9904. //
  9905. // Examples: "auto", "default"
  9906. OpenAIRequestServiceTierKey = attribute.Key("openai.request.service_tier")
  9907. // OpenAIResponseServiceTierKey is the attribute Key conforming to the
  9908. // "openai.response.service_tier" semantic conventions. It represents the
  9909. // service tier used for the response.
  9910. //
  9911. // Type: string
  9912. // RequirementLevel: Recommended
  9913. // Stability: Development
  9914. //
  9915. // Examples: "scale", "default"
  9916. OpenAIResponseServiceTierKey = attribute.Key("openai.response.service_tier")
  9917. // OpenAIResponseSystemFingerprintKey is the attribute Key conforming to the
  9918. // "openai.response.system_fingerprint" semantic conventions. It represents a
  9919. // fingerprint to track any eventual change in the Generative AI environment.
  9920. //
  9921. // Type: string
  9922. // RequirementLevel: Recommended
  9923. // Stability: Development
  9924. //
  9925. // Examples: "fp_44709d6fcb"
  9926. OpenAIResponseSystemFingerprintKey = attribute.Key("openai.response.system_fingerprint")
  9927. )
  9928. // OpenAIResponseServiceTier returns an attribute KeyValue conforming to the
  9929. // "openai.response.service_tier" semantic conventions. It represents the service
  9930. // tier used for the response.
  9931. func OpenAIResponseServiceTier(val string) attribute.KeyValue {
  9932. return OpenAIResponseServiceTierKey.String(val)
  9933. }
  9934. // OpenAIResponseSystemFingerprint returns an attribute KeyValue conforming to
  9935. // the "openai.response.system_fingerprint" semantic conventions. It represents a
  9936. // fingerprint to track any eventual change in the Generative AI environment.
  9937. func OpenAIResponseSystemFingerprint(val string) attribute.KeyValue {
  9938. return OpenAIResponseSystemFingerprintKey.String(val)
  9939. }
  9940. // Enum values for openai.request.service_tier
  9941. var (
  9942. // The system will utilize scale tier credits until they are exhausted.
  9943. // Stability: development
  9944. OpenAIRequestServiceTierAuto = OpenAIRequestServiceTierKey.String("auto")
  9945. // The system will utilize the default scale tier.
  9946. // Stability: development
  9947. OpenAIRequestServiceTierDefault = OpenAIRequestServiceTierKey.String("default")
  9948. )
  9949. // Namespace: opentracing
  9950. const (
  9951. // OpenTracingRefTypeKey is the attribute Key conforming to the
  9952. // "opentracing.ref_type" semantic conventions. It represents the parent-child
  9953. // Reference type.
  9954. //
  9955. // Type: Enum
  9956. // RequirementLevel: Recommended
  9957. // Stability: Development
  9958. //
  9959. // Examples:
  9960. // Note: The causal relationship between a child Span and a parent Span.
  9961. OpenTracingRefTypeKey = attribute.Key("opentracing.ref_type")
  9962. )
  9963. // Enum values for opentracing.ref_type
  9964. var (
  9965. // The parent Span depends on the child Span in some capacity
  9966. // Stability: development
  9967. OpenTracingRefTypeChildOf = OpenTracingRefTypeKey.String("child_of")
  9968. // The parent Span doesn't depend in any way on the result of the child Span
  9969. // Stability: development
  9970. OpenTracingRefTypeFollowsFrom = OpenTracingRefTypeKey.String("follows_from")
  9971. )
  9972. // Namespace: os
  9973. const (
  9974. // OSBuildIDKey is the attribute Key conforming to the "os.build_id" semantic
  9975. // conventions. It represents the unique identifier for a particular build or
  9976. // compilation of the operating system.
  9977. //
  9978. // Type: string
  9979. // RequirementLevel: Recommended
  9980. // Stability: Development
  9981. //
  9982. // Examples: "TQ3C.230805.001.B2", "20E247", "22621"
  9983. OSBuildIDKey = attribute.Key("os.build_id")
  9984. // OSDescriptionKey is the attribute Key conforming to the "os.description"
  9985. // semantic conventions. It represents the human readable (not intended to be
  9986. // parsed) OS version information, like e.g. reported by `ver` or
  9987. // `lsb_release -a` commands.
  9988. //
  9989. // Type: string
  9990. // RequirementLevel: Recommended
  9991. // Stability: Development
  9992. //
  9993. // Examples: "Microsoft Windows [Version 10.0.18363.778]", "Ubuntu 18.04.1 LTS"
  9994. OSDescriptionKey = attribute.Key("os.description")
  9995. // OSNameKey is the attribute Key conforming to the "os.name" semantic
  9996. // conventions. It represents the human readable operating system name.
  9997. //
  9998. // Type: string
  9999. // RequirementLevel: Recommended
  10000. // Stability: Development
  10001. //
  10002. // Examples: "iOS", "Android", "Ubuntu"
  10003. OSNameKey = attribute.Key("os.name")
  10004. // OSTypeKey is the attribute Key conforming to the "os.type" semantic
  10005. // conventions. It represents the operating system type.
  10006. //
  10007. // Type: Enum
  10008. // RequirementLevel: Recommended
  10009. // Stability: Development
  10010. //
  10011. // Examples:
  10012. OSTypeKey = attribute.Key("os.type")
  10013. // OSVersionKey is the attribute Key conforming to the "os.version" semantic
  10014. // conventions. It represents the version string of the operating system as
  10015. // defined in [Version Attributes].
  10016. //
  10017. // Type: string
  10018. // RequirementLevel: Recommended
  10019. // Stability: Development
  10020. //
  10021. // Examples: "14.2.1", "18.04.1"
  10022. //
  10023. // [Version Attributes]: /docs/resource/README.md#version-attributes
  10024. OSVersionKey = attribute.Key("os.version")
  10025. )
  10026. // OSBuildID returns an attribute KeyValue conforming to the "os.build_id"
  10027. // semantic conventions. It represents the unique identifier for a particular
  10028. // build or compilation of the operating system.
  10029. func OSBuildID(val string) attribute.KeyValue {
  10030. return OSBuildIDKey.String(val)
  10031. }
  10032. // OSDescription returns an attribute KeyValue conforming to the "os.description"
  10033. // semantic conventions. It represents the human readable (not intended to be
  10034. // parsed) OS version information, like e.g. reported by `ver` or
  10035. // `lsb_release -a` commands.
  10036. func OSDescription(val string) attribute.KeyValue {
  10037. return OSDescriptionKey.String(val)
  10038. }
  10039. // OSName returns an attribute KeyValue conforming to the "os.name" semantic
  10040. // conventions. It represents the human readable operating system name.
  10041. func OSName(val string) attribute.KeyValue {
  10042. return OSNameKey.String(val)
  10043. }
  10044. // OSVersion returns an attribute KeyValue conforming to the "os.version"
  10045. // semantic conventions. It represents the version string of the operating system
  10046. // as defined in [Version Attributes].
  10047. //
  10048. // [Version Attributes]: /docs/resource/README.md#version-attributes
  10049. func OSVersion(val string) attribute.KeyValue {
  10050. return OSVersionKey.String(val)
  10051. }
  10052. // Enum values for os.type
  10053. var (
  10054. // Microsoft Windows
  10055. // Stability: development
  10056. OSTypeWindows = OSTypeKey.String("windows")
  10057. // Linux
  10058. // Stability: development
  10059. OSTypeLinux = OSTypeKey.String("linux")
  10060. // Apple Darwin
  10061. // Stability: development
  10062. OSTypeDarwin = OSTypeKey.String("darwin")
  10063. // FreeBSD
  10064. // Stability: development
  10065. OSTypeFreeBSD = OSTypeKey.String("freebsd")
  10066. // NetBSD
  10067. // Stability: development
  10068. OSTypeNetBSD = OSTypeKey.String("netbsd")
  10069. // OpenBSD
  10070. // Stability: development
  10071. OSTypeOpenBSD = OSTypeKey.String("openbsd")
  10072. // DragonFly BSD
  10073. // Stability: development
  10074. OSTypeDragonflyBSD = OSTypeKey.String("dragonflybsd")
  10075. // HP-UX (Hewlett Packard Unix)
  10076. // Stability: development
  10077. OSTypeHPUX = OSTypeKey.String("hpux")
  10078. // AIX (Advanced Interactive eXecutive)
  10079. // Stability: development
  10080. OSTypeAIX = OSTypeKey.String("aix")
  10081. // SunOS, Oracle Solaris
  10082. // Stability: development
  10083. OSTypeSolaris = OSTypeKey.String("solaris")
  10084. // IBM z/OS
  10085. // Stability: development
  10086. OSTypeZOS = OSTypeKey.String("zos")
  10087. )
  10088. // Namespace: otel
  10089. const (
  10090. // OTelComponentNameKey is the attribute Key conforming to the
  10091. // "otel.component.name" semantic conventions. It represents a name uniquely
  10092. // identifying the instance of the OpenTelemetry component within its containing
  10093. // SDK instance.
  10094. //
  10095. // Type: string
  10096. // RequirementLevel: Recommended
  10097. // Stability: Development
  10098. //
  10099. // Examples: "otlp_grpc_span_exporter/0", "custom-name"
  10100. // Note: Implementations SHOULD ensure a low cardinality for this attribute,
  10101. // even across application or SDK restarts.
  10102. // E.g. implementations MUST NOT use UUIDs as values for this attribute.
  10103. //
  10104. // Implementations MAY achieve these goals by following a
  10105. // `<otel.component.type>/<instance-counter>` pattern, e.g.
  10106. // `batching_span_processor/0`.
  10107. // Hereby `otel.component.type` refers to the corresponding attribute value of
  10108. // the component.
  10109. //
  10110. // The value of `instance-counter` MAY be automatically assigned by the
  10111. // component and uniqueness within the enclosing SDK instance MUST be
  10112. // guaranteed.
  10113. // For example, `<instance-counter>` MAY be implemented by using a monotonically
  10114. // increasing counter (starting with `0`), which is incremented every time an
  10115. // instance of the given component type is started.
  10116. //
  10117. // With this implementation, for example the first Batching Span Processor would
  10118. // have `batching_span_processor/0`
  10119. // as `otel.component.name`, the second one `batching_span_processor/1` and so
  10120. // on.
  10121. // These values will therefore be reused in the case of an application restart.
  10122. OTelComponentNameKey = attribute.Key("otel.component.name")
  10123. // OTelComponentTypeKey is the attribute Key conforming to the
  10124. // "otel.component.type" semantic conventions. It represents a name identifying
  10125. // the type of the OpenTelemetry component.
  10126. //
  10127. // Type: Enum
  10128. // RequirementLevel: Recommended
  10129. // Stability: Development
  10130. //
  10131. // Examples: "batching_span_processor", "com.example.MySpanExporter"
  10132. // Note: If none of the standardized values apply, implementations SHOULD use
  10133. // the language-defined name of the type.
  10134. // E.g. for Java the fully qualified classname SHOULD be used in this case.
  10135. OTelComponentTypeKey = attribute.Key("otel.component.type")
  10136. // OTelScopeNameKey is the attribute Key conforming to the "otel.scope.name"
  10137. // semantic conventions. It represents the name of the instrumentation scope - (
  10138. // `InstrumentationScope.Name` in OTLP).
  10139. //
  10140. // Type: string
  10141. // RequirementLevel: Recommended
  10142. // Stability: Stable
  10143. //
  10144. // Examples: "io.opentelemetry.contrib.mongodb"
  10145. OTelScopeNameKey = attribute.Key("otel.scope.name")
  10146. // OTelScopeSchemaURLKey is the attribute Key conforming to the
  10147. // "otel.scope.schema_url" semantic conventions. It represents the schema URL of
  10148. // the instrumentation scope.
  10149. //
  10150. // Type: string
  10151. // RequirementLevel: Recommended
  10152. // Stability: Development
  10153. //
  10154. // Examples: "https://opentelemetry.io/schemas/1.31.0"
  10155. OTelScopeSchemaURLKey = attribute.Key("otel.scope.schema_url")
  10156. // OTelScopeVersionKey is the attribute Key conforming to the
  10157. // "otel.scope.version" semantic conventions. It represents the version of the
  10158. // instrumentation scope - (`InstrumentationScope.Version` in OTLP).
  10159. //
  10160. // Type: string
  10161. // RequirementLevel: Recommended
  10162. // Stability: Stable
  10163. //
  10164. // Examples: "1.0.0"
  10165. OTelScopeVersionKey = attribute.Key("otel.scope.version")
  10166. // OTelSpanParentOriginKey is the attribute Key conforming to the
  10167. // "otel.span.parent.origin" semantic conventions. It represents the determines
  10168. // whether the span has a parent span, and if so,
  10169. // [whether it is a remote parent].
  10170. //
  10171. // Type: Enum
  10172. // RequirementLevel: Recommended
  10173. // Stability: Development
  10174. //
  10175. // Examples:
  10176. //
  10177. // [whether it is a remote parent]: https://opentelemetry.io/docs/specs/otel/trace/api/#isremote
  10178. OTelSpanParentOriginKey = attribute.Key("otel.span.parent.origin")
  10179. // OTelSpanSamplingResultKey is the attribute Key conforming to the
  10180. // "otel.span.sampling_result" semantic conventions. It represents the result
  10181. // value of the sampler for this span.
  10182. //
  10183. // Type: Enum
  10184. // RequirementLevel: Recommended
  10185. // Stability: Development
  10186. //
  10187. // Examples:
  10188. OTelSpanSamplingResultKey = attribute.Key("otel.span.sampling_result")
  10189. // OTelStatusCodeKey is the attribute Key conforming to the "otel.status_code"
  10190. // semantic conventions. It represents the name of the code, either "OK" or
  10191. // "ERROR". MUST NOT be set if the status code is UNSET.
  10192. //
  10193. // Type: Enum
  10194. // RequirementLevel: Recommended
  10195. // Stability: Stable
  10196. //
  10197. // Examples:
  10198. OTelStatusCodeKey = attribute.Key("otel.status_code")
  10199. // OTelStatusDescriptionKey is the attribute Key conforming to the
  10200. // "otel.status_description" semantic conventions. It represents the description
  10201. // of the Status if it has a value, otherwise not set.
  10202. //
  10203. // Type: string
  10204. // RequirementLevel: Recommended
  10205. // Stability: Stable
  10206. //
  10207. // Examples: "resource not found"
  10208. OTelStatusDescriptionKey = attribute.Key("otel.status_description")
  10209. )
  10210. // OTelComponentName returns an attribute KeyValue conforming to the
  10211. // "otel.component.name" semantic conventions. It represents a name uniquely
  10212. // identifying the instance of the OpenTelemetry component within its containing
  10213. // SDK instance.
  10214. func OTelComponentName(val string) attribute.KeyValue {
  10215. return OTelComponentNameKey.String(val)
  10216. }
  10217. // OTelScopeName returns an attribute KeyValue conforming to the
  10218. // "otel.scope.name" semantic conventions. It represents the name of the
  10219. // instrumentation scope - (`InstrumentationScope.Name` in OTLP).
  10220. func OTelScopeName(val string) attribute.KeyValue {
  10221. return OTelScopeNameKey.String(val)
  10222. }
  10223. // OTelScopeSchemaURL returns an attribute KeyValue conforming to the
  10224. // "otel.scope.schema_url" semantic conventions. It represents the schema URL of
  10225. // the instrumentation scope.
  10226. func OTelScopeSchemaURL(val string) attribute.KeyValue {
  10227. return OTelScopeSchemaURLKey.String(val)
  10228. }
  10229. // OTelScopeVersion returns an attribute KeyValue conforming to the
  10230. // "otel.scope.version" semantic conventions. It represents the version of the
  10231. // instrumentation scope - (`InstrumentationScope.Version` in OTLP).
  10232. func OTelScopeVersion(val string) attribute.KeyValue {
  10233. return OTelScopeVersionKey.String(val)
  10234. }
  10235. // OTelStatusDescription returns an attribute KeyValue conforming to the
  10236. // "otel.status_description" semantic conventions. It represents the description
  10237. // of the Status if it has a value, otherwise not set.
  10238. func OTelStatusDescription(val string) attribute.KeyValue {
  10239. return OTelStatusDescriptionKey.String(val)
  10240. }
  10241. // Enum values for otel.component.type
  10242. var (
  10243. // The builtin SDK batching span processor
  10244. //
  10245. // Stability: development
  10246. OTelComponentTypeBatchingSpanProcessor = OTelComponentTypeKey.String("batching_span_processor")
  10247. // The builtin SDK simple span processor
  10248. //
  10249. // Stability: development
  10250. OTelComponentTypeSimpleSpanProcessor = OTelComponentTypeKey.String("simple_span_processor")
  10251. // The builtin SDK batching log record processor
  10252. //
  10253. // Stability: development
  10254. OTelComponentTypeBatchingLogProcessor = OTelComponentTypeKey.String("batching_log_processor")
  10255. // The builtin SDK simple log record processor
  10256. //
  10257. // Stability: development
  10258. OTelComponentTypeSimpleLogProcessor = OTelComponentTypeKey.String("simple_log_processor")
  10259. // OTLP span exporter over gRPC with protobuf serialization
  10260. //
  10261. // Stability: development
  10262. OTelComponentTypeOtlpGRPCSpanExporter = OTelComponentTypeKey.String("otlp_grpc_span_exporter")
  10263. // OTLP span exporter over HTTP with protobuf serialization
  10264. //
  10265. // Stability: development
  10266. OTelComponentTypeOtlpHTTPSpanExporter = OTelComponentTypeKey.String("otlp_http_span_exporter")
  10267. // OTLP span exporter over HTTP with JSON serialization
  10268. //
  10269. // Stability: development
  10270. OTelComponentTypeOtlpHTTPJSONSpanExporter = OTelComponentTypeKey.String("otlp_http_json_span_exporter")
  10271. // Zipkin span exporter over HTTP
  10272. //
  10273. // Stability: development
  10274. OTelComponentTypeZipkinHTTPSpanExporter = OTelComponentTypeKey.String("zipkin_http_span_exporter")
  10275. // OTLP log record exporter over gRPC with protobuf serialization
  10276. //
  10277. // Stability: development
  10278. OTelComponentTypeOtlpGRPCLogExporter = OTelComponentTypeKey.String("otlp_grpc_log_exporter")
  10279. // OTLP log record exporter over HTTP with protobuf serialization
  10280. //
  10281. // Stability: development
  10282. OTelComponentTypeOtlpHTTPLogExporter = OTelComponentTypeKey.String("otlp_http_log_exporter")
  10283. // OTLP log record exporter over HTTP with JSON serialization
  10284. //
  10285. // Stability: development
  10286. OTelComponentTypeOtlpHTTPJSONLogExporter = OTelComponentTypeKey.String("otlp_http_json_log_exporter")
  10287. // The builtin SDK periodically exporting metric reader
  10288. //
  10289. // Stability: development
  10290. OTelComponentTypePeriodicMetricReader = OTelComponentTypeKey.String("periodic_metric_reader")
  10291. // OTLP metric exporter over gRPC with protobuf serialization
  10292. //
  10293. // Stability: development
  10294. OTelComponentTypeOtlpGRPCMetricExporter = OTelComponentTypeKey.String("otlp_grpc_metric_exporter")
  10295. // OTLP metric exporter over HTTP with protobuf serialization
  10296. //
  10297. // Stability: development
  10298. OTelComponentTypeOtlpHTTPMetricExporter = OTelComponentTypeKey.String("otlp_http_metric_exporter")
  10299. // OTLP metric exporter over HTTP with JSON serialization
  10300. //
  10301. // Stability: development
  10302. OTelComponentTypeOtlpHTTPJSONMetricExporter = OTelComponentTypeKey.String("otlp_http_json_metric_exporter")
  10303. // Prometheus metric exporter over HTTP with the default text-based format
  10304. //
  10305. // Stability: development
  10306. OTelComponentTypePrometheusHTTPTextMetricExporter = OTelComponentTypeKey.String("prometheus_http_text_metric_exporter")
  10307. )
  10308. // Enum values for otel.span.parent.origin
  10309. var (
  10310. // The span does not have a parent, it is a root span
  10311. // Stability: development
  10312. OTelSpanParentOriginNone = OTelSpanParentOriginKey.String("none")
  10313. // The span has a parent and the parent's span context [isRemote()] is false
  10314. // Stability: development
  10315. //
  10316. // [isRemote()]: https://opentelemetry.io/docs/specs/otel/trace/api/#isremote
  10317. OTelSpanParentOriginLocal = OTelSpanParentOriginKey.String("local")
  10318. // The span has a parent and the parent's span context [isRemote()] is true
  10319. // Stability: development
  10320. //
  10321. // [isRemote()]: https://opentelemetry.io/docs/specs/otel/trace/api/#isremote
  10322. OTelSpanParentOriginRemote = OTelSpanParentOriginKey.String("remote")
  10323. )
  10324. // Enum values for otel.span.sampling_result
  10325. var (
  10326. // The span is not sampled and not recording
  10327. // Stability: development
  10328. OTelSpanSamplingResultDrop = OTelSpanSamplingResultKey.String("DROP")
  10329. // The span is not sampled, but recording
  10330. // Stability: development
  10331. OTelSpanSamplingResultRecordOnly = OTelSpanSamplingResultKey.String("RECORD_ONLY")
  10332. // The span is sampled and recording
  10333. // Stability: development
  10334. OTelSpanSamplingResultRecordAndSample = OTelSpanSamplingResultKey.String("RECORD_AND_SAMPLE")
  10335. )
  10336. // Enum values for otel.status_code
  10337. var (
  10338. // The operation has been validated by an Application developer or Operator to
  10339. // have completed successfully.
  10340. // Stability: stable
  10341. OTelStatusCodeOk = OTelStatusCodeKey.String("OK")
  10342. // The operation contains an error.
  10343. // Stability: stable
  10344. OTelStatusCodeError = OTelStatusCodeKey.String("ERROR")
  10345. )
  10346. // Namespace: peer
  10347. const (
  10348. // PeerServiceKey is the attribute Key conforming to the "peer.service" semantic
  10349. // conventions. It represents the [`service.name`] of the remote service. SHOULD
  10350. // be equal to the actual `service.name` resource attribute of the remote
  10351. // service if any.
  10352. //
  10353. // Type: string
  10354. // RequirementLevel: Recommended
  10355. // Stability: Development
  10356. //
  10357. // Examples: AuthTokenCache
  10358. //
  10359. // [`service.name`]: /docs/resource/README.md#service
  10360. PeerServiceKey = attribute.Key("peer.service")
  10361. )
  10362. // PeerService returns an attribute KeyValue conforming to the "peer.service"
  10363. // semantic conventions. It represents the [`service.name`] of the remote
  10364. // service. SHOULD be equal to the actual `service.name` resource attribute of
  10365. // the remote service if any.
  10366. //
  10367. // [`service.name`]: /docs/resource/README.md#service
  10368. func PeerService(val string) attribute.KeyValue {
  10369. return PeerServiceKey.String(val)
  10370. }
  10371. // Namespace: process
  10372. const (
  10373. // ProcessArgsCountKey is the attribute Key conforming to the
  10374. // "process.args_count" semantic conventions. It represents the length of the
  10375. // process.command_args array.
  10376. //
  10377. // Type: int
  10378. // RequirementLevel: Recommended
  10379. // Stability: Development
  10380. //
  10381. // Examples: 4
  10382. // Note: This field can be useful for querying or performing bucket analysis on
  10383. // how many arguments were provided to start a process. More arguments may be an
  10384. // indication of suspicious activity.
  10385. ProcessArgsCountKey = attribute.Key("process.args_count")
  10386. // ProcessCommandKey is the attribute Key conforming to the "process.command"
  10387. // semantic conventions. It represents the command used to launch the process
  10388. // (i.e. the command name). On Linux based systems, can be set to the zeroth
  10389. // string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter
  10390. // extracted from `GetCommandLineW`.
  10391. //
  10392. // Type: string
  10393. // RequirementLevel: Recommended
  10394. // Stability: Development
  10395. //
  10396. // Examples: "cmd/otelcol"
  10397. ProcessCommandKey = attribute.Key("process.command")
  10398. // ProcessCommandArgsKey is the attribute Key conforming to the
  10399. // "process.command_args" semantic conventions. It represents the all the
  10400. // command arguments (including the command/executable itself) as received by
  10401. // the process. On Linux-based systems (and some other Unixoid systems
  10402. // supporting procfs), can be set according to the list of null-delimited
  10403. // strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this
  10404. // would be the full argv vector passed to `main`. SHOULD NOT be collected by
  10405. // default unless there is sanitization that excludes sensitive data.
  10406. //
  10407. // Type: string[]
  10408. // RequirementLevel: Recommended
  10409. // Stability: Development
  10410. //
  10411. // Examples: "cmd/otecol", "--config=config.yaml"
  10412. ProcessCommandArgsKey = attribute.Key("process.command_args")
  10413. // ProcessCommandLineKey is the attribute Key conforming to the
  10414. // "process.command_line" semantic conventions. It represents the full command
  10415. // used to launch the process as a single string representing the full command.
  10416. // On Windows, can be set to the result of `GetCommandLineW`. Do not set this if
  10417. // you have to assemble it just for monitoring; use `process.command_args`
  10418. // instead. SHOULD NOT be collected by default unless there is sanitization that
  10419. // excludes sensitive data.
  10420. //
  10421. // Type: string
  10422. // RequirementLevel: Recommended
  10423. // Stability: Development
  10424. //
  10425. // Examples: "C:\cmd\otecol --config="my directory\config.yaml""
  10426. ProcessCommandLineKey = attribute.Key("process.command_line")
  10427. // ProcessContextSwitchTypeKey is the attribute Key conforming to the
  10428. // "process.context_switch_type" semantic conventions. It represents the
  10429. // specifies whether the context switches for this data point were voluntary or
  10430. // involuntary.
  10431. //
  10432. // Type: Enum
  10433. // RequirementLevel: Recommended
  10434. // Stability: Development
  10435. //
  10436. // Examples:
  10437. ProcessContextSwitchTypeKey = attribute.Key("process.context_switch_type")
  10438. // ProcessCreationTimeKey is the attribute Key conforming to the
  10439. // "process.creation.time" semantic conventions. It represents the date and time
  10440. // the process was created, in ISO 8601 format.
  10441. //
  10442. // Type: string
  10443. // RequirementLevel: Recommended
  10444. // Stability: Development
  10445. //
  10446. // Examples: "2023-11-21T09:25:34.853Z"
  10447. ProcessCreationTimeKey = attribute.Key("process.creation.time")
  10448. // ProcessExecutableBuildIDGNUKey is the attribute Key conforming to the
  10449. // "process.executable.build_id.gnu" semantic conventions. It represents the GNU
  10450. // build ID as found in the `.note.gnu.build-id` ELF section (hex string).
  10451. //
  10452. // Type: string
  10453. // RequirementLevel: Recommended
  10454. // Stability: Development
  10455. //
  10456. // Examples: "c89b11207f6479603b0d49bf291c092c2b719293"
  10457. ProcessExecutableBuildIDGNUKey = attribute.Key("process.executable.build_id.gnu")
  10458. // ProcessExecutableBuildIDGoKey is the attribute Key conforming to the
  10459. // "process.executable.build_id.go" semantic conventions. It represents the Go
  10460. // build ID as retrieved by `go tool buildid <go executable>`.
  10461. //
  10462. // Type: string
  10463. // RequirementLevel: Recommended
  10464. // Stability: Development
  10465. //
  10466. // Examples:
  10467. // "foh3mEXu7BLZjsN9pOwG/kATcXlYVCDEFouRMQed_/WwRFB1hPo9LBkekthSPG/x8hMC8emW2cCjXD0_1aY"
  10468. ProcessExecutableBuildIDGoKey = attribute.Key("process.executable.build_id.go")
  10469. // ProcessExecutableBuildIDHtlhashKey is the attribute Key conforming to the
  10470. // "process.executable.build_id.htlhash" semantic conventions. It represents the
  10471. // profiling specific build ID for executables. See the OTel specification for
  10472. // Profiles for more information.
  10473. //
  10474. // Type: string
  10475. // RequirementLevel: Recommended
  10476. // Stability: Development
  10477. //
  10478. // Examples: "600DCAFE4A110000F2BF38C493F5FB92"
  10479. ProcessExecutableBuildIDHtlhashKey = attribute.Key("process.executable.build_id.htlhash")
  10480. // ProcessExecutableNameKey is the attribute Key conforming to the
  10481. // "process.executable.name" semantic conventions. It represents the name of the
  10482. // process executable. On Linux based systems, this SHOULD be set to the base
  10483. // name of the target of `/proc/[pid]/exe`. On Windows, this SHOULD be set to
  10484. // the base name of `GetProcessImageFileNameW`.
  10485. //
  10486. // Type: string
  10487. // RequirementLevel: Recommended
  10488. // Stability: Development
  10489. //
  10490. // Examples: "otelcol"
  10491. ProcessExecutableNameKey = attribute.Key("process.executable.name")
  10492. // ProcessExecutablePathKey is the attribute Key conforming to the
  10493. // "process.executable.path" semantic conventions. It represents the full path
  10494. // to the process executable. On Linux based systems, can be set to the target
  10495. // of `proc/[pid]/exe`. On Windows, can be set to the result of
  10496. // `GetProcessImageFileNameW`.
  10497. //
  10498. // Type: string
  10499. // RequirementLevel: Recommended
  10500. // Stability: Development
  10501. //
  10502. // Examples: "/usr/bin/cmd/otelcol"
  10503. ProcessExecutablePathKey = attribute.Key("process.executable.path")
  10504. // ProcessExitCodeKey is the attribute Key conforming to the "process.exit.code"
  10505. // semantic conventions. It represents the exit code of the process.
  10506. //
  10507. // Type: int
  10508. // RequirementLevel: Recommended
  10509. // Stability: Development
  10510. //
  10511. // Examples: 127
  10512. ProcessExitCodeKey = attribute.Key("process.exit.code")
  10513. // ProcessExitTimeKey is the attribute Key conforming to the "process.exit.time"
  10514. // semantic conventions. It represents the date and time the process exited, in
  10515. // ISO 8601 format.
  10516. //
  10517. // Type: string
  10518. // RequirementLevel: Recommended
  10519. // Stability: Development
  10520. //
  10521. // Examples: "2023-11-21T09:26:12.315Z"
  10522. ProcessExitTimeKey = attribute.Key("process.exit.time")
  10523. // ProcessGroupLeaderPIDKey is the attribute Key conforming to the
  10524. // "process.group_leader.pid" semantic conventions. It represents the PID of the
  10525. // process's group leader. This is also the process group ID (PGID) of the
  10526. // process.
  10527. //
  10528. // Type: int
  10529. // RequirementLevel: Recommended
  10530. // Stability: Development
  10531. //
  10532. // Examples: 23
  10533. ProcessGroupLeaderPIDKey = attribute.Key("process.group_leader.pid")
  10534. // ProcessInteractiveKey is the attribute Key conforming to the
  10535. // "process.interactive" semantic conventions. It represents the whether the
  10536. // process is connected to an interactive shell.
  10537. //
  10538. // Type: boolean
  10539. // RequirementLevel: Recommended
  10540. // Stability: Development
  10541. //
  10542. // Examples:
  10543. ProcessInteractiveKey = attribute.Key("process.interactive")
  10544. // ProcessLinuxCgroupKey is the attribute Key conforming to the
  10545. // "process.linux.cgroup" semantic conventions. It represents the control group
  10546. // associated with the process.
  10547. //
  10548. // Type: string
  10549. // RequirementLevel: Recommended
  10550. // Stability: Development
  10551. //
  10552. // Examples: "1:name=systemd:/user.slice/user-1000.slice/session-3.scope",
  10553. // "0::/user.slice/user-1000.slice/user@1000.service/tmux-spawn-0267755b-4639-4a27-90ed-f19f88e53748.scope"
  10554. // Note: Control groups (cgroups) are a kernel feature used to organize and
  10555. // manage process resources. This attribute provides the path(s) to the
  10556. // cgroup(s) associated with the process, which should match the contents of the
  10557. // [/proc/[PID]/cgroup] file.
  10558. //
  10559. // [/proc/[PID]/cgroup]: https://man7.org/linux/man-pages/man7/cgroups.7.html
  10560. ProcessLinuxCgroupKey = attribute.Key("process.linux.cgroup")
  10561. // ProcessOwnerKey is the attribute Key conforming to the "process.owner"
  10562. // semantic conventions. It represents the username of the user that owns the
  10563. // process.
  10564. //
  10565. // Type: string
  10566. // RequirementLevel: Recommended
  10567. // Stability: Development
  10568. //
  10569. // Examples: "root"
  10570. ProcessOwnerKey = attribute.Key("process.owner")
  10571. // ProcessPagingFaultTypeKey is the attribute Key conforming to the
  10572. // "process.paging.fault_type" semantic conventions. It represents the type of
  10573. // page fault for this data point. Type `major` is for major/hard page faults,
  10574. // and `minor` is for minor/soft page faults.
  10575. //
  10576. // Type: Enum
  10577. // RequirementLevel: Recommended
  10578. // Stability: Development
  10579. //
  10580. // Examples:
  10581. ProcessPagingFaultTypeKey = attribute.Key("process.paging.fault_type")
  10582. // ProcessParentPIDKey is the attribute Key conforming to the
  10583. // "process.parent_pid" semantic conventions. It represents the parent Process
  10584. // identifier (PPID).
  10585. //
  10586. // Type: int
  10587. // RequirementLevel: Recommended
  10588. // Stability: Development
  10589. //
  10590. // Examples: 111
  10591. ProcessParentPIDKey = attribute.Key("process.parent_pid")
  10592. // ProcessPIDKey is the attribute Key conforming to the "process.pid" semantic
  10593. // conventions. It represents the process identifier (PID).
  10594. //
  10595. // Type: int
  10596. // RequirementLevel: Recommended
  10597. // Stability: Development
  10598. //
  10599. // Examples: 1234
  10600. ProcessPIDKey = attribute.Key("process.pid")
  10601. // ProcessRealUserIDKey is the attribute Key conforming to the
  10602. // "process.real_user.id" semantic conventions. It represents the real user ID
  10603. // (RUID) of the process.
  10604. //
  10605. // Type: int
  10606. // RequirementLevel: Recommended
  10607. // Stability: Development
  10608. //
  10609. // Examples: 1000
  10610. ProcessRealUserIDKey = attribute.Key("process.real_user.id")
  10611. // ProcessRealUserNameKey is the attribute Key conforming to the
  10612. // "process.real_user.name" semantic conventions. It represents the username of
  10613. // the real user of the process.
  10614. //
  10615. // Type: string
  10616. // RequirementLevel: Recommended
  10617. // Stability: Development
  10618. //
  10619. // Examples: "operator"
  10620. ProcessRealUserNameKey = attribute.Key("process.real_user.name")
  10621. // ProcessRuntimeDescriptionKey is the attribute Key conforming to the
  10622. // "process.runtime.description" semantic conventions. It represents an
  10623. // additional description about the runtime of the process, for example a
  10624. // specific vendor customization of the runtime environment.
  10625. //
  10626. // Type: string
  10627. // RequirementLevel: Recommended
  10628. // Stability: Development
  10629. //
  10630. // Examples: Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0
  10631. ProcessRuntimeDescriptionKey = attribute.Key("process.runtime.description")
  10632. // ProcessRuntimeNameKey is the attribute Key conforming to the
  10633. // "process.runtime.name" semantic conventions. It represents the name of the
  10634. // runtime of this process.
  10635. //
  10636. // Type: string
  10637. // RequirementLevel: Recommended
  10638. // Stability: Development
  10639. //
  10640. // Examples: "OpenJDK Runtime Environment"
  10641. ProcessRuntimeNameKey = attribute.Key("process.runtime.name")
  10642. // ProcessRuntimeVersionKey is the attribute Key conforming to the
  10643. // "process.runtime.version" semantic conventions. It represents the version of
  10644. // the runtime of this process, as returned by the runtime without modification.
  10645. //
  10646. // Type: string
  10647. // RequirementLevel: Recommended
  10648. // Stability: Development
  10649. //
  10650. // Examples: 14.0.2
  10651. ProcessRuntimeVersionKey = attribute.Key("process.runtime.version")
  10652. // ProcessSavedUserIDKey is the attribute Key conforming to the
  10653. // "process.saved_user.id" semantic conventions. It represents the saved user ID
  10654. // (SUID) of the process.
  10655. //
  10656. // Type: int
  10657. // RequirementLevel: Recommended
  10658. // Stability: Development
  10659. //
  10660. // Examples: 1002
  10661. ProcessSavedUserIDKey = attribute.Key("process.saved_user.id")
  10662. // ProcessSavedUserNameKey is the attribute Key conforming to the
  10663. // "process.saved_user.name" semantic conventions. It represents the username of
  10664. // the saved user.
  10665. //
  10666. // Type: string
  10667. // RequirementLevel: Recommended
  10668. // Stability: Development
  10669. //
  10670. // Examples: "operator"
  10671. ProcessSavedUserNameKey = attribute.Key("process.saved_user.name")
  10672. // ProcessSessionLeaderPIDKey is the attribute Key conforming to the
  10673. // "process.session_leader.pid" semantic conventions. It represents the PID of
  10674. // the process's session leader. This is also the session ID (SID) of the
  10675. // process.
  10676. //
  10677. // Type: int
  10678. // RequirementLevel: Recommended
  10679. // Stability: Development
  10680. //
  10681. // Examples: 14
  10682. ProcessSessionLeaderPIDKey = attribute.Key("process.session_leader.pid")
  10683. // ProcessTitleKey is the attribute Key conforming to the "process.title"
  10684. // semantic conventions. It represents the process title (proctitle).
  10685. //
  10686. // Type: string
  10687. // RequirementLevel: Recommended
  10688. // Stability: Development
  10689. //
  10690. // Examples: "cat /etc/hostname", "xfce4-session", "bash"
  10691. // Note: In many Unix-like systems, process title (proctitle), is the string
  10692. // that represents the name or command line of a running process, displayed by
  10693. // system monitoring tools like ps, top, and htop.
  10694. ProcessTitleKey = attribute.Key("process.title")
  10695. // ProcessUserIDKey is the attribute Key conforming to the "process.user.id"
  10696. // semantic conventions. It represents the effective user ID (EUID) of the
  10697. // process.
  10698. //
  10699. // Type: int
  10700. // RequirementLevel: Recommended
  10701. // Stability: Development
  10702. //
  10703. // Examples: 1001
  10704. ProcessUserIDKey = attribute.Key("process.user.id")
  10705. // ProcessUserNameKey is the attribute Key conforming to the "process.user.name"
  10706. // semantic conventions. It represents the username of the effective user of the
  10707. // process.
  10708. //
  10709. // Type: string
  10710. // RequirementLevel: Recommended
  10711. // Stability: Development
  10712. //
  10713. // Examples: "root"
  10714. ProcessUserNameKey = attribute.Key("process.user.name")
  10715. // ProcessVpidKey is the attribute Key conforming to the "process.vpid" semantic
  10716. // conventions. It represents the virtual process identifier.
  10717. //
  10718. // Type: int
  10719. // RequirementLevel: Recommended
  10720. // Stability: Development
  10721. //
  10722. // Examples: 12
  10723. // Note: The process ID within a PID namespace. This is not necessarily unique
  10724. // across all processes on the host but it is unique within the process
  10725. // namespace that the process exists within.
  10726. ProcessVpidKey = attribute.Key("process.vpid")
  10727. // ProcessWorkingDirectoryKey is the attribute Key conforming to the
  10728. // "process.working_directory" semantic conventions. It represents the working
  10729. // directory of the process.
  10730. //
  10731. // Type: string
  10732. // RequirementLevel: Recommended
  10733. // Stability: Development
  10734. //
  10735. // Examples: "/root"
  10736. ProcessWorkingDirectoryKey = attribute.Key("process.working_directory")
  10737. )
  10738. // ProcessArgsCount returns an attribute KeyValue conforming to the
  10739. // "process.args_count" semantic conventions. It represents the length of the
  10740. // process.command_args array.
  10741. func ProcessArgsCount(val int) attribute.KeyValue {
  10742. return ProcessArgsCountKey.Int(val)
  10743. }
  10744. // ProcessCommand returns an attribute KeyValue conforming to the
  10745. // "process.command" semantic conventions. It represents the command used to
  10746. // launch the process (i.e. the command name). On Linux based systems, can be set
  10747. // to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the
  10748. // first parameter extracted from `GetCommandLineW`.
  10749. func ProcessCommand(val string) attribute.KeyValue {
  10750. return ProcessCommandKey.String(val)
  10751. }
  10752. // ProcessCommandArgs returns an attribute KeyValue conforming to the
  10753. // "process.command_args" semantic conventions. It represents the all the command
  10754. // arguments (including the command/executable itself) as received by the
  10755. // process. On Linux-based systems (and some other Unixoid systems supporting
  10756. // procfs), can be set according to the list of null-delimited strings extracted
  10757. // from `proc/[pid]/cmdline`. For libc-based executables, this would be the full
  10758. // argv vector passed to `main`. SHOULD NOT be collected by default unless there
  10759. // is sanitization that excludes sensitive data.
  10760. func ProcessCommandArgs(val ...string) attribute.KeyValue {
  10761. return ProcessCommandArgsKey.StringSlice(val)
  10762. }
  10763. // ProcessCommandLine returns an attribute KeyValue conforming to the
  10764. // "process.command_line" semantic conventions. It represents the full command
  10765. // used to launch the process as a single string representing the full command.
  10766. // On Windows, can be set to the result of `GetCommandLineW`. Do not set this if
  10767. // you have to assemble it just for monitoring; use `process.command_args`
  10768. // instead. SHOULD NOT be collected by default unless there is sanitization that
  10769. // excludes sensitive data.
  10770. func ProcessCommandLine(val string) attribute.KeyValue {
  10771. return ProcessCommandLineKey.String(val)
  10772. }
  10773. // ProcessCreationTime returns an attribute KeyValue conforming to the
  10774. // "process.creation.time" semantic conventions. It represents the date and time
  10775. // the process was created, in ISO 8601 format.
  10776. func ProcessCreationTime(val string) attribute.KeyValue {
  10777. return ProcessCreationTimeKey.String(val)
  10778. }
  10779. // ProcessEnvironmentVariable returns an attribute KeyValue conforming to the
  10780. // "process.environment_variable" semantic conventions. It represents the process
  10781. // environment variables, `<key>` being the environment variable name, the value
  10782. // being the environment variable value.
  10783. func ProcessEnvironmentVariable(key string, val string) attribute.KeyValue {
  10784. return attribute.String("process.environment_variable."+key, val)
  10785. }
  10786. // ProcessExecutableBuildIDGNU returns an attribute KeyValue conforming to the
  10787. // "process.executable.build_id.gnu" semantic conventions. It represents the GNU
  10788. // build ID as found in the `.note.gnu.build-id` ELF section (hex string).
  10789. func ProcessExecutableBuildIDGNU(val string) attribute.KeyValue {
  10790. return ProcessExecutableBuildIDGNUKey.String(val)
  10791. }
  10792. // ProcessExecutableBuildIDGo returns an attribute KeyValue conforming to the
  10793. // "process.executable.build_id.go" semantic conventions. It represents the Go
  10794. // build ID as retrieved by `go tool buildid <go executable>`.
  10795. func ProcessExecutableBuildIDGo(val string) attribute.KeyValue {
  10796. return ProcessExecutableBuildIDGoKey.String(val)
  10797. }
  10798. // ProcessExecutableBuildIDHtlhash returns an attribute KeyValue conforming to
  10799. // the "process.executable.build_id.htlhash" semantic conventions. It represents
  10800. // the profiling specific build ID for executables. See the OTel specification
  10801. // for Profiles for more information.
  10802. func ProcessExecutableBuildIDHtlhash(val string) attribute.KeyValue {
  10803. return ProcessExecutableBuildIDHtlhashKey.String(val)
  10804. }
  10805. // ProcessExecutableName returns an attribute KeyValue conforming to the
  10806. // "process.executable.name" semantic conventions. It represents the name of the
  10807. // process executable. On Linux based systems, this SHOULD be set to the base
  10808. // name of the target of `/proc/[pid]/exe`. On Windows, this SHOULD be set to the
  10809. // base name of `GetProcessImageFileNameW`.
  10810. func ProcessExecutableName(val string) attribute.KeyValue {
  10811. return ProcessExecutableNameKey.String(val)
  10812. }
  10813. // ProcessExecutablePath returns an attribute KeyValue conforming to the
  10814. // "process.executable.path" semantic conventions. It represents the full path to
  10815. // the process executable. On Linux based systems, can be set to the target of
  10816. // `proc/[pid]/exe`. On Windows, can be set to the result of
  10817. // `GetProcessImageFileNameW`.
  10818. func ProcessExecutablePath(val string) attribute.KeyValue {
  10819. return ProcessExecutablePathKey.String(val)
  10820. }
  10821. // ProcessExitCode returns an attribute KeyValue conforming to the
  10822. // "process.exit.code" semantic conventions. It represents the exit code of the
  10823. // process.
  10824. func ProcessExitCode(val int) attribute.KeyValue {
  10825. return ProcessExitCodeKey.Int(val)
  10826. }
  10827. // ProcessExitTime returns an attribute KeyValue conforming to the
  10828. // "process.exit.time" semantic conventions. It represents the date and time the
  10829. // process exited, in ISO 8601 format.
  10830. func ProcessExitTime(val string) attribute.KeyValue {
  10831. return ProcessExitTimeKey.String(val)
  10832. }
  10833. // ProcessGroupLeaderPID returns an attribute KeyValue conforming to the
  10834. // "process.group_leader.pid" semantic conventions. It represents the PID of the
  10835. // process's group leader. This is also the process group ID (PGID) of the
  10836. // process.
  10837. func ProcessGroupLeaderPID(val int) attribute.KeyValue {
  10838. return ProcessGroupLeaderPIDKey.Int(val)
  10839. }
  10840. // ProcessInteractive returns an attribute KeyValue conforming to the
  10841. // "process.interactive" semantic conventions. It represents the whether the
  10842. // process is connected to an interactive shell.
  10843. func ProcessInteractive(val bool) attribute.KeyValue {
  10844. return ProcessInteractiveKey.Bool(val)
  10845. }
  10846. // ProcessLinuxCgroup returns an attribute KeyValue conforming to the
  10847. // "process.linux.cgroup" semantic conventions. It represents the control group
  10848. // associated with the process.
  10849. func ProcessLinuxCgroup(val string) attribute.KeyValue {
  10850. return ProcessLinuxCgroupKey.String(val)
  10851. }
  10852. // ProcessOwner returns an attribute KeyValue conforming to the "process.owner"
  10853. // semantic conventions. It represents the username of the user that owns the
  10854. // process.
  10855. func ProcessOwner(val string) attribute.KeyValue {
  10856. return ProcessOwnerKey.String(val)
  10857. }
  10858. // ProcessParentPID returns an attribute KeyValue conforming to the
  10859. // "process.parent_pid" semantic conventions. It represents the parent Process
  10860. // identifier (PPID).
  10861. func ProcessParentPID(val int) attribute.KeyValue {
  10862. return ProcessParentPIDKey.Int(val)
  10863. }
  10864. // ProcessPID returns an attribute KeyValue conforming to the "process.pid"
  10865. // semantic conventions. It represents the process identifier (PID).
  10866. func ProcessPID(val int) attribute.KeyValue {
  10867. return ProcessPIDKey.Int(val)
  10868. }
  10869. // ProcessRealUserID returns an attribute KeyValue conforming to the
  10870. // "process.real_user.id" semantic conventions. It represents the real user ID
  10871. // (RUID) of the process.
  10872. func ProcessRealUserID(val int) attribute.KeyValue {
  10873. return ProcessRealUserIDKey.Int(val)
  10874. }
  10875. // ProcessRealUserName returns an attribute KeyValue conforming to the
  10876. // "process.real_user.name" semantic conventions. It represents the username of
  10877. // the real user of the process.
  10878. func ProcessRealUserName(val string) attribute.KeyValue {
  10879. return ProcessRealUserNameKey.String(val)
  10880. }
  10881. // ProcessRuntimeDescription returns an attribute KeyValue conforming to the
  10882. // "process.runtime.description" semantic conventions. It represents an
  10883. // additional description about the runtime of the process, for example a
  10884. // specific vendor customization of the runtime environment.
  10885. func ProcessRuntimeDescription(val string) attribute.KeyValue {
  10886. return ProcessRuntimeDescriptionKey.String(val)
  10887. }
  10888. // ProcessRuntimeName returns an attribute KeyValue conforming to the
  10889. // "process.runtime.name" semantic conventions. It represents the name of the
  10890. // runtime of this process.
  10891. func ProcessRuntimeName(val string) attribute.KeyValue {
  10892. return ProcessRuntimeNameKey.String(val)
  10893. }
  10894. // ProcessRuntimeVersion returns an attribute KeyValue conforming to the
  10895. // "process.runtime.version" semantic conventions. It represents the version of
  10896. // the runtime of this process, as returned by the runtime without modification.
  10897. func ProcessRuntimeVersion(val string) attribute.KeyValue {
  10898. return ProcessRuntimeVersionKey.String(val)
  10899. }
  10900. // ProcessSavedUserID returns an attribute KeyValue conforming to the
  10901. // "process.saved_user.id" semantic conventions. It represents the saved user ID
  10902. // (SUID) of the process.
  10903. func ProcessSavedUserID(val int) attribute.KeyValue {
  10904. return ProcessSavedUserIDKey.Int(val)
  10905. }
  10906. // ProcessSavedUserName returns an attribute KeyValue conforming to the
  10907. // "process.saved_user.name" semantic conventions. It represents the username of
  10908. // the saved user.
  10909. func ProcessSavedUserName(val string) attribute.KeyValue {
  10910. return ProcessSavedUserNameKey.String(val)
  10911. }
  10912. // ProcessSessionLeaderPID returns an attribute KeyValue conforming to the
  10913. // "process.session_leader.pid" semantic conventions. It represents the PID of
  10914. // the process's session leader. This is also the session ID (SID) of the
  10915. // process.
  10916. func ProcessSessionLeaderPID(val int) attribute.KeyValue {
  10917. return ProcessSessionLeaderPIDKey.Int(val)
  10918. }
  10919. // ProcessTitle returns an attribute KeyValue conforming to the "process.title"
  10920. // semantic conventions. It represents the process title (proctitle).
  10921. func ProcessTitle(val string) attribute.KeyValue {
  10922. return ProcessTitleKey.String(val)
  10923. }
  10924. // ProcessUserID returns an attribute KeyValue conforming to the
  10925. // "process.user.id" semantic conventions. It represents the effective user ID
  10926. // (EUID) of the process.
  10927. func ProcessUserID(val int) attribute.KeyValue {
  10928. return ProcessUserIDKey.Int(val)
  10929. }
  10930. // ProcessUserName returns an attribute KeyValue conforming to the
  10931. // "process.user.name" semantic conventions. It represents the username of the
  10932. // effective user of the process.
  10933. func ProcessUserName(val string) attribute.KeyValue {
  10934. return ProcessUserNameKey.String(val)
  10935. }
  10936. // ProcessVpid returns an attribute KeyValue conforming to the "process.vpid"
  10937. // semantic conventions. It represents the virtual process identifier.
  10938. func ProcessVpid(val int) attribute.KeyValue {
  10939. return ProcessVpidKey.Int(val)
  10940. }
  10941. // ProcessWorkingDirectory returns an attribute KeyValue conforming to the
  10942. // "process.working_directory" semantic conventions. It represents the working
  10943. // directory of the process.
  10944. func ProcessWorkingDirectory(val string) attribute.KeyValue {
  10945. return ProcessWorkingDirectoryKey.String(val)
  10946. }
  10947. // Enum values for process.context_switch_type
  10948. var (
  10949. // voluntary
  10950. // Stability: development
  10951. ProcessContextSwitchTypeVoluntary = ProcessContextSwitchTypeKey.String("voluntary")
  10952. // involuntary
  10953. // Stability: development
  10954. ProcessContextSwitchTypeInvoluntary = ProcessContextSwitchTypeKey.String("involuntary")
  10955. )
  10956. // Enum values for process.paging.fault_type
  10957. var (
  10958. // major
  10959. // Stability: development
  10960. ProcessPagingFaultTypeMajor = ProcessPagingFaultTypeKey.String("major")
  10961. // minor
  10962. // Stability: development
  10963. ProcessPagingFaultTypeMinor = ProcessPagingFaultTypeKey.String("minor")
  10964. )
  10965. // Namespace: profile
  10966. const (
  10967. // ProfileFrameTypeKey is the attribute Key conforming to the
  10968. // "profile.frame.type" semantic conventions. It represents the describes the
  10969. // interpreter or compiler of a single frame.
  10970. //
  10971. // Type: Enum
  10972. // RequirementLevel: Recommended
  10973. // Stability: Development
  10974. //
  10975. // Examples: "cpython"
  10976. ProfileFrameTypeKey = attribute.Key("profile.frame.type")
  10977. )
  10978. // Enum values for profile.frame.type
  10979. var (
  10980. // [.NET]
  10981. //
  10982. // Stability: development
  10983. //
  10984. // [.NET]: https://wikipedia.org/wiki/.NET
  10985. ProfileFrameTypeDotnet = ProfileFrameTypeKey.String("dotnet")
  10986. // [JVM]
  10987. //
  10988. // Stability: development
  10989. //
  10990. // [JVM]: https://wikipedia.org/wiki/Java_virtual_machine
  10991. ProfileFrameTypeJVM = ProfileFrameTypeKey.String("jvm")
  10992. // [Kernel]
  10993. //
  10994. // Stability: development
  10995. //
  10996. // [Kernel]: https://wikipedia.org/wiki/Kernel_(operating_system)
  10997. ProfileFrameTypeKernel = ProfileFrameTypeKey.String("kernel")
  10998. // Can be one of but not limited to [C], [C++], [Go] or [Rust]. If possible, a
  10999. // more precise value MUST be used.
  11000. //
  11001. // Stability: development
  11002. //
  11003. // [C]: https://wikipedia.org/wiki/C_(programming_language)
  11004. // [C++]: https://wikipedia.org/wiki/C%2B%2B
  11005. // [Go]: https://wikipedia.org/wiki/Go_(programming_language)
  11006. // [Rust]: https://wikipedia.org/wiki/Rust_(programming_language)
  11007. ProfileFrameTypeNative = ProfileFrameTypeKey.String("native")
  11008. // [Perl]
  11009. //
  11010. // Stability: development
  11011. //
  11012. // [Perl]: https://wikipedia.org/wiki/Perl
  11013. ProfileFrameTypePerl = ProfileFrameTypeKey.String("perl")
  11014. // [PHP]
  11015. //
  11016. // Stability: development
  11017. //
  11018. // [PHP]: https://wikipedia.org/wiki/PHP
  11019. ProfileFrameTypePHP = ProfileFrameTypeKey.String("php")
  11020. // [Python]
  11021. //
  11022. // Stability: development
  11023. //
  11024. // [Python]: https://wikipedia.org/wiki/Python_(programming_language)
  11025. ProfileFrameTypeCpython = ProfileFrameTypeKey.String("cpython")
  11026. // [Ruby]
  11027. //
  11028. // Stability: development
  11029. //
  11030. // [Ruby]: https://wikipedia.org/wiki/Ruby_(programming_language)
  11031. ProfileFrameTypeRuby = ProfileFrameTypeKey.String("ruby")
  11032. // [V8JS]
  11033. //
  11034. // Stability: development
  11035. //
  11036. // [V8JS]: https://wikipedia.org/wiki/V8_(JavaScript_engine)
  11037. ProfileFrameTypeV8JS = ProfileFrameTypeKey.String("v8js")
  11038. // [Erlang]
  11039. //
  11040. // Stability: development
  11041. //
  11042. // [Erlang]: https://en.wikipedia.org/wiki/BEAM_(Erlang_virtual_machine)
  11043. ProfileFrameTypeBeam = ProfileFrameTypeKey.String("beam")
  11044. // [Go],
  11045. //
  11046. // Stability: development
  11047. //
  11048. // [Go]: https://wikipedia.org/wiki/Go_(programming_language)
  11049. ProfileFrameTypeGo = ProfileFrameTypeKey.String("go")
  11050. // [Rust]
  11051. //
  11052. // Stability: development
  11053. //
  11054. // [Rust]: https://wikipedia.org/wiki/Rust_(programming_language)
  11055. ProfileFrameTypeRust = ProfileFrameTypeKey.String("rust")
  11056. )
  11057. // Namespace: rpc
  11058. const (
  11059. // RPCConnectRPCErrorCodeKey is the attribute Key conforming to the
  11060. // "rpc.connect_rpc.error_code" semantic conventions. It represents the
  11061. // [error codes] of the Connect request. Error codes are always string values.
  11062. //
  11063. // Type: Enum
  11064. // RequirementLevel: Recommended
  11065. // Stability: Development
  11066. //
  11067. // Examples:
  11068. //
  11069. // [error codes]: https://connectrpc.com//docs/protocol/#error-codes
  11070. RPCConnectRPCErrorCodeKey = attribute.Key("rpc.connect_rpc.error_code")
  11071. // RPCGRPCStatusCodeKey is the attribute Key conforming to the
  11072. // "rpc.grpc.status_code" semantic conventions. It represents the
  11073. // [numeric status code] of the gRPC request.
  11074. //
  11075. // Type: Enum
  11076. // RequirementLevel: Recommended
  11077. // Stability: Development
  11078. //
  11079. // Examples:
  11080. //
  11081. // [numeric status code]: https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md
  11082. RPCGRPCStatusCodeKey = attribute.Key("rpc.grpc.status_code")
  11083. // RPCJSONRPCErrorCodeKey is the attribute Key conforming to the
  11084. // "rpc.jsonrpc.error_code" semantic conventions. It represents the `error.code`
  11085. // property of response if it is an error response.
  11086. //
  11087. // Type: int
  11088. // RequirementLevel: Recommended
  11089. // Stability: Development
  11090. //
  11091. // Examples: -32700, 100
  11092. RPCJSONRPCErrorCodeKey = attribute.Key("rpc.jsonrpc.error_code")
  11093. // RPCJSONRPCErrorMessageKey is the attribute Key conforming to the
  11094. // "rpc.jsonrpc.error_message" semantic conventions. It represents the
  11095. // `error.message` property of response if it is an error response.
  11096. //
  11097. // Type: string
  11098. // RequirementLevel: Recommended
  11099. // Stability: Development
  11100. //
  11101. // Examples: "Parse error", "User already exists"
  11102. RPCJSONRPCErrorMessageKey = attribute.Key("rpc.jsonrpc.error_message")
  11103. // RPCJSONRPCRequestIDKey is the attribute Key conforming to the
  11104. // "rpc.jsonrpc.request_id" semantic conventions. It represents the `id`
  11105. // property of request or response. Since protocol allows id to be int, string,
  11106. // `null` or missing (for notifications), value is expected to be cast to string
  11107. // for simplicity. Use empty string in case of `null` value. Omit entirely if
  11108. // this is a notification.
  11109. //
  11110. // Type: string
  11111. // RequirementLevel: Recommended
  11112. // Stability: Development
  11113. //
  11114. // Examples: "10", "request-7", ""
  11115. RPCJSONRPCRequestIDKey = attribute.Key("rpc.jsonrpc.request_id")
  11116. // RPCJSONRPCVersionKey is the attribute Key conforming to the
  11117. // "rpc.jsonrpc.version" semantic conventions. It represents the protocol
  11118. // version as in `jsonrpc` property of request/response. Since JSON-RPC 1.0
  11119. // doesn't specify this, the value can be omitted.
  11120. //
  11121. // Type: string
  11122. // RequirementLevel: Recommended
  11123. // Stability: Development
  11124. //
  11125. // Examples: "2.0", "1.0"
  11126. RPCJSONRPCVersionKey = attribute.Key("rpc.jsonrpc.version")
  11127. // RPCMessageCompressedSizeKey is the attribute Key conforming to the
  11128. // "rpc.message.compressed_size" semantic conventions. It represents the
  11129. // compressed size of the message in bytes.
  11130. //
  11131. // Type: int
  11132. // RequirementLevel: Recommended
  11133. // Stability: Development
  11134. //
  11135. // Examples:
  11136. RPCMessageCompressedSizeKey = attribute.Key("rpc.message.compressed_size")
  11137. // RPCMessageIDKey is the attribute Key conforming to the "rpc.message.id"
  11138. // semantic conventions. It MUST be calculated as two different counters
  11139. // starting from `1` one for sent messages and one for received message..
  11140. //
  11141. // Type: int
  11142. // RequirementLevel: Recommended
  11143. // Stability: Development
  11144. //
  11145. // Examples:
  11146. // Note: This way we guarantee that the values will be consistent between
  11147. // different implementations.
  11148. RPCMessageIDKey = attribute.Key("rpc.message.id")
  11149. // RPCMessageTypeKey is the attribute Key conforming to the "rpc.message.type"
  11150. // semantic conventions. It represents the whether this is a received or sent
  11151. // message.
  11152. //
  11153. // Type: Enum
  11154. // RequirementLevel: Recommended
  11155. // Stability: Development
  11156. //
  11157. // Examples:
  11158. RPCMessageTypeKey = attribute.Key("rpc.message.type")
  11159. // RPCMessageUncompressedSizeKey is the attribute Key conforming to the
  11160. // "rpc.message.uncompressed_size" semantic conventions. It represents the
  11161. // uncompressed size of the message in bytes.
  11162. //
  11163. // Type: int
  11164. // RequirementLevel: Recommended
  11165. // Stability: Development
  11166. //
  11167. // Examples:
  11168. RPCMessageUncompressedSizeKey = attribute.Key("rpc.message.uncompressed_size")
  11169. // RPCMethodKey is the attribute Key conforming to the "rpc.method" semantic
  11170. // conventions. It represents the name of the (logical) method being called,
  11171. // must be equal to the $method part in the span name.
  11172. //
  11173. // Type: string
  11174. // RequirementLevel: Recommended
  11175. // Stability: Development
  11176. //
  11177. // Examples: exampleMethod
  11178. // Note: This is the logical name of the method from the RPC interface
  11179. // perspective, which can be different from the name of any implementing
  11180. // method/function. The `code.function.name` attribute may be used to store the
  11181. // latter (e.g., method actually executing the call on the server side, RPC
  11182. // client stub method on the client side).
  11183. RPCMethodKey = attribute.Key("rpc.method")
  11184. // RPCServiceKey is the attribute Key conforming to the "rpc.service" semantic
  11185. // conventions. It represents the full (logical) name of the service being
  11186. // called, including its package name, if applicable.
  11187. //
  11188. // Type: string
  11189. // RequirementLevel: Recommended
  11190. // Stability: Development
  11191. //
  11192. // Examples: myservice.EchoService
  11193. // Note: This is the logical name of the service from the RPC interface
  11194. // perspective, which can be different from the name of any implementing class.
  11195. // The `code.namespace` attribute may be used to store the latter (despite the
  11196. // attribute name, it may include a class name; e.g., class with method actually
  11197. // executing the call on the server side, RPC client stub class on the client
  11198. // side).
  11199. RPCServiceKey = attribute.Key("rpc.service")
  11200. // RPCSystemKey is the attribute Key conforming to the "rpc.system" semantic
  11201. // conventions. It represents a string identifying the remoting system. See
  11202. // below for a list of well-known identifiers.
  11203. //
  11204. // Type: Enum
  11205. // RequirementLevel: Recommended
  11206. // Stability: Development
  11207. //
  11208. // Examples:
  11209. RPCSystemKey = attribute.Key("rpc.system")
  11210. )
  11211. // RPCConnectRPCRequestMetadata returns an attribute KeyValue conforming to the
  11212. // "rpc.connect_rpc.request.metadata" semantic conventions. It represents the
  11213. // connect request metadata, `<key>` being the normalized Connect Metadata key
  11214. // (lowercase), the value being the metadata values.
  11215. func RPCConnectRPCRequestMetadata(key string, val ...string) attribute.KeyValue {
  11216. return attribute.StringSlice("rpc.connect_rpc.request.metadata."+key, val)
  11217. }
  11218. // RPCConnectRPCResponseMetadata returns an attribute KeyValue conforming to the
  11219. // "rpc.connect_rpc.response.metadata" semantic conventions. It represents the
  11220. // connect response metadata, `<key>` being the normalized Connect Metadata key
  11221. // (lowercase), the value being the metadata values.
  11222. func RPCConnectRPCResponseMetadata(key string, val ...string) attribute.KeyValue {
  11223. return attribute.StringSlice("rpc.connect_rpc.response.metadata."+key, val)
  11224. }
  11225. // RPCGRPCRequestMetadata returns an attribute KeyValue conforming to the
  11226. // "rpc.grpc.request.metadata" semantic conventions. It represents the gRPC
  11227. // request metadata, `<key>` being the normalized gRPC Metadata key (lowercase),
  11228. // the value being the metadata values.
  11229. func RPCGRPCRequestMetadata(key string, val ...string) attribute.KeyValue {
  11230. return attribute.StringSlice("rpc.grpc.request.metadata."+key, val)
  11231. }
  11232. // RPCGRPCResponseMetadata returns an attribute KeyValue conforming to the
  11233. // "rpc.grpc.response.metadata" semantic conventions. It represents the gRPC
  11234. // response metadata, `<key>` being the normalized gRPC Metadata key (lowercase),
  11235. // the value being the metadata values.
  11236. func RPCGRPCResponseMetadata(key string, val ...string) attribute.KeyValue {
  11237. return attribute.StringSlice("rpc.grpc.response.metadata."+key, val)
  11238. }
  11239. // RPCJSONRPCErrorCode returns an attribute KeyValue conforming to the
  11240. // "rpc.jsonrpc.error_code" semantic conventions. It represents the `error.code`
  11241. // property of response if it is an error response.
  11242. func RPCJSONRPCErrorCode(val int) attribute.KeyValue {
  11243. return RPCJSONRPCErrorCodeKey.Int(val)
  11244. }
  11245. // RPCJSONRPCErrorMessage returns an attribute KeyValue conforming to the
  11246. // "rpc.jsonrpc.error_message" semantic conventions. It represents the
  11247. // `error.message` property of response if it is an error response.
  11248. func RPCJSONRPCErrorMessage(val string) attribute.KeyValue {
  11249. return RPCJSONRPCErrorMessageKey.String(val)
  11250. }
  11251. // RPCJSONRPCRequestID returns an attribute KeyValue conforming to the
  11252. // "rpc.jsonrpc.request_id" semantic conventions. It represents the `id` property
  11253. // of request or response. Since protocol allows id to be int, string, `null` or
  11254. // missing (for notifications), value is expected to be cast to string for
  11255. // simplicity. Use empty string in case of `null` value. Omit entirely if this is
  11256. // a notification.
  11257. func RPCJSONRPCRequestID(val string) attribute.KeyValue {
  11258. return RPCJSONRPCRequestIDKey.String(val)
  11259. }
  11260. // RPCJSONRPCVersion returns an attribute KeyValue conforming to the
  11261. // "rpc.jsonrpc.version" semantic conventions. It represents the protocol version
  11262. // as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 doesn't
  11263. // specify this, the value can be omitted.
  11264. func RPCJSONRPCVersion(val string) attribute.KeyValue {
  11265. return RPCJSONRPCVersionKey.String(val)
  11266. }
  11267. // RPCMessageCompressedSize returns an attribute KeyValue conforming to the
  11268. // "rpc.message.compressed_size" semantic conventions. It represents the
  11269. // compressed size of the message in bytes.
  11270. func RPCMessageCompressedSize(val int) attribute.KeyValue {
  11271. return RPCMessageCompressedSizeKey.Int(val)
  11272. }
  11273. // RPCMessageID returns an attribute KeyValue conforming to the "rpc.message.id"
  11274. // semantic conventions. It MUST be calculated as two different counters starting
  11275. // from `1` one for sent messages and one for received message..
  11276. func RPCMessageID(val int) attribute.KeyValue {
  11277. return RPCMessageIDKey.Int(val)
  11278. }
  11279. // RPCMessageUncompressedSize returns an attribute KeyValue conforming to the
  11280. // "rpc.message.uncompressed_size" semantic conventions. It represents the
  11281. // uncompressed size of the message in bytes.
  11282. func RPCMessageUncompressedSize(val int) attribute.KeyValue {
  11283. return RPCMessageUncompressedSizeKey.Int(val)
  11284. }
  11285. // RPCMethod returns an attribute KeyValue conforming to the "rpc.method"
  11286. // semantic conventions. It represents the name of the (logical) method being
  11287. // called, must be equal to the $method part in the span name.
  11288. func RPCMethod(val string) attribute.KeyValue {
  11289. return RPCMethodKey.String(val)
  11290. }
  11291. // RPCService returns an attribute KeyValue conforming to the "rpc.service"
  11292. // semantic conventions. It represents the full (logical) name of the service
  11293. // being called, including its package name, if applicable.
  11294. func RPCService(val string) attribute.KeyValue {
  11295. return RPCServiceKey.String(val)
  11296. }
  11297. // Enum values for rpc.connect_rpc.error_code
  11298. var (
  11299. // cancelled
  11300. // Stability: development
  11301. RPCConnectRPCErrorCodeCancelled = RPCConnectRPCErrorCodeKey.String("cancelled")
  11302. // unknown
  11303. // Stability: development
  11304. RPCConnectRPCErrorCodeUnknown = RPCConnectRPCErrorCodeKey.String("unknown")
  11305. // invalid_argument
  11306. // Stability: development
  11307. RPCConnectRPCErrorCodeInvalidArgument = RPCConnectRPCErrorCodeKey.String("invalid_argument")
  11308. // deadline_exceeded
  11309. // Stability: development
  11310. RPCConnectRPCErrorCodeDeadlineExceeded = RPCConnectRPCErrorCodeKey.String("deadline_exceeded")
  11311. // not_found
  11312. // Stability: development
  11313. RPCConnectRPCErrorCodeNotFound = RPCConnectRPCErrorCodeKey.String("not_found")
  11314. // already_exists
  11315. // Stability: development
  11316. RPCConnectRPCErrorCodeAlreadyExists = RPCConnectRPCErrorCodeKey.String("already_exists")
  11317. // permission_denied
  11318. // Stability: development
  11319. RPCConnectRPCErrorCodePermissionDenied = RPCConnectRPCErrorCodeKey.String("permission_denied")
  11320. // resource_exhausted
  11321. // Stability: development
  11322. RPCConnectRPCErrorCodeResourceExhausted = RPCConnectRPCErrorCodeKey.String("resource_exhausted")
  11323. // failed_precondition
  11324. // Stability: development
  11325. RPCConnectRPCErrorCodeFailedPrecondition = RPCConnectRPCErrorCodeKey.String("failed_precondition")
  11326. // aborted
  11327. // Stability: development
  11328. RPCConnectRPCErrorCodeAborted = RPCConnectRPCErrorCodeKey.String("aborted")
  11329. // out_of_range
  11330. // Stability: development
  11331. RPCConnectRPCErrorCodeOutOfRange = RPCConnectRPCErrorCodeKey.String("out_of_range")
  11332. // unimplemented
  11333. // Stability: development
  11334. RPCConnectRPCErrorCodeUnimplemented = RPCConnectRPCErrorCodeKey.String("unimplemented")
  11335. // internal
  11336. // Stability: development
  11337. RPCConnectRPCErrorCodeInternal = RPCConnectRPCErrorCodeKey.String("internal")
  11338. // unavailable
  11339. // Stability: development
  11340. RPCConnectRPCErrorCodeUnavailable = RPCConnectRPCErrorCodeKey.String("unavailable")
  11341. // data_loss
  11342. // Stability: development
  11343. RPCConnectRPCErrorCodeDataLoss = RPCConnectRPCErrorCodeKey.String("data_loss")
  11344. // unauthenticated
  11345. // Stability: development
  11346. RPCConnectRPCErrorCodeUnauthenticated = RPCConnectRPCErrorCodeKey.String("unauthenticated")
  11347. )
  11348. // Enum values for rpc.grpc.status_code
  11349. var (
  11350. // OK
  11351. // Stability: development
  11352. RPCGRPCStatusCodeOk = RPCGRPCStatusCodeKey.Int(0)
  11353. // CANCELLED
  11354. // Stability: development
  11355. RPCGRPCStatusCodeCancelled = RPCGRPCStatusCodeKey.Int(1)
  11356. // UNKNOWN
  11357. // Stability: development
  11358. RPCGRPCStatusCodeUnknown = RPCGRPCStatusCodeKey.Int(2)
  11359. // INVALID_ARGUMENT
  11360. // Stability: development
  11361. RPCGRPCStatusCodeInvalidArgument = RPCGRPCStatusCodeKey.Int(3)
  11362. // DEADLINE_EXCEEDED
  11363. // Stability: development
  11364. RPCGRPCStatusCodeDeadlineExceeded = RPCGRPCStatusCodeKey.Int(4)
  11365. // NOT_FOUND
  11366. // Stability: development
  11367. RPCGRPCStatusCodeNotFound = RPCGRPCStatusCodeKey.Int(5)
  11368. // ALREADY_EXISTS
  11369. // Stability: development
  11370. RPCGRPCStatusCodeAlreadyExists = RPCGRPCStatusCodeKey.Int(6)
  11371. // PERMISSION_DENIED
  11372. // Stability: development
  11373. RPCGRPCStatusCodePermissionDenied = RPCGRPCStatusCodeKey.Int(7)
  11374. // RESOURCE_EXHAUSTED
  11375. // Stability: development
  11376. RPCGRPCStatusCodeResourceExhausted = RPCGRPCStatusCodeKey.Int(8)
  11377. // FAILED_PRECONDITION
  11378. // Stability: development
  11379. RPCGRPCStatusCodeFailedPrecondition = RPCGRPCStatusCodeKey.Int(9)
  11380. // ABORTED
  11381. // Stability: development
  11382. RPCGRPCStatusCodeAborted = RPCGRPCStatusCodeKey.Int(10)
  11383. // OUT_OF_RANGE
  11384. // Stability: development
  11385. RPCGRPCStatusCodeOutOfRange = RPCGRPCStatusCodeKey.Int(11)
  11386. // UNIMPLEMENTED
  11387. // Stability: development
  11388. RPCGRPCStatusCodeUnimplemented = RPCGRPCStatusCodeKey.Int(12)
  11389. // INTERNAL
  11390. // Stability: development
  11391. RPCGRPCStatusCodeInternal = RPCGRPCStatusCodeKey.Int(13)
  11392. // UNAVAILABLE
  11393. // Stability: development
  11394. RPCGRPCStatusCodeUnavailable = RPCGRPCStatusCodeKey.Int(14)
  11395. // DATA_LOSS
  11396. // Stability: development
  11397. RPCGRPCStatusCodeDataLoss = RPCGRPCStatusCodeKey.Int(15)
  11398. // UNAUTHENTICATED
  11399. // Stability: development
  11400. RPCGRPCStatusCodeUnauthenticated = RPCGRPCStatusCodeKey.Int(16)
  11401. )
  11402. // Enum values for rpc.message.type
  11403. var (
  11404. // sent
  11405. // Stability: development
  11406. RPCMessageTypeSent = RPCMessageTypeKey.String("SENT")
  11407. // received
  11408. // Stability: development
  11409. RPCMessageTypeReceived = RPCMessageTypeKey.String("RECEIVED")
  11410. )
  11411. // Enum values for rpc.system
  11412. var (
  11413. // gRPC
  11414. // Stability: development
  11415. RPCSystemGRPC = RPCSystemKey.String("grpc")
  11416. // Java RMI
  11417. // Stability: development
  11418. RPCSystemJavaRmi = RPCSystemKey.String("java_rmi")
  11419. // .NET WCF
  11420. // Stability: development
  11421. RPCSystemDotnetWcf = RPCSystemKey.String("dotnet_wcf")
  11422. // Apache Dubbo
  11423. // Stability: development
  11424. RPCSystemApacheDubbo = RPCSystemKey.String("apache_dubbo")
  11425. // Connect RPC
  11426. // Stability: development
  11427. RPCSystemConnectRPC = RPCSystemKey.String("connect_rpc")
  11428. )
  11429. // Namespace: security_rule
  11430. const (
  11431. // SecurityRuleCategoryKey is the attribute Key conforming to the
  11432. // "security_rule.category" semantic conventions. It represents a categorization
  11433. // value keyword used by the entity using the rule for detection of this event.
  11434. //
  11435. // Type: string
  11436. // RequirementLevel: Recommended
  11437. // Stability: Development
  11438. //
  11439. // Examples: "Attempted Information Leak"
  11440. SecurityRuleCategoryKey = attribute.Key("security_rule.category")
  11441. // SecurityRuleDescriptionKey is the attribute Key conforming to the
  11442. // "security_rule.description" semantic conventions. It represents the
  11443. // description of the rule generating the event.
  11444. //
  11445. // Type: string
  11446. // RequirementLevel: Recommended
  11447. // Stability: Development
  11448. //
  11449. // Examples: "Block requests to public DNS over HTTPS / TLS protocols"
  11450. SecurityRuleDescriptionKey = attribute.Key("security_rule.description")
  11451. // SecurityRuleLicenseKey is the attribute Key conforming to the
  11452. // "security_rule.license" semantic conventions. It represents the name of the
  11453. // license under which the rule used to generate this event is made available.
  11454. //
  11455. // Type: string
  11456. // RequirementLevel: Recommended
  11457. // Stability: Development
  11458. //
  11459. // Examples: "Apache 2.0"
  11460. SecurityRuleLicenseKey = attribute.Key("security_rule.license")
  11461. // SecurityRuleNameKey is the attribute Key conforming to the
  11462. // "security_rule.name" semantic conventions. It represents the name of the rule
  11463. // or signature generating the event.
  11464. //
  11465. // Type: string
  11466. // RequirementLevel: Recommended
  11467. // Stability: Development
  11468. //
  11469. // Examples: "BLOCK_DNS_over_TLS"
  11470. SecurityRuleNameKey = attribute.Key("security_rule.name")
  11471. // SecurityRuleReferenceKey is the attribute Key conforming to the
  11472. // "security_rule.reference" semantic conventions. It represents the reference
  11473. // URL to additional information about the rule used to generate this event.
  11474. //
  11475. // Type: string
  11476. // RequirementLevel: Recommended
  11477. // Stability: Development
  11478. //
  11479. // Examples: "https://en.wikipedia.org/wiki/DNS_over_TLS"
  11480. // Note: The URL can point to the vendor’s documentation about the rule. If
  11481. // that’s not available, it can also be a link to a more general page
  11482. // describing this type of alert.
  11483. SecurityRuleReferenceKey = attribute.Key("security_rule.reference")
  11484. // SecurityRuleRulesetNameKey is the attribute Key conforming to the
  11485. // "security_rule.ruleset.name" semantic conventions. It represents the name of
  11486. // the ruleset, policy, group, or parent category in which the rule used to
  11487. // generate this event is a member.
  11488. //
  11489. // Type: string
  11490. // RequirementLevel: Recommended
  11491. // Stability: Development
  11492. //
  11493. // Examples: "Standard_Protocol_Filters"
  11494. SecurityRuleRulesetNameKey = attribute.Key("security_rule.ruleset.name")
  11495. // SecurityRuleUUIDKey is the attribute Key conforming to the
  11496. // "security_rule.uuid" semantic conventions. It represents a rule ID that is
  11497. // unique within the scope of a set or group of agents, observers, or other
  11498. // entities using the rule for detection of this event.
  11499. //
  11500. // Type: string
  11501. // RequirementLevel: Recommended
  11502. // Stability: Development
  11503. //
  11504. // Examples: "550e8400-e29b-41d4-a716-446655440000", "1100110011"
  11505. SecurityRuleUUIDKey = attribute.Key("security_rule.uuid")
  11506. // SecurityRuleVersionKey is the attribute Key conforming to the
  11507. // "security_rule.version" semantic conventions. It represents the version /
  11508. // revision of the rule being used for analysis.
  11509. //
  11510. // Type: string
  11511. // RequirementLevel: Recommended
  11512. // Stability: Development
  11513. //
  11514. // Examples: "1.0.0"
  11515. SecurityRuleVersionKey = attribute.Key("security_rule.version")
  11516. )
  11517. // SecurityRuleCategory returns an attribute KeyValue conforming to the
  11518. // "security_rule.category" semantic conventions. It represents a categorization
  11519. // value keyword used by the entity using the rule for detection of this event.
  11520. func SecurityRuleCategory(val string) attribute.KeyValue {
  11521. return SecurityRuleCategoryKey.String(val)
  11522. }
  11523. // SecurityRuleDescription returns an attribute KeyValue conforming to the
  11524. // "security_rule.description" semantic conventions. It represents the
  11525. // description of the rule generating the event.
  11526. func SecurityRuleDescription(val string) attribute.KeyValue {
  11527. return SecurityRuleDescriptionKey.String(val)
  11528. }
  11529. // SecurityRuleLicense returns an attribute KeyValue conforming to the
  11530. // "security_rule.license" semantic conventions. It represents the name of the
  11531. // license under which the rule used to generate this event is made available.
  11532. func SecurityRuleLicense(val string) attribute.KeyValue {
  11533. return SecurityRuleLicenseKey.String(val)
  11534. }
  11535. // SecurityRuleName returns an attribute KeyValue conforming to the
  11536. // "security_rule.name" semantic conventions. It represents the name of the rule
  11537. // or signature generating the event.
  11538. func SecurityRuleName(val string) attribute.KeyValue {
  11539. return SecurityRuleNameKey.String(val)
  11540. }
  11541. // SecurityRuleReference returns an attribute KeyValue conforming to the
  11542. // "security_rule.reference" semantic conventions. It represents the reference
  11543. // URL to additional information about the rule used to generate this event.
  11544. func SecurityRuleReference(val string) attribute.KeyValue {
  11545. return SecurityRuleReferenceKey.String(val)
  11546. }
  11547. // SecurityRuleRulesetName returns an attribute KeyValue conforming to the
  11548. // "security_rule.ruleset.name" semantic conventions. It represents the name of
  11549. // the ruleset, policy, group, or parent category in which the rule used to
  11550. // generate this event is a member.
  11551. func SecurityRuleRulesetName(val string) attribute.KeyValue {
  11552. return SecurityRuleRulesetNameKey.String(val)
  11553. }
  11554. // SecurityRuleUUID returns an attribute KeyValue conforming to the
  11555. // "security_rule.uuid" semantic conventions. It represents a rule ID that is
  11556. // unique within the scope of a set or group of agents, observers, or other
  11557. // entities using the rule for detection of this event.
  11558. func SecurityRuleUUID(val string) attribute.KeyValue {
  11559. return SecurityRuleUUIDKey.String(val)
  11560. }
  11561. // SecurityRuleVersion returns an attribute KeyValue conforming to the
  11562. // "security_rule.version" semantic conventions. It represents the version /
  11563. // revision of the rule being used for analysis.
  11564. func SecurityRuleVersion(val string) attribute.KeyValue {
  11565. return SecurityRuleVersionKey.String(val)
  11566. }
  11567. // Namespace: server
  11568. const (
  11569. // ServerAddressKey is the attribute Key conforming to the "server.address"
  11570. // semantic conventions. It represents the server domain name if available
  11571. // without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
  11572. //
  11573. // Type: string
  11574. // RequirementLevel: Recommended
  11575. // Stability: Stable
  11576. //
  11577. // Examples: "example.com", "10.1.2.80", "/tmp/my.sock"
  11578. // Note: When observed from the client side, and when communicating through an
  11579. // intermediary, `server.address` SHOULD represent the server address behind any
  11580. // intermediaries, for example proxies, if it's available.
  11581. ServerAddressKey = attribute.Key("server.address")
  11582. // ServerPortKey is the attribute Key conforming to the "server.port" semantic
  11583. // conventions. It represents the server port number.
  11584. //
  11585. // Type: int
  11586. // RequirementLevel: Recommended
  11587. // Stability: Stable
  11588. //
  11589. // Examples: 80, 8080, 443
  11590. // Note: When observed from the client side, and when communicating through an
  11591. // intermediary, `server.port` SHOULD represent the server port behind any
  11592. // intermediaries, for example proxies, if it's available.
  11593. ServerPortKey = attribute.Key("server.port")
  11594. )
  11595. // ServerAddress returns an attribute KeyValue conforming to the "server.address"
  11596. // semantic conventions. It represents the server domain name if available
  11597. // without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
  11598. func ServerAddress(val string) attribute.KeyValue {
  11599. return ServerAddressKey.String(val)
  11600. }
  11601. // ServerPort returns an attribute KeyValue conforming to the "server.port"
  11602. // semantic conventions. It represents the server port number.
  11603. func ServerPort(val int) attribute.KeyValue {
  11604. return ServerPortKey.Int(val)
  11605. }
  11606. // Namespace: service
  11607. const (
  11608. // ServiceInstanceIDKey is the attribute Key conforming to the
  11609. // "service.instance.id" semantic conventions. It represents the string ID of
  11610. // the service instance.
  11611. //
  11612. // Type: string
  11613. // RequirementLevel: Recommended
  11614. // Stability: Development
  11615. //
  11616. // Examples: "627cc493-f310-47de-96bd-71410b7dec09"
  11617. // Note: MUST be unique for each instance of the same
  11618. // `service.namespace,service.name` pair (in other words
  11619. // `service.namespace,service.name,service.instance.id` triplet MUST be globally
  11620. // unique). The ID helps to
  11621. // distinguish instances of the same service that exist at the same time (e.g.
  11622. // instances of a horizontally scaled
  11623. // service).
  11624. //
  11625. // Implementations, such as SDKs, are recommended to generate a random Version 1
  11626. // or Version 4 [RFC
  11627. // 4122] UUID, but are free to use an inherent unique ID as
  11628. // the source of
  11629. // this value if stability is desirable. In that case, the ID SHOULD be used as
  11630. // source of a UUID Version 5 and
  11631. // SHOULD use the following UUID as the namespace:
  11632. // `4d63009a-8d0f-11ee-aad7-4c796ed8e320`.
  11633. //
  11634. // UUIDs are typically recommended, as only an opaque value for the purposes of
  11635. // identifying a service instance is
  11636. // needed. Similar to what can be seen in the man page for the
  11637. // [`/etc/machine-id`] file, the underlying
  11638. // data, such as pod name and namespace should be treated as confidential, being
  11639. // the user's choice to expose it
  11640. // or not via another resource attribute.
  11641. //
  11642. // For applications running behind an application server (like unicorn), we do
  11643. // not recommend using one identifier
  11644. // for all processes participating in the application. Instead, it's recommended
  11645. // each division (e.g. a worker
  11646. // thread in unicorn) to have its own instance.id.
  11647. //
  11648. // It's not recommended for a Collector to set `service.instance.id` if it can't
  11649. // unambiguously determine the
  11650. // service instance that is generating that telemetry. For instance, creating an
  11651. // UUID based on `pod.name` will
  11652. // likely be wrong, as the Collector might not know from which container within
  11653. // that pod the telemetry originated.
  11654. // However, Collectors can set the `service.instance.id` if they can
  11655. // unambiguously determine the service instance
  11656. // for that telemetry. This is typically the case for scraping receivers, as
  11657. // they know the target address and
  11658. // port.
  11659. //
  11660. // [RFC
  11661. // 4122]: https://www.ietf.org/rfc/rfc4122.txt
  11662. // [`/etc/machine-id`]: https://www.freedesktop.org/software/systemd/man/latest/machine-id.html
  11663. ServiceInstanceIDKey = attribute.Key("service.instance.id")
  11664. // ServiceNameKey is the attribute Key conforming to the "service.name" semantic
  11665. // conventions. It represents the logical name of the service.
  11666. //
  11667. // Type: string
  11668. // RequirementLevel: Recommended
  11669. // Stability: Stable
  11670. //
  11671. // Examples: "shoppingcart"
  11672. // Note: MUST be the same for all instances of horizontally scaled services. If
  11673. // the value was not specified, SDKs MUST fallback to `unknown_service:`
  11674. // concatenated with [`process.executable.name`], e.g. `unknown_service:bash`.
  11675. // If `process.executable.name` is not available, the value MUST be set to
  11676. // `unknown_service`.
  11677. //
  11678. // [`process.executable.name`]: process.md
  11679. ServiceNameKey = attribute.Key("service.name")
  11680. // ServiceNamespaceKey is the attribute Key conforming to the
  11681. // "service.namespace" semantic conventions. It represents a namespace for
  11682. // `service.name`.
  11683. //
  11684. // Type: string
  11685. // RequirementLevel: Recommended
  11686. // Stability: Development
  11687. //
  11688. // Examples: "Shop"
  11689. // Note: A string value having a meaning that helps to distinguish a group of
  11690. // services, for example the team name that owns a group of services.
  11691. // `service.name` is expected to be unique within the same namespace. If
  11692. // `service.namespace` is not specified in the Resource then `service.name` is
  11693. // expected to be unique for all services that have no explicit namespace
  11694. // defined (so the empty/unspecified namespace is simply one more valid
  11695. // namespace). Zero-length namespace string is assumed equal to unspecified
  11696. // namespace.
  11697. ServiceNamespaceKey = attribute.Key("service.namespace")
  11698. // ServiceVersionKey is the attribute Key conforming to the "service.version"
  11699. // semantic conventions. It represents the version string of the service API or
  11700. // implementation. The format is not defined by these conventions.
  11701. //
  11702. // Type: string
  11703. // RequirementLevel: Recommended
  11704. // Stability: Stable
  11705. //
  11706. // Examples: "2.0.0", "a01dbef8a"
  11707. ServiceVersionKey = attribute.Key("service.version")
  11708. )
  11709. // ServiceInstanceID returns an attribute KeyValue conforming to the
  11710. // "service.instance.id" semantic conventions. It represents the string ID of the
  11711. // service instance.
  11712. func ServiceInstanceID(val string) attribute.KeyValue {
  11713. return ServiceInstanceIDKey.String(val)
  11714. }
  11715. // ServiceName returns an attribute KeyValue conforming to the "service.name"
  11716. // semantic conventions. It represents the logical name of the service.
  11717. func ServiceName(val string) attribute.KeyValue {
  11718. return ServiceNameKey.String(val)
  11719. }
  11720. // ServiceNamespace returns an attribute KeyValue conforming to the
  11721. // "service.namespace" semantic conventions. It represents a namespace for
  11722. // `service.name`.
  11723. func ServiceNamespace(val string) attribute.KeyValue {
  11724. return ServiceNamespaceKey.String(val)
  11725. }
  11726. // ServiceVersion returns an attribute KeyValue conforming to the
  11727. // "service.version" semantic conventions. It represents the version string of
  11728. // the service API or implementation. The format is not defined by these
  11729. // conventions.
  11730. func ServiceVersion(val string) attribute.KeyValue {
  11731. return ServiceVersionKey.String(val)
  11732. }
  11733. // Namespace: session
  11734. const (
  11735. // SessionIDKey is the attribute Key conforming to the "session.id" semantic
  11736. // conventions. It represents a unique id to identify a session.
  11737. //
  11738. // Type: string
  11739. // RequirementLevel: Recommended
  11740. // Stability: Development
  11741. //
  11742. // Examples: 00112233-4455-6677-8899-aabbccddeeff
  11743. SessionIDKey = attribute.Key("session.id")
  11744. // SessionPreviousIDKey is the attribute Key conforming to the
  11745. // "session.previous_id" semantic conventions. It represents the previous
  11746. // `session.id` for this user, when known.
  11747. //
  11748. // Type: string
  11749. // RequirementLevel: Recommended
  11750. // Stability: Development
  11751. //
  11752. // Examples: 00112233-4455-6677-8899-aabbccddeeff
  11753. SessionPreviousIDKey = attribute.Key("session.previous_id")
  11754. )
  11755. // SessionID returns an attribute KeyValue conforming to the "session.id"
  11756. // semantic conventions. It represents a unique id to identify a session.
  11757. func SessionID(val string) attribute.KeyValue {
  11758. return SessionIDKey.String(val)
  11759. }
  11760. // SessionPreviousID returns an attribute KeyValue conforming to the
  11761. // "session.previous_id" semantic conventions. It represents the previous
  11762. // `session.id` for this user, when known.
  11763. func SessionPreviousID(val string) attribute.KeyValue {
  11764. return SessionPreviousIDKey.String(val)
  11765. }
  11766. // Namespace: signalr
  11767. const (
  11768. // SignalRConnectionStatusKey is the attribute Key conforming to the
  11769. // "signalr.connection.status" semantic conventions. It represents the signalR
  11770. // HTTP connection closure status.
  11771. //
  11772. // Type: Enum
  11773. // RequirementLevel: Recommended
  11774. // Stability: Stable
  11775. //
  11776. // Examples: "app_shutdown", "timeout"
  11777. SignalRConnectionStatusKey = attribute.Key("signalr.connection.status")
  11778. // SignalRTransportKey is the attribute Key conforming to the
  11779. // "signalr.transport" semantic conventions. It represents the
  11780. // [SignalR transport type].
  11781. //
  11782. // Type: Enum
  11783. // RequirementLevel: Recommended
  11784. // Stability: Stable
  11785. //
  11786. // Examples: "web_sockets", "long_polling"
  11787. //
  11788. // [SignalR transport type]: https://github.com/dotnet/aspnetcore/blob/main/src/SignalR/docs/specs/TransportProtocols.md
  11789. SignalRTransportKey = attribute.Key("signalr.transport")
  11790. )
  11791. // Enum values for signalr.connection.status
  11792. var (
  11793. // The connection was closed normally.
  11794. // Stability: stable
  11795. SignalRConnectionStatusNormalClosure = SignalRConnectionStatusKey.String("normal_closure")
  11796. // The connection was closed due to a timeout.
  11797. // Stability: stable
  11798. SignalRConnectionStatusTimeout = SignalRConnectionStatusKey.String("timeout")
  11799. // The connection was closed because the app is shutting down.
  11800. // Stability: stable
  11801. SignalRConnectionStatusAppShutdown = SignalRConnectionStatusKey.String("app_shutdown")
  11802. )
  11803. // Enum values for signalr.transport
  11804. var (
  11805. // ServerSentEvents protocol
  11806. // Stability: stable
  11807. SignalRTransportServerSentEvents = SignalRTransportKey.String("server_sent_events")
  11808. // LongPolling protocol
  11809. // Stability: stable
  11810. SignalRTransportLongPolling = SignalRTransportKey.String("long_polling")
  11811. // WebSockets protocol
  11812. // Stability: stable
  11813. SignalRTransportWebSockets = SignalRTransportKey.String("web_sockets")
  11814. )
  11815. // Namespace: source
  11816. const (
  11817. // SourceAddressKey is the attribute Key conforming to the "source.address"
  11818. // semantic conventions. It represents the source address - domain name if
  11819. // available without reverse DNS lookup; otherwise, IP address or Unix domain
  11820. // socket name.
  11821. //
  11822. // Type: string
  11823. // RequirementLevel: Recommended
  11824. // Stability: Development
  11825. //
  11826. // Examples: "source.example.com", "10.1.2.80", "/tmp/my.sock"
  11827. // Note: When observed from the destination side, and when communicating through
  11828. // an intermediary, `source.address` SHOULD represent the source address behind
  11829. // any intermediaries, for example proxies, if it's available.
  11830. SourceAddressKey = attribute.Key("source.address")
  11831. // SourcePortKey is the attribute Key conforming to the "source.port" semantic
  11832. // conventions. It represents the source port number.
  11833. //
  11834. // Type: int
  11835. // RequirementLevel: Recommended
  11836. // Stability: Development
  11837. //
  11838. // Examples: 3389, 2888
  11839. SourcePortKey = attribute.Key("source.port")
  11840. )
  11841. // SourceAddress returns an attribute KeyValue conforming to the "source.address"
  11842. // semantic conventions. It represents the source address - domain name if
  11843. // available without reverse DNS lookup; otherwise, IP address or Unix domain
  11844. // socket name.
  11845. func SourceAddress(val string) attribute.KeyValue {
  11846. return SourceAddressKey.String(val)
  11847. }
  11848. // SourcePort returns an attribute KeyValue conforming to the "source.port"
  11849. // semantic conventions. It represents the source port number.
  11850. func SourcePort(val int) attribute.KeyValue {
  11851. return SourcePortKey.Int(val)
  11852. }
  11853. // Namespace: system
  11854. const (
  11855. // SystemCPULogicalNumberKey is the attribute Key conforming to the
  11856. // "system.cpu.logical_number" semantic conventions. It represents the
  11857. // deprecated, use `cpu.logical_number` instead.
  11858. //
  11859. // Type: int
  11860. // RequirementLevel: Recommended
  11861. // Stability: Development
  11862. //
  11863. // Examples: 1
  11864. SystemCPULogicalNumberKey = attribute.Key("system.cpu.logical_number")
  11865. // SystemDeviceKey is the attribute Key conforming to the "system.device"
  11866. // semantic conventions. It represents the device identifier.
  11867. //
  11868. // Type: string
  11869. // RequirementLevel: Recommended
  11870. // Stability: Development
  11871. //
  11872. // Examples: "(identifier)"
  11873. SystemDeviceKey = attribute.Key("system.device")
  11874. // SystemFilesystemModeKey is the attribute Key conforming to the
  11875. // "system.filesystem.mode" semantic conventions. It represents the filesystem
  11876. // mode.
  11877. //
  11878. // Type: string
  11879. // RequirementLevel: Recommended
  11880. // Stability: Development
  11881. //
  11882. // Examples: "rw, ro"
  11883. SystemFilesystemModeKey = attribute.Key("system.filesystem.mode")
  11884. // SystemFilesystemMountpointKey is the attribute Key conforming to the
  11885. // "system.filesystem.mountpoint" semantic conventions. It represents the
  11886. // filesystem mount path.
  11887. //
  11888. // Type: string
  11889. // RequirementLevel: Recommended
  11890. // Stability: Development
  11891. //
  11892. // Examples: "/mnt/data"
  11893. SystemFilesystemMountpointKey = attribute.Key("system.filesystem.mountpoint")
  11894. // SystemFilesystemStateKey is the attribute Key conforming to the
  11895. // "system.filesystem.state" semantic conventions. It represents the filesystem
  11896. // state.
  11897. //
  11898. // Type: Enum
  11899. // RequirementLevel: Recommended
  11900. // Stability: Development
  11901. //
  11902. // Examples: "used"
  11903. SystemFilesystemStateKey = attribute.Key("system.filesystem.state")
  11904. // SystemFilesystemTypeKey is the attribute Key conforming to the
  11905. // "system.filesystem.type" semantic conventions. It represents the filesystem
  11906. // type.
  11907. //
  11908. // Type: Enum
  11909. // RequirementLevel: Recommended
  11910. // Stability: Development
  11911. //
  11912. // Examples: "ext4"
  11913. SystemFilesystemTypeKey = attribute.Key("system.filesystem.type")
  11914. // SystemMemoryStateKey is the attribute Key conforming to the
  11915. // "system.memory.state" semantic conventions. It represents the memory state.
  11916. //
  11917. // Type: Enum
  11918. // RequirementLevel: Recommended
  11919. // Stability: Development
  11920. //
  11921. // Examples: "free", "cached"
  11922. SystemMemoryStateKey = attribute.Key("system.memory.state")
  11923. // SystemPagingDirectionKey is the attribute Key conforming to the
  11924. // "system.paging.direction" semantic conventions. It represents the paging
  11925. // access direction.
  11926. //
  11927. // Type: Enum
  11928. // RequirementLevel: Recommended
  11929. // Stability: Development
  11930. //
  11931. // Examples: "in"
  11932. SystemPagingDirectionKey = attribute.Key("system.paging.direction")
  11933. // SystemPagingStateKey is the attribute Key conforming to the
  11934. // "system.paging.state" semantic conventions. It represents the memory paging
  11935. // state.
  11936. //
  11937. // Type: Enum
  11938. // RequirementLevel: Recommended
  11939. // Stability: Development
  11940. //
  11941. // Examples: "free"
  11942. SystemPagingStateKey = attribute.Key("system.paging.state")
  11943. // SystemPagingTypeKey is the attribute Key conforming to the
  11944. // "system.paging.type" semantic conventions. It represents the memory paging
  11945. // type.
  11946. //
  11947. // Type: Enum
  11948. // RequirementLevel: Recommended
  11949. // Stability: Development
  11950. //
  11951. // Examples: "minor"
  11952. SystemPagingTypeKey = attribute.Key("system.paging.type")
  11953. // SystemProcessStatusKey is the attribute Key conforming to the
  11954. // "system.process.status" semantic conventions. It represents the process
  11955. // state, e.g., [Linux Process State Codes].
  11956. //
  11957. // Type: Enum
  11958. // RequirementLevel: Recommended
  11959. // Stability: Development
  11960. //
  11961. // Examples: "running"
  11962. //
  11963. // [Linux Process State Codes]: https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES
  11964. SystemProcessStatusKey = attribute.Key("system.process.status")
  11965. )
  11966. // SystemCPULogicalNumber returns an attribute KeyValue conforming to the
  11967. // "system.cpu.logical_number" semantic conventions. It represents the
  11968. // deprecated, use `cpu.logical_number` instead.
  11969. func SystemCPULogicalNumber(val int) attribute.KeyValue {
  11970. return SystemCPULogicalNumberKey.Int(val)
  11971. }
  11972. // SystemDevice returns an attribute KeyValue conforming to the "system.device"
  11973. // semantic conventions. It represents the device identifier.
  11974. func SystemDevice(val string) attribute.KeyValue {
  11975. return SystemDeviceKey.String(val)
  11976. }
  11977. // SystemFilesystemMode returns an attribute KeyValue conforming to the
  11978. // "system.filesystem.mode" semantic conventions. It represents the filesystem
  11979. // mode.
  11980. func SystemFilesystemMode(val string) attribute.KeyValue {
  11981. return SystemFilesystemModeKey.String(val)
  11982. }
  11983. // SystemFilesystemMountpoint returns an attribute KeyValue conforming to the
  11984. // "system.filesystem.mountpoint" semantic conventions. It represents the
  11985. // filesystem mount path.
  11986. func SystemFilesystemMountpoint(val string) attribute.KeyValue {
  11987. return SystemFilesystemMountpointKey.String(val)
  11988. }
  11989. // Enum values for system.filesystem.state
  11990. var (
  11991. // used
  11992. // Stability: development
  11993. SystemFilesystemStateUsed = SystemFilesystemStateKey.String("used")
  11994. // free
  11995. // Stability: development
  11996. SystemFilesystemStateFree = SystemFilesystemStateKey.String("free")
  11997. // reserved
  11998. // Stability: development
  11999. SystemFilesystemStateReserved = SystemFilesystemStateKey.String("reserved")
  12000. )
  12001. // Enum values for system.filesystem.type
  12002. var (
  12003. // fat32
  12004. // Stability: development
  12005. SystemFilesystemTypeFat32 = SystemFilesystemTypeKey.String("fat32")
  12006. // exfat
  12007. // Stability: development
  12008. SystemFilesystemTypeExfat = SystemFilesystemTypeKey.String("exfat")
  12009. // ntfs
  12010. // Stability: development
  12011. SystemFilesystemTypeNtfs = SystemFilesystemTypeKey.String("ntfs")
  12012. // refs
  12013. // Stability: development
  12014. SystemFilesystemTypeRefs = SystemFilesystemTypeKey.String("refs")
  12015. // hfsplus
  12016. // Stability: development
  12017. SystemFilesystemTypeHfsplus = SystemFilesystemTypeKey.String("hfsplus")
  12018. // ext4
  12019. // Stability: development
  12020. SystemFilesystemTypeExt4 = SystemFilesystemTypeKey.String("ext4")
  12021. )
  12022. // Enum values for system.memory.state
  12023. var (
  12024. // Actual used virtual memory in bytes.
  12025. // Stability: development
  12026. SystemMemoryStateUsed = SystemMemoryStateKey.String("used")
  12027. // free
  12028. // Stability: development
  12029. SystemMemoryStateFree = SystemMemoryStateKey.String("free")
  12030. // buffers
  12031. // Stability: development
  12032. SystemMemoryStateBuffers = SystemMemoryStateKey.String("buffers")
  12033. // cached
  12034. // Stability: development
  12035. SystemMemoryStateCached = SystemMemoryStateKey.String("cached")
  12036. )
  12037. // Enum values for system.paging.direction
  12038. var (
  12039. // in
  12040. // Stability: development
  12041. SystemPagingDirectionIn = SystemPagingDirectionKey.String("in")
  12042. // out
  12043. // Stability: development
  12044. SystemPagingDirectionOut = SystemPagingDirectionKey.String("out")
  12045. )
  12046. // Enum values for system.paging.state
  12047. var (
  12048. // used
  12049. // Stability: development
  12050. SystemPagingStateUsed = SystemPagingStateKey.String("used")
  12051. // free
  12052. // Stability: development
  12053. SystemPagingStateFree = SystemPagingStateKey.String("free")
  12054. )
  12055. // Enum values for system.paging.type
  12056. var (
  12057. // major
  12058. // Stability: development
  12059. SystemPagingTypeMajor = SystemPagingTypeKey.String("major")
  12060. // minor
  12061. // Stability: development
  12062. SystemPagingTypeMinor = SystemPagingTypeKey.String("minor")
  12063. )
  12064. // Enum values for system.process.status
  12065. var (
  12066. // running
  12067. // Stability: development
  12068. SystemProcessStatusRunning = SystemProcessStatusKey.String("running")
  12069. // sleeping
  12070. // Stability: development
  12071. SystemProcessStatusSleeping = SystemProcessStatusKey.String("sleeping")
  12072. // stopped
  12073. // Stability: development
  12074. SystemProcessStatusStopped = SystemProcessStatusKey.String("stopped")
  12075. // defunct
  12076. // Stability: development
  12077. SystemProcessStatusDefunct = SystemProcessStatusKey.String("defunct")
  12078. )
  12079. // Namespace: telemetry
  12080. const (
  12081. // TelemetryDistroNameKey is the attribute Key conforming to the
  12082. // "telemetry.distro.name" semantic conventions. It represents the name of the
  12083. // auto instrumentation agent or distribution, if used.
  12084. //
  12085. // Type: string
  12086. // RequirementLevel: Recommended
  12087. // Stability: Development
  12088. //
  12089. // Examples: "parts-unlimited-java"
  12090. // Note: Official auto instrumentation agents and distributions SHOULD set the
  12091. // `telemetry.distro.name` attribute to
  12092. // a string starting with `opentelemetry-`, e.g.
  12093. // `opentelemetry-java-instrumentation`.
  12094. TelemetryDistroNameKey = attribute.Key("telemetry.distro.name")
  12095. // TelemetryDistroVersionKey is the attribute Key conforming to the
  12096. // "telemetry.distro.version" semantic conventions. It represents the version
  12097. // string of the auto instrumentation agent or distribution, if used.
  12098. //
  12099. // Type: string
  12100. // RequirementLevel: Recommended
  12101. // Stability: Development
  12102. //
  12103. // Examples: "1.2.3"
  12104. TelemetryDistroVersionKey = attribute.Key("telemetry.distro.version")
  12105. // TelemetrySDKLanguageKey is the attribute Key conforming to the
  12106. // "telemetry.sdk.language" semantic conventions. It represents the language of
  12107. // the telemetry SDK.
  12108. //
  12109. // Type: Enum
  12110. // RequirementLevel: Recommended
  12111. // Stability: Stable
  12112. //
  12113. // Examples:
  12114. TelemetrySDKLanguageKey = attribute.Key("telemetry.sdk.language")
  12115. // TelemetrySDKNameKey is the attribute Key conforming to the
  12116. // "telemetry.sdk.name" semantic conventions. It represents the name of the
  12117. // telemetry SDK as defined above.
  12118. //
  12119. // Type: string
  12120. // RequirementLevel: Recommended
  12121. // Stability: Stable
  12122. //
  12123. // Examples: "opentelemetry"
  12124. // Note: The OpenTelemetry SDK MUST set the `telemetry.sdk.name` attribute to
  12125. // `opentelemetry`.
  12126. // If another SDK, like a fork or a vendor-provided implementation, is used,
  12127. // this SDK MUST set the
  12128. // `telemetry.sdk.name` attribute to the fully-qualified class or module name of
  12129. // this SDK's main entry point
  12130. // or another suitable identifier depending on the language.
  12131. // The identifier `opentelemetry` is reserved and MUST NOT be used in this case.
  12132. // All custom identifiers SHOULD be stable across different versions of an
  12133. // implementation.
  12134. TelemetrySDKNameKey = attribute.Key("telemetry.sdk.name")
  12135. // TelemetrySDKVersionKey is the attribute Key conforming to the
  12136. // "telemetry.sdk.version" semantic conventions. It represents the version
  12137. // string of the telemetry SDK.
  12138. //
  12139. // Type: string
  12140. // RequirementLevel: Recommended
  12141. // Stability: Stable
  12142. //
  12143. // Examples: "1.2.3"
  12144. TelemetrySDKVersionKey = attribute.Key("telemetry.sdk.version")
  12145. )
  12146. // TelemetryDistroName returns an attribute KeyValue conforming to the
  12147. // "telemetry.distro.name" semantic conventions. It represents the name of the
  12148. // auto instrumentation agent or distribution, if used.
  12149. func TelemetryDistroName(val string) attribute.KeyValue {
  12150. return TelemetryDistroNameKey.String(val)
  12151. }
  12152. // TelemetryDistroVersion returns an attribute KeyValue conforming to the
  12153. // "telemetry.distro.version" semantic conventions. It represents the version
  12154. // string of the auto instrumentation agent or distribution, if used.
  12155. func TelemetryDistroVersion(val string) attribute.KeyValue {
  12156. return TelemetryDistroVersionKey.String(val)
  12157. }
  12158. // TelemetrySDKName returns an attribute KeyValue conforming to the
  12159. // "telemetry.sdk.name" semantic conventions. It represents the name of the
  12160. // telemetry SDK as defined above.
  12161. func TelemetrySDKName(val string) attribute.KeyValue {
  12162. return TelemetrySDKNameKey.String(val)
  12163. }
  12164. // TelemetrySDKVersion returns an attribute KeyValue conforming to the
  12165. // "telemetry.sdk.version" semantic conventions. It represents the version string
  12166. // of the telemetry SDK.
  12167. func TelemetrySDKVersion(val string) attribute.KeyValue {
  12168. return TelemetrySDKVersionKey.String(val)
  12169. }
  12170. // Enum values for telemetry.sdk.language
  12171. var (
  12172. // cpp
  12173. // Stability: stable
  12174. TelemetrySDKLanguageCPP = TelemetrySDKLanguageKey.String("cpp")
  12175. // dotnet
  12176. // Stability: stable
  12177. TelemetrySDKLanguageDotnet = TelemetrySDKLanguageKey.String("dotnet")
  12178. // erlang
  12179. // Stability: stable
  12180. TelemetrySDKLanguageErlang = TelemetrySDKLanguageKey.String("erlang")
  12181. // go
  12182. // Stability: stable
  12183. TelemetrySDKLanguageGo = TelemetrySDKLanguageKey.String("go")
  12184. // java
  12185. // Stability: stable
  12186. TelemetrySDKLanguageJava = TelemetrySDKLanguageKey.String("java")
  12187. // nodejs
  12188. // Stability: stable
  12189. TelemetrySDKLanguageNodejs = TelemetrySDKLanguageKey.String("nodejs")
  12190. // php
  12191. // Stability: stable
  12192. TelemetrySDKLanguagePHP = TelemetrySDKLanguageKey.String("php")
  12193. // python
  12194. // Stability: stable
  12195. TelemetrySDKLanguagePython = TelemetrySDKLanguageKey.String("python")
  12196. // ruby
  12197. // Stability: stable
  12198. TelemetrySDKLanguageRuby = TelemetrySDKLanguageKey.String("ruby")
  12199. // rust
  12200. // Stability: stable
  12201. TelemetrySDKLanguageRust = TelemetrySDKLanguageKey.String("rust")
  12202. // swift
  12203. // Stability: stable
  12204. TelemetrySDKLanguageSwift = TelemetrySDKLanguageKey.String("swift")
  12205. // webjs
  12206. // Stability: stable
  12207. TelemetrySDKLanguageWebJS = TelemetrySDKLanguageKey.String("webjs")
  12208. )
  12209. // Namespace: test
  12210. const (
  12211. // TestCaseNameKey is the attribute Key conforming to the "test.case.name"
  12212. // semantic conventions. It represents the fully qualified human readable name
  12213. // of the [test case].
  12214. //
  12215. // Type: string
  12216. // RequirementLevel: Recommended
  12217. // Stability: Development
  12218. //
  12219. // Examples: "org.example.TestCase1.test1", "example/tests/TestCase1.test1",
  12220. // "ExampleTestCase1_test1"
  12221. //
  12222. // [test case]: https://wikipedia.org/wiki/Test_case
  12223. TestCaseNameKey = attribute.Key("test.case.name")
  12224. // TestCaseResultStatusKey is the attribute Key conforming to the
  12225. // "test.case.result.status" semantic conventions. It represents the status of
  12226. // the actual test case result from test execution.
  12227. //
  12228. // Type: Enum
  12229. // RequirementLevel: Recommended
  12230. // Stability: Development
  12231. //
  12232. // Examples: "pass", "fail"
  12233. TestCaseResultStatusKey = attribute.Key("test.case.result.status")
  12234. // TestSuiteNameKey is the attribute Key conforming to the "test.suite.name"
  12235. // semantic conventions. It represents the human readable name of a [test suite]
  12236. // .
  12237. //
  12238. // Type: string
  12239. // RequirementLevel: Recommended
  12240. // Stability: Development
  12241. //
  12242. // Examples: "TestSuite1"
  12243. //
  12244. // [test suite]: https://wikipedia.org/wiki/Test_suite
  12245. TestSuiteNameKey = attribute.Key("test.suite.name")
  12246. // TestSuiteRunStatusKey is the attribute Key conforming to the
  12247. // "test.suite.run.status" semantic conventions. It represents the status of the
  12248. // test suite run.
  12249. //
  12250. // Type: Enum
  12251. // RequirementLevel: Recommended
  12252. // Stability: Development
  12253. //
  12254. // Examples: "success", "failure", "skipped", "aborted", "timed_out",
  12255. // "in_progress"
  12256. TestSuiteRunStatusKey = attribute.Key("test.suite.run.status")
  12257. )
  12258. // TestCaseName returns an attribute KeyValue conforming to the "test.case.name"
  12259. // semantic conventions. It represents the fully qualified human readable name of
  12260. // the [test case].
  12261. //
  12262. // [test case]: https://wikipedia.org/wiki/Test_case
  12263. func TestCaseName(val string) attribute.KeyValue {
  12264. return TestCaseNameKey.String(val)
  12265. }
  12266. // TestSuiteName returns an attribute KeyValue conforming to the
  12267. // "test.suite.name" semantic conventions. It represents the human readable name
  12268. // of a [test suite].
  12269. //
  12270. // [test suite]: https://wikipedia.org/wiki/Test_suite
  12271. func TestSuiteName(val string) attribute.KeyValue {
  12272. return TestSuiteNameKey.String(val)
  12273. }
  12274. // Enum values for test.case.result.status
  12275. var (
  12276. // pass
  12277. // Stability: development
  12278. TestCaseResultStatusPass = TestCaseResultStatusKey.String("pass")
  12279. // fail
  12280. // Stability: development
  12281. TestCaseResultStatusFail = TestCaseResultStatusKey.String("fail")
  12282. )
  12283. // Enum values for test.suite.run.status
  12284. var (
  12285. // success
  12286. // Stability: development
  12287. TestSuiteRunStatusSuccess = TestSuiteRunStatusKey.String("success")
  12288. // failure
  12289. // Stability: development
  12290. TestSuiteRunStatusFailure = TestSuiteRunStatusKey.String("failure")
  12291. // skipped
  12292. // Stability: development
  12293. TestSuiteRunStatusSkipped = TestSuiteRunStatusKey.String("skipped")
  12294. // aborted
  12295. // Stability: development
  12296. TestSuiteRunStatusAborted = TestSuiteRunStatusKey.String("aborted")
  12297. // timed_out
  12298. // Stability: development
  12299. TestSuiteRunStatusTimedOut = TestSuiteRunStatusKey.String("timed_out")
  12300. // in_progress
  12301. // Stability: development
  12302. TestSuiteRunStatusInProgress = TestSuiteRunStatusKey.String("in_progress")
  12303. )
  12304. // Namespace: thread
  12305. const (
  12306. // ThreadIDKey is the attribute Key conforming to the "thread.id" semantic
  12307. // conventions. It represents the current "managed" thread ID (as opposed to OS
  12308. // thread ID).
  12309. //
  12310. // Type: int
  12311. // RequirementLevel: Recommended
  12312. // Stability: Development
  12313. ThreadIDKey = attribute.Key("thread.id")
  12314. // ThreadNameKey is the attribute Key conforming to the "thread.name" semantic
  12315. // conventions. It represents the current thread name.
  12316. //
  12317. // Type: string
  12318. // RequirementLevel: Recommended
  12319. // Stability: Development
  12320. //
  12321. // Examples: main
  12322. ThreadNameKey = attribute.Key("thread.name")
  12323. )
  12324. // ThreadID returns an attribute KeyValue conforming to the "thread.id" semantic
  12325. // conventions. It represents the current "managed" thread ID (as opposed to OS
  12326. // thread ID).
  12327. func ThreadID(val int) attribute.KeyValue {
  12328. return ThreadIDKey.Int(val)
  12329. }
  12330. // ThreadName returns an attribute KeyValue conforming to the "thread.name"
  12331. // semantic conventions. It represents the current thread name.
  12332. func ThreadName(val string) attribute.KeyValue {
  12333. return ThreadNameKey.String(val)
  12334. }
  12335. // Namespace: tls
  12336. const (
  12337. // TLSCipherKey is the attribute Key conforming to the "tls.cipher" semantic
  12338. // conventions. It represents the string indicating the [cipher] used during the
  12339. // current connection.
  12340. //
  12341. // Type: string
  12342. // RequirementLevel: Recommended
  12343. // Stability: Development
  12344. //
  12345. // Examples: "TLS_RSA_WITH_3DES_EDE_CBC_SHA",
  12346. // "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256"
  12347. // Note: The values allowed for `tls.cipher` MUST be one of the `Descriptions`
  12348. // of the [registered TLS Cipher Suits].
  12349. //
  12350. // [cipher]: https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5
  12351. // [registered TLS Cipher Suits]: https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#table-tls-parameters-4
  12352. TLSCipherKey = attribute.Key("tls.cipher")
  12353. // TLSClientCertificateKey is the attribute Key conforming to the
  12354. // "tls.client.certificate" semantic conventions. It represents the PEM-encoded
  12355. // stand-alone certificate offered by the client. This is usually
  12356. // mutually-exclusive of `client.certificate_chain` since this value also exists
  12357. // in that list.
  12358. //
  12359. // Type: string
  12360. // RequirementLevel: Recommended
  12361. // Stability: Development
  12362. //
  12363. // Examples: "MII..."
  12364. TLSClientCertificateKey = attribute.Key("tls.client.certificate")
  12365. // TLSClientCertificateChainKey is the attribute Key conforming to the
  12366. // "tls.client.certificate_chain" semantic conventions. It represents the array
  12367. // of PEM-encoded certificates that make up the certificate chain offered by the
  12368. // client. This is usually mutually-exclusive of `client.certificate` since that
  12369. // value should be the first certificate in the chain.
  12370. //
  12371. // Type: string[]
  12372. // RequirementLevel: Recommended
  12373. // Stability: Development
  12374. //
  12375. // Examples: "MII...", "MI..."
  12376. TLSClientCertificateChainKey = attribute.Key("tls.client.certificate_chain")
  12377. // TLSClientHashMd5Key is the attribute Key conforming to the
  12378. // "tls.client.hash.md5" semantic conventions. It represents the certificate
  12379. // fingerprint using the MD5 digest of DER-encoded version of certificate
  12380. // offered by the client. For consistency with other hash values, this value
  12381. // should be formatted as an uppercase hash.
  12382. //
  12383. // Type: string
  12384. // RequirementLevel: Recommended
  12385. // Stability: Development
  12386. //
  12387. // Examples: "0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC"
  12388. TLSClientHashMd5Key = attribute.Key("tls.client.hash.md5")
  12389. // TLSClientHashSha1Key is the attribute Key conforming to the
  12390. // "tls.client.hash.sha1" semantic conventions. It represents the certificate
  12391. // fingerprint using the SHA1 digest of DER-encoded version of certificate
  12392. // offered by the client. For consistency with other hash values, this value
  12393. // should be formatted as an uppercase hash.
  12394. //
  12395. // Type: string
  12396. // RequirementLevel: Recommended
  12397. // Stability: Development
  12398. //
  12399. // Examples: "9E393D93138888D288266C2D915214D1D1CCEB2A"
  12400. TLSClientHashSha1Key = attribute.Key("tls.client.hash.sha1")
  12401. // TLSClientHashSha256Key is the attribute Key conforming to the
  12402. // "tls.client.hash.sha256" semantic conventions. It represents the certificate
  12403. // fingerprint using the SHA256 digest of DER-encoded version of certificate
  12404. // offered by the client. For consistency with other hash values, this value
  12405. // should be formatted as an uppercase hash.
  12406. //
  12407. // Type: string
  12408. // RequirementLevel: Recommended
  12409. // Stability: Development
  12410. //
  12411. // Examples: "0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0"
  12412. TLSClientHashSha256Key = attribute.Key("tls.client.hash.sha256")
  12413. // TLSClientIssuerKey is the attribute Key conforming to the "tls.client.issuer"
  12414. // semantic conventions. It represents the distinguished name of [subject] of
  12415. // the issuer of the x.509 certificate presented by the client.
  12416. //
  12417. // Type: string
  12418. // RequirementLevel: Recommended
  12419. // Stability: Development
  12420. //
  12421. // Examples: "CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com"
  12422. //
  12423. // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
  12424. TLSClientIssuerKey = attribute.Key("tls.client.issuer")
  12425. // TLSClientJa3Key is the attribute Key conforming to the "tls.client.ja3"
  12426. // semantic conventions. It represents a hash that identifies clients based on
  12427. // how they perform an SSL/TLS handshake.
  12428. //
  12429. // Type: string
  12430. // RequirementLevel: Recommended
  12431. // Stability: Development
  12432. //
  12433. // Examples: "d4e5b18d6b55c71272893221c96ba240"
  12434. TLSClientJa3Key = attribute.Key("tls.client.ja3")
  12435. // TLSClientNotAfterKey is the attribute Key conforming to the
  12436. // "tls.client.not_after" semantic conventions. It represents the date/Time
  12437. // indicating when client certificate is no longer considered valid.
  12438. //
  12439. // Type: string
  12440. // RequirementLevel: Recommended
  12441. // Stability: Development
  12442. //
  12443. // Examples: "2021-01-01T00:00:00.000Z"
  12444. TLSClientNotAfterKey = attribute.Key("tls.client.not_after")
  12445. // TLSClientNotBeforeKey is the attribute Key conforming to the
  12446. // "tls.client.not_before" semantic conventions. It represents the date/Time
  12447. // indicating when client certificate is first considered valid.
  12448. //
  12449. // Type: string
  12450. // RequirementLevel: Recommended
  12451. // Stability: Development
  12452. //
  12453. // Examples: "1970-01-01T00:00:00.000Z"
  12454. TLSClientNotBeforeKey = attribute.Key("tls.client.not_before")
  12455. // TLSClientSubjectKey is the attribute Key conforming to the
  12456. // "tls.client.subject" semantic conventions. It represents the distinguished
  12457. // name of subject of the x.509 certificate presented by the client.
  12458. //
  12459. // Type: string
  12460. // RequirementLevel: Recommended
  12461. // Stability: Development
  12462. //
  12463. // Examples: "CN=myclient, OU=Documentation Team, DC=example, DC=com"
  12464. TLSClientSubjectKey = attribute.Key("tls.client.subject")
  12465. // TLSClientSupportedCiphersKey is the attribute Key conforming to the
  12466. // "tls.client.supported_ciphers" semantic conventions. It represents the array
  12467. // of ciphers offered by the client during the client hello.
  12468. //
  12469. // Type: string[]
  12470. // RequirementLevel: Recommended
  12471. // Stability: Development
  12472. //
  12473. // Examples: "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384",
  12474. // "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384"
  12475. TLSClientSupportedCiphersKey = attribute.Key("tls.client.supported_ciphers")
  12476. // TLSCurveKey is the attribute Key conforming to the "tls.curve" semantic
  12477. // conventions. It represents the string indicating the curve used for the given
  12478. // cipher, when applicable.
  12479. //
  12480. // Type: string
  12481. // RequirementLevel: Recommended
  12482. // Stability: Development
  12483. //
  12484. // Examples: "secp256r1"
  12485. TLSCurveKey = attribute.Key("tls.curve")
  12486. // TLSEstablishedKey is the attribute Key conforming to the "tls.established"
  12487. // semantic conventions. It represents the boolean flag indicating if the TLS
  12488. // negotiation was successful and transitioned to an encrypted tunnel.
  12489. //
  12490. // Type: boolean
  12491. // RequirementLevel: Recommended
  12492. // Stability: Development
  12493. //
  12494. // Examples: true
  12495. TLSEstablishedKey = attribute.Key("tls.established")
  12496. // TLSNextProtocolKey is the attribute Key conforming to the "tls.next_protocol"
  12497. // semantic conventions. It represents the string indicating the protocol being
  12498. // tunneled. Per the values in the [IANA registry], this string should be lower
  12499. // case.
  12500. //
  12501. // Type: string
  12502. // RequirementLevel: Recommended
  12503. // Stability: Development
  12504. //
  12505. // Examples: "http/1.1"
  12506. //
  12507. // [IANA registry]: https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
  12508. TLSNextProtocolKey = attribute.Key("tls.next_protocol")
  12509. // TLSProtocolNameKey is the attribute Key conforming to the "tls.protocol.name"
  12510. // semantic conventions. It represents the normalized lowercase protocol name
  12511. // parsed from original string of the negotiated [SSL/TLS protocol version].
  12512. //
  12513. // Type: Enum
  12514. // RequirementLevel: Recommended
  12515. // Stability: Development
  12516. //
  12517. // Examples:
  12518. //
  12519. // [SSL/TLS protocol version]: https://docs.openssl.org/1.1.1/man3/SSL_get_version/#return-values
  12520. TLSProtocolNameKey = attribute.Key("tls.protocol.name")
  12521. // TLSProtocolVersionKey is the attribute Key conforming to the
  12522. // "tls.protocol.version" semantic conventions. It represents the numeric part
  12523. // of the version parsed from the original string of the negotiated
  12524. // [SSL/TLS protocol version].
  12525. //
  12526. // Type: string
  12527. // RequirementLevel: Recommended
  12528. // Stability: Development
  12529. //
  12530. // Examples: "1.2", "3"
  12531. //
  12532. // [SSL/TLS protocol version]: https://docs.openssl.org/1.1.1/man3/SSL_get_version/#return-values
  12533. TLSProtocolVersionKey = attribute.Key("tls.protocol.version")
  12534. // TLSResumedKey is the attribute Key conforming to the "tls.resumed" semantic
  12535. // conventions. It represents the boolean flag indicating if this TLS connection
  12536. // was resumed from an existing TLS negotiation.
  12537. //
  12538. // Type: boolean
  12539. // RequirementLevel: Recommended
  12540. // Stability: Development
  12541. //
  12542. // Examples: true
  12543. TLSResumedKey = attribute.Key("tls.resumed")
  12544. // TLSServerCertificateKey is the attribute Key conforming to the
  12545. // "tls.server.certificate" semantic conventions. It represents the PEM-encoded
  12546. // stand-alone certificate offered by the server. This is usually
  12547. // mutually-exclusive of `server.certificate_chain` since this value also exists
  12548. // in that list.
  12549. //
  12550. // Type: string
  12551. // RequirementLevel: Recommended
  12552. // Stability: Development
  12553. //
  12554. // Examples: "MII..."
  12555. TLSServerCertificateKey = attribute.Key("tls.server.certificate")
  12556. // TLSServerCertificateChainKey is the attribute Key conforming to the
  12557. // "tls.server.certificate_chain" semantic conventions. It represents the array
  12558. // of PEM-encoded certificates that make up the certificate chain offered by the
  12559. // server. This is usually mutually-exclusive of `server.certificate` since that
  12560. // value should be the first certificate in the chain.
  12561. //
  12562. // Type: string[]
  12563. // RequirementLevel: Recommended
  12564. // Stability: Development
  12565. //
  12566. // Examples: "MII...", "MI..."
  12567. TLSServerCertificateChainKey = attribute.Key("tls.server.certificate_chain")
  12568. // TLSServerHashMd5Key is the attribute Key conforming to the
  12569. // "tls.server.hash.md5" semantic conventions. It represents the certificate
  12570. // fingerprint using the MD5 digest of DER-encoded version of certificate
  12571. // offered by the server. For consistency with other hash values, this value
  12572. // should be formatted as an uppercase hash.
  12573. //
  12574. // Type: string
  12575. // RequirementLevel: Recommended
  12576. // Stability: Development
  12577. //
  12578. // Examples: "0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC"
  12579. TLSServerHashMd5Key = attribute.Key("tls.server.hash.md5")
  12580. // TLSServerHashSha1Key is the attribute Key conforming to the
  12581. // "tls.server.hash.sha1" semantic conventions. It represents the certificate
  12582. // fingerprint using the SHA1 digest of DER-encoded version of certificate
  12583. // offered by the server. For consistency with other hash values, this value
  12584. // should be formatted as an uppercase hash.
  12585. //
  12586. // Type: string
  12587. // RequirementLevel: Recommended
  12588. // Stability: Development
  12589. //
  12590. // Examples: "9E393D93138888D288266C2D915214D1D1CCEB2A"
  12591. TLSServerHashSha1Key = attribute.Key("tls.server.hash.sha1")
  12592. // TLSServerHashSha256Key is the attribute Key conforming to the
  12593. // "tls.server.hash.sha256" semantic conventions. It represents the certificate
  12594. // fingerprint using the SHA256 digest of DER-encoded version of certificate
  12595. // offered by the server. For consistency with other hash values, this value
  12596. // should be formatted as an uppercase hash.
  12597. //
  12598. // Type: string
  12599. // RequirementLevel: Recommended
  12600. // Stability: Development
  12601. //
  12602. // Examples: "0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0"
  12603. TLSServerHashSha256Key = attribute.Key("tls.server.hash.sha256")
  12604. // TLSServerIssuerKey is the attribute Key conforming to the "tls.server.issuer"
  12605. // semantic conventions. It represents the distinguished name of [subject] of
  12606. // the issuer of the x.509 certificate presented by the client.
  12607. //
  12608. // Type: string
  12609. // RequirementLevel: Recommended
  12610. // Stability: Development
  12611. //
  12612. // Examples: "CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com"
  12613. //
  12614. // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
  12615. TLSServerIssuerKey = attribute.Key("tls.server.issuer")
  12616. // TLSServerJa3sKey is the attribute Key conforming to the "tls.server.ja3s"
  12617. // semantic conventions. It represents a hash that identifies servers based on
  12618. // how they perform an SSL/TLS handshake.
  12619. //
  12620. // Type: string
  12621. // RequirementLevel: Recommended
  12622. // Stability: Development
  12623. //
  12624. // Examples: "d4e5b18d6b55c71272893221c96ba240"
  12625. TLSServerJa3sKey = attribute.Key("tls.server.ja3s")
  12626. // TLSServerNotAfterKey is the attribute Key conforming to the
  12627. // "tls.server.not_after" semantic conventions. It represents the date/Time
  12628. // indicating when server certificate is no longer considered valid.
  12629. //
  12630. // Type: string
  12631. // RequirementLevel: Recommended
  12632. // Stability: Development
  12633. //
  12634. // Examples: "2021-01-01T00:00:00.000Z"
  12635. TLSServerNotAfterKey = attribute.Key("tls.server.not_after")
  12636. // TLSServerNotBeforeKey is the attribute Key conforming to the
  12637. // "tls.server.not_before" semantic conventions. It represents the date/Time
  12638. // indicating when server certificate is first considered valid.
  12639. //
  12640. // Type: string
  12641. // RequirementLevel: Recommended
  12642. // Stability: Development
  12643. //
  12644. // Examples: "1970-01-01T00:00:00.000Z"
  12645. TLSServerNotBeforeKey = attribute.Key("tls.server.not_before")
  12646. // TLSServerSubjectKey is the attribute Key conforming to the
  12647. // "tls.server.subject" semantic conventions. It represents the distinguished
  12648. // name of subject of the x.509 certificate presented by the server.
  12649. //
  12650. // Type: string
  12651. // RequirementLevel: Recommended
  12652. // Stability: Development
  12653. //
  12654. // Examples: "CN=myserver, OU=Documentation Team, DC=example, DC=com"
  12655. TLSServerSubjectKey = attribute.Key("tls.server.subject")
  12656. )
  12657. // TLSCipher returns an attribute KeyValue conforming to the "tls.cipher"
  12658. // semantic conventions. It represents the string indicating the [cipher] used
  12659. // during the current connection.
  12660. //
  12661. // [cipher]: https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5
  12662. func TLSCipher(val string) attribute.KeyValue {
  12663. return TLSCipherKey.String(val)
  12664. }
  12665. // TLSClientCertificate returns an attribute KeyValue conforming to the
  12666. // "tls.client.certificate" semantic conventions. It represents the PEM-encoded
  12667. // stand-alone certificate offered by the client. This is usually
  12668. // mutually-exclusive of `client.certificate_chain` since this value also exists
  12669. // in that list.
  12670. func TLSClientCertificate(val string) attribute.KeyValue {
  12671. return TLSClientCertificateKey.String(val)
  12672. }
  12673. // TLSClientCertificateChain returns an attribute KeyValue conforming to the
  12674. // "tls.client.certificate_chain" semantic conventions. It represents the array
  12675. // of PEM-encoded certificates that make up the certificate chain offered by the
  12676. // client. This is usually mutually-exclusive of `client.certificate` since that
  12677. // value should be the first certificate in the chain.
  12678. func TLSClientCertificateChain(val ...string) attribute.KeyValue {
  12679. return TLSClientCertificateChainKey.StringSlice(val)
  12680. }
  12681. // TLSClientHashMd5 returns an attribute KeyValue conforming to the
  12682. // "tls.client.hash.md5" semantic conventions. It represents the certificate
  12683. // fingerprint using the MD5 digest of DER-encoded version of certificate offered
  12684. // by the client. For consistency with other hash values, this value should be
  12685. // formatted as an uppercase hash.
  12686. func TLSClientHashMd5(val string) attribute.KeyValue {
  12687. return TLSClientHashMd5Key.String(val)
  12688. }
  12689. // TLSClientHashSha1 returns an attribute KeyValue conforming to the
  12690. // "tls.client.hash.sha1" semantic conventions. It represents the certificate
  12691. // fingerprint using the SHA1 digest of DER-encoded version of certificate
  12692. // offered by the client. For consistency with other hash values, this value
  12693. // should be formatted as an uppercase hash.
  12694. func TLSClientHashSha1(val string) attribute.KeyValue {
  12695. return TLSClientHashSha1Key.String(val)
  12696. }
  12697. // TLSClientHashSha256 returns an attribute KeyValue conforming to the
  12698. // "tls.client.hash.sha256" semantic conventions. It represents the certificate
  12699. // fingerprint using the SHA256 digest of DER-encoded version of certificate
  12700. // offered by the client. For consistency with other hash values, this value
  12701. // should be formatted as an uppercase hash.
  12702. func TLSClientHashSha256(val string) attribute.KeyValue {
  12703. return TLSClientHashSha256Key.String(val)
  12704. }
  12705. // TLSClientIssuer returns an attribute KeyValue conforming to the
  12706. // "tls.client.issuer" semantic conventions. It represents the distinguished name
  12707. // of [subject] of the issuer of the x.509 certificate presented by the client.
  12708. //
  12709. // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
  12710. func TLSClientIssuer(val string) attribute.KeyValue {
  12711. return TLSClientIssuerKey.String(val)
  12712. }
  12713. // TLSClientJa3 returns an attribute KeyValue conforming to the "tls.client.ja3"
  12714. // semantic conventions. It represents a hash that identifies clients based on
  12715. // how they perform an SSL/TLS handshake.
  12716. func TLSClientJa3(val string) attribute.KeyValue {
  12717. return TLSClientJa3Key.String(val)
  12718. }
  12719. // TLSClientNotAfter returns an attribute KeyValue conforming to the
  12720. // "tls.client.not_after" semantic conventions. It represents the date/Time
  12721. // indicating when client certificate is no longer considered valid.
  12722. func TLSClientNotAfter(val string) attribute.KeyValue {
  12723. return TLSClientNotAfterKey.String(val)
  12724. }
  12725. // TLSClientNotBefore returns an attribute KeyValue conforming to the
  12726. // "tls.client.not_before" semantic conventions. It represents the date/Time
  12727. // indicating when client certificate is first considered valid.
  12728. func TLSClientNotBefore(val string) attribute.KeyValue {
  12729. return TLSClientNotBeforeKey.String(val)
  12730. }
  12731. // TLSClientSubject returns an attribute KeyValue conforming to the
  12732. // "tls.client.subject" semantic conventions. It represents the distinguished
  12733. // name of subject of the x.509 certificate presented by the client.
  12734. func TLSClientSubject(val string) attribute.KeyValue {
  12735. return TLSClientSubjectKey.String(val)
  12736. }
  12737. // TLSClientSupportedCiphers returns an attribute KeyValue conforming to the
  12738. // "tls.client.supported_ciphers" semantic conventions. It represents the array
  12739. // of ciphers offered by the client during the client hello.
  12740. func TLSClientSupportedCiphers(val ...string) attribute.KeyValue {
  12741. return TLSClientSupportedCiphersKey.StringSlice(val)
  12742. }
  12743. // TLSCurve returns an attribute KeyValue conforming to the "tls.curve" semantic
  12744. // conventions. It represents the string indicating the curve used for the given
  12745. // cipher, when applicable.
  12746. func TLSCurve(val string) attribute.KeyValue {
  12747. return TLSCurveKey.String(val)
  12748. }
  12749. // TLSEstablished returns an attribute KeyValue conforming to the
  12750. // "tls.established" semantic conventions. It represents the boolean flag
  12751. // indicating if the TLS negotiation was successful and transitioned to an
  12752. // encrypted tunnel.
  12753. func TLSEstablished(val bool) attribute.KeyValue {
  12754. return TLSEstablishedKey.Bool(val)
  12755. }
  12756. // TLSNextProtocol returns an attribute KeyValue conforming to the
  12757. // "tls.next_protocol" semantic conventions. It represents the string indicating
  12758. // the protocol being tunneled. Per the values in the [IANA registry], this
  12759. // string should be lower case.
  12760. //
  12761. // [IANA registry]: https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
  12762. func TLSNextProtocol(val string) attribute.KeyValue {
  12763. return TLSNextProtocolKey.String(val)
  12764. }
  12765. // TLSProtocolVersion returns an attribute KeyValue conforming to the
  12766. // "tls.protocol.version" semantic conventions. It represents the numeric part of
  12767. // the version parsed from the original string of the negotiated
  12768. // [SSL/TLS protocol version].
  12769. //
  12770. // [SSL/TLS protocol version]: https://docs.openssl.org/1.1.1/man3/SSL_get_version/#return-values
  12771. func TLSProtocolVersion(val string) attribute.KeyValue {
  12772. return TLSProtocolVersionKey.String(val)
  12773. }
  12774. // TLSResumed returns an attribute KeyValue conforming to the "tls.resumed"
  12775. // semantic conventions. It represents the boolean flag indicating if this TLS
  12776. // connection was resumed from an existing TLS negotiation.
  12777. func TLSResumed(val bool) attribute.KeyValue {
  12778. return TLSResumedKey.Bool(val)
  12779. }
  12780. // TLSServerCertificate returns an attribute KeyValue conforming to the
  12781. // "tls.server.certificate" semantic conventions. It represents the PEM-encoded
  12782. // stand-alone certificate offered by the server. This is usually
  12783. // mutually-exclusive of `server.certificate_chain` since this value also exists
  12784. // in that list.
  12785. func TLSServerCertificate(val string) attribute.KeyValue {
  12786. return TLSServerCertificateKey.String(val)
  12787. }
  12788. // TLSServerCertificateChain returns an attribute KeyValue conforming to the
  12789. // "tls.server.certificate_chain" semantic conventions. It represents the array
  12790. // of PEM-encoded certificates that make up the certificate chain offered by the
  12791. // server. This is usually mutually-exclusive of `server.certificate` since that
  12792. // value should be the first certificate in the chain.
  12793. func TLSServerCertificateChain(val ...string) attribute.KeyValue {
  12794. return TLSServerCertificateChainKey.StringSlice(val)
  12795. }
  12796. // TLSServerHashMd5 returns an attribute KeyValue conforming to the
  12797. // "tls.server.hash.md5" semantic conventions. It represents the certificate
  12798. // fingerprint using the MD5 digest of DER-encoded version of certificate offered
  12799. // by the server. For consistency with other hash values, this value should be
  12800. // formatted as an uppercase hash.
  12801. func TLSServerHashMd5(val string) attribute.KeyValue {
  12802. return TLSServerHashMd5Key.String(val)
  12803. }
  12804. // TLSServerHashSha1 returns an attribute KeyValue conforming to the
  12805. // "tls.server.hash.sha1" semantic conventions. It represents the certificate
  12806. // fingerprint using the SHA1 digest of DER-encoded version of certificate
  12807. // offered by the server. For consistency with other hash values, this value
  12808. // should be formatted as an uppercase hash.
  12809. func TLSServerHashSha1(val string) attribute.KeyValue {
  12810. return TLSServerHashSha1Key.String(val)
  12811. }
  12812. // TLSServerHashSha256 returns an attribute KeyValue conforming to the
  12813. // "tls.server.hash.sha256" semantic conventions. It represents the certificate
  12814. // fingerprint using the SHA256 digest of DER-encoded version of certificate
  12815. // offered by the server. For consistency with other hash values, this value
  12816. // should be formatted as an uppercase hash.
  12817. func TLSServerHashSha256(val string) attribute.KeyValue {
  12818. return TLSServerHashSha256Key.String(val)
  12819. }
  12820. // TLSServerIssuer returns an attribute KeyValue conforming to the
  12821. // "tls.server.issuer" semantic conventions. It represents the distinguished name
  12822. // of [subject] of the issuer of the x.509 certificate presented by the client.
  12823. //
  12824. // [subject]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
  12825. func TLSServerIssuer(val string) attribute.KeyValue {
  12826. return TLSServerIssuerKey.String(val)
  12827. }
  12828. // TLSServerJa3s returns an attribute KeyValue conforming to the
  12829. // "tls.server.ja3s" semantic conventions. It represents a hash that identifies
  12830. // servers based on how they perform an SSL/TLS handshake.
  12831. func TLSServerJa3s(val string) attribute.KeyValue {
  12832. return TLSServerJa3sKey.String(val)
  12833. }
  12834. // TLSServerNotAfter returns an attribute KeyValue conforming to the
  12835. // "tls.server.not_after" semantic conventions. It represents the date/Time
  12836. // indicating when server certificate is no longer considered valid.
  12837. func TLSServerNotAfter(val string) attribute.KeyValue {
  12838. return TLSServerNotAfterKey.String(val)
  12839. }
  12840. // TLSServerNotBefore returns an attribute KeyValue conforming to the
  12841. // "tls.server.not_before" semantic conventions. It represents the date/Time
  12842. // indicating when server certificate is first considered valid.
  12843. func TLSServerNotBefore(val string) attribute.KeyValue {
  12844. return TLSServerNotBeforeKey.String(val)
  12845. }
  12846. // TLSServerSubject returns an attribute KeyValue conforming to the
  12847. // "tls.server.subject" semantic conventions. It represents the distinguished
  12848. // name of subject of the x.509 certificate presented by the server.
  12849. func TLSServerSubject(val string) attribute.KeyValue {
  12850. return TLSServerSubjectKey.String(val)
  12851. }
  12852. // Enum values for tls.protocol.name
  12853. var (
  12854. // ssl
  12855. // Stability: development
  12856. TLSProtocolNameSsl = TLSProtocolNameKey.String("ssl")
  12857. // tls
  12858. // Stability: development
  12859. TLSProtocolNameTLS = TLSProtocolNameKey.String("tls")
  12860. )
  12861. // Namespace: url
  12862. const (
  12863. // URLDomainKey is the attribute Key conforming to the "url.domain" semantic
  12864. // conventions. It represents the domain extracted from the `url.full`, such as
  12865. // "opentelemetry.io".
  12866. //
  12867. // Type: string
  12868. // RequirementLevel: Recommended
  12869. // Stability: Development
  12870. //
  12871. // Examples: "www.foo.bar", "opentelemetry.io", "3.12.167.2",
  12872. // "[1080:0:0:0:8:800:200C:417A]"
  12873. // Note: In some cases a URL may refer to an IP and/or port directly, without a
  12874. // domain name. In this case, the IP address would go to the domain field. If
  12875. // the URL contains a [literal IPv6 address] enclosed by `[` and `]`, the `[`
  12876. // and `]` characters should also be captured in the domain field.
  12877. //
  12878. // [literal IPv6 address]: https://www.rfc-editor.org/rfc/rfc2732#section-2
  12879. URLDomainKey = attribute.Key("url.domain")
  12880. // URLExtensionKey is the attribute Key conforming to the "url.extension"
  12881. // semantic conventions. It represents the file extension extracted from the
  12882. // `url.full`, excluding the leading dot.
  12883. //
  12884. // Type: string
  12885. // RequirementLevel: Recommended
  12886. // Stability: Development
  12887. //
  12888. // Examples: "png", "gz"
  12889. // Note: The file extension is only set if it exists, as not every url has a
  12890. // file extension. When the file name has multiple extensions `example.tar.gz`,
  12891. // only the last one should be captured `gz`, not `tar.gz`.
  12892. URLExtensionKey = attribute.Key("url.extension")
  12893. // URLFragmentKey is the attribute Key conforming to the "url.fragment" semantic
  12894. // conventions. It represents the [URI fragment] component.
  12895. //
  12896. // Type: string
  12897. // RequirementLevel: Recommended
  12898. // Stability: Stable
  12899. //
  12900. // Examples: "SemConv"
  12901. //
  12902. // [URI fragment]: https://www.rfc-editor.org/rfc/rfc3986#section-3.5
  12903. URLFragmentKey = attribute.Key("url.fragment")
  12904. // URLFullKey is the attribute Key conforming to the "url.full" semantic
  12905. // conventions. It represents the absolute URL describing a network resource
  12906. // according to [RFC3986].
  12907. //
  12908. // Type: string
  12909. // RequirementLevel: Recommended
  12910. // Stability: Stable
  12911. //
  12912. // Examples: "https://www.foo.bar/search?q=OpenTelemetry#SemConv", "//localhost"
  12913. // Note: For network calls, URL usually has
  12914. // `scheme://host[:port][path][?query][#fragment]` format, where the fragment
  12915. // is not transmitted over HTTP, but if it is known, it SHOULD be included
  12916. // nevertheless.
  12917. //
  12918. // `url.full` MUST NOT contain credentials passed via URL in form of
  12919. // `https://username:password@www.example.com/`.
  12920. // In such case username and password SHOULD be redacted and attribute's value
  12921. // SHOULD be `https://REDACTED:REDACTED@www.example.com/`.
  12922. //
  12923. // `url.full` SHOULD capture the absolute URL when it is available (or can be
  12924. // reconstructed).
  12925. //
  12926. // Sensitive content provided in `url.full` SHOULD be scrubbed when
  12927. // instrumentations can identify it.
  12928. //
  12929. //
  12930. // Query string values for the following keys SHOULD be redacted by default and
  12931. // replaced by the
  12932. // value `REDACTED`:
  12933. //
  12934. // - [`AWSAccessKeyId`]
  12935. // - [`Signature`]
  12936. // - [`sig`]
  12937. // - [`X-Goog-Signature`]
  12938. //
  12939. // This list is subject to change over time.
  12940. //
  12941. // When a query string value is redacted, the query string key SHOULD still be
  12942. // preserved, e.g.
  12943. // `https://www.example.com/path?color=blue&sig=REDACTED`.
  12944. //
  12945. // [RFC3986]: https://www.rfc-editor.org/rfc/rfc3986
  12946. // [`AWSAccessKeyId`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
  12947. // [`Signature`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
  12948. // [`sig`]: https://learn.microsoft.com/azure/storage/common/storage-sas-overview#sas-token
  12949. // [`X-Goog-Signature`]: https://cloud.google.com/storage/docs/access-control/signed-urls
  12950. URLFullKey = attribute.Key("url.full")
  12951. // URLOriginalKey is the attribute Key conforming to the "url.original" semantic
  12952. // conventions. It represents the unmodified original URL as seen in the event
  12953. // source.
  12954. //
  12955. // Type: string
  12956. // RequirementLevel: Recommended
  12957. // Stability: Development
  12958. //
  12959. // Examples: "https://www.foo.bar/search?q=OpenTelemetry#SemConv",
  12960. // "search?q=OpenTelemetry"
  12961. // Note: In network monitoring, the observed URL may be a full URL, whereas in
  12962. // access logs, the URL is often just represented as a path. This field is meant
  12963. // to represent the URL as it was observed, complete or not.
  12964. // `url.original` might contain credentials passed via URL in form of
  12965. // `https://username:password@www.example.com/`. In such case password and
  12966. // username SHOULD NOT be redacted and attribute's value SHOULD remain the same.
  12967. URLOriginalKey = attribute.Key("url.original")
  12968. // URLPathKey is the attribute Key conforming to the "url.path" semantic
  12969. // conventions. It represents the [URI path] component.
  12970. //
  12971. // Type: string
  12972. // RequirementLevel: Recommended
  12973. // Stability: Stable
  12974. //
  12975. // Examples: "/search"
  12976. // Note: Sensitive content provided in `url.path` SHOULD be scrubbed when
  12977. // instrumentations can identify it.
  12978. //
  12979. // [URI path]: https://www.rfc-editor.org/rfc/rfc3986#section-3.3
  12980. URLPathKey = attribute.Key("url.path")
  12981. // URLPortKey is the attribute Key conforming to the "url.port" semantic
  12982. // conventions. It represents the port extracted from the `url.full`.
  12983. //
  12984. // Type: int
  12985. // RequirementLevel: Recommended
  12986. // Stability: Development
  12987. //
  12988. // Examples: 443
  12989. URLPortKey = attribute.Key("url.port")
  12990. // URLQueryKey is the attribute Key conforming to the "url.query" semantic
  12991. // conventions. It represents the [URI query] component.
  12992. //
  12993. // Type: string
  12994. // RequirementLevel: Recommended
  12995. // Stability: Stable
  12996. //
  12997. // Examples: "q=OpenTelemetry"
  12998. // Note: Sensitive content provided in `url.query` SHOULD be scrubbed when
  12999. // instrumentations can identify it.
  13000. //
  13001. //
  13002. // Query string values for the following keys SHOULD be redacted by default and
  13003. // replaced by the value `REDACTED`:
  13004. //
  13005. // - [`AWSAccessKeyId`]
  13006. // - [`Signature`]
  13007. // - [`sig`]
  13008. // - [`X-Goog-Signature`]
  13009. //
  13010. // This list is subject to change over time.
  13011. //
  13012. // When a query string value is redacted, the query string key SHOULD still be
  13013. // preserved, e.g.
  13014. // `q=OpenTelemetry&sig=REDACTED`.
  13015. //
  13016. // [URI query]: https://www.rfc-editor.org/rfc/rfc3986#section-3.4
  13017. // [`AWSAccessKeyId`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
  13018. // [`Signature`]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth
  13019. // [`sig`]: https://learn.microsoft.com/azure/storage/common/storage-sas-overview#sas-token
  13020. // [`X-Goog-Signature`]: https://cloud.google.com/storage/docs/access-control/signed-urls
  13021. URLQueryKey = attribute.Key("url.query")
  13022. // URLRegisteredDomainKey is the attribute Key conforming to the
  13023. // "url.registered_domain" semantic conventions. It represents the highest
  13024. // registered url domain, stripped of the subdomain.
  13025. //
  13026. // Type: string
  13027. // RequirementLevel: Recommended
  13028. // Stability: Development
  13029. //
  13030. // Examples: "example.com", "foo.co.uk"
  13031. // Note: This value can be determined precisely with the [public suffix list].
  13032. // For example, the registered domain for `foo.example.com` is `example.com`.
  13033. // Trying to approximate this by simply taking the last two labels will not work
  13034. // well for TLDs such as `co.uk`.
  13035. //
  13036. // [public suffix list]: https://publicsuffix.org/
  13037. URLRegisteredDomainKey = attribute.Key("url.registered_domain")
  13038. // URLSchemeKey is the attribute Key conforming to the "url.scheme" semantic
  13039. // conventions. It represents the [URI scheme] component identifying the used
  13040. // protocol.
  13041. //
  13042. // Type: string
  13043. // RequirementLevel: Recommended
  13044. // Stability: Stable
  13045. //
  13046. // Examples: "https", "ftp", "telnet"
  13047. //
  13048. // [URI scheme]: https://www.rfc-editor.org/rfc/rfc3986#section-3.1
  13049. URLSchemeKey = attribute.Key("url.scheme")
  13050. // URLSubdomainKey is the attribute Key conforming to the "url.subdomain"
  13051. // semantic conventions. It represents the subdomain portion of a fully
  13052. // qualified domain name includes all of the names except the host name under
  13053. // the registered_domain. In a partially qualified domain, or if the
  13054. // qualification level of the full name cannot be determined, subdomain contains
  13055. // all of the names below the registered domain.
  13056. //
  13057. // Type: string
  13058. // RequirementLevel: Recommended
  13059. // Stability: Development
  13060. //
  13061. // Examples: "east", "sub2.sub1"
  13062. // Note: The subdomain portion of `www.east.mydomain.co.uk` is `east`. If the
  13063. // domain has multiple levels of subdomain, such as `sub2.sub1.example.com`, the
  13064. // subdomain field should contain `sub2.sub1`, with no trailing period.
  13065. URLSubdomainKey = attribute.Key("url.subdomain")
  13066. // URLTemplateKey is the attribute Key conforming to the "url.template" semantic
  13067. // conventions. It represents the low-cardinality template of an
  13068. // [absolute path reference].
  13069. //
  13070. // Type: string
  13071. // RequirementLevel: Recommended
  13072. // Stability: Development
  13073. //
  13074. // Examples: "/users/{id}", "/users/:id", "/users?id={id}"
  13075. //
  13076. // [absolute path reference]: https://www.rfc-editor.org/rfc/rfc3986#section-4.2
  13077. URLTemplateKey = attribute.Key("url.template")
  13078. // URLTopLevelDomainKey is the attribute Key conforming to the
  13079. // "url.top_level_domain" semantic conventions. It represents the effective top
  13080. // level domain (eTLD), also known as the domain suffix, is the last part of the
  13081. // domain name. For example, the top level domain for example.com is `com`.
  13082. //
  13083. // Type: string
  13084. // RequirementLevel: Recommended
  13085. // Stability: Development
  13086. //
  13087. // Examples: "com", "co.uk"
  13088. // Note: This value can be determined precisely with the [public suffix list].
  13089. //
  13090. // [public suffix list]: https://publicsuffix.org/
  13091. URLTopLevelDomainKey = attribute.Key("url.top_level_domain")
  13092. )
  13093. // URLDomain returns an attribute KeyValue conforming to the "url.domain"
  13094. // semantic conventions. It represents the domain extracted from the `url.full`,
  13095. // such as "opentelemetry.io".
  13096. func URLDomain(val string) attribute.KeyValue {
  13097. return URLDomainKey.String(val)
  13098. }
  13099. // URLExtension returns an attribute KeyValue conforming to the "url.extension"
  13100. // semantic conventions. It represents the file extension extracted from the
  13101. // `url.full`, excluding the leading dot.
  13102. func URLExtension(val string) attribute.KeyValue {
  13103. return URLExtensionKey.String(val)
  13104. }
  13105. // URLFragment returns an attribute KeyValue conforming to the "url.fragment"
  13106. // semantic conventions. It represents the [URI fragment] component.
  13107. //
  13108. // [URI fragment]: https://www.rfc-editor.org/rfc/rfc3986#section-3.5
  13109. func URLFragment(val string) attribute.KeyValue {
  13110. return URLFragmentKey.String(val)
  13111. }
  13112. // URLFull returns an attribute KeyValue conforming to the "url.full" semantic
  13113. // conventions. It represents the absolute URL describing a network resource
  13114. // according to [RFC3986].
  13115. //
  13116. // [RFC3986]: https://www.rfc-editor.org/rfc/rfc3986
  13117. func URLFull(val string) attribute.KeyValue {
  13118. return URLFullKey.String(val)
  13119. }
  13120. // URLOriginal returns an attribute KeyValue conforming to the "url.original"
  13121. // semantic conventions. It represents the unmodified original URL as seen in the
  13122. // event source.
  13123. func URLOriginal(val string) attribute.KeyValue {
  13124. return URLOriginalKey.String(val)
  13125. }
  13126. // URLPath returns an attribute KeyValue conforming to the "url.path" semantic
  13127. // conventions. It represents the [URI path] component.
  13128. //
  13129. // [URI path]: https://www.rfc-editor.org/rfc/rfc3986#section-3.3
  13130. func URLPath(val string) attribute.KeyValue {
  13131. return URLPathKey.String(val)
  13132. }
  13133. // URLPort returns an attribute KeyValue conforming to the "url.port" semantic
  13134. // conventions. It represents the port extracted from the `url.full`.
  13135. func URLPort(val int) attribute.KeyValue {
  13136. return URLPortKey.Int(val)
  13137. }
  13138. // URLQuery returns an attribute KeyValue conforming to the "url.query" semantic
  13139. // conventions. It represents the [URI query] component.
  13140. //
  13141. // [URI query]: https://www.rfc-editor.org/rfc/rfc3986#section-3.4
  13142. func URLQuery(val string) attribute.KeyValue {
  13143. return URLQueryKey.String(val)
  13144. }
  13145. // URLRegisteredDomain returns an attribute KeyValue conforming to the
  13146. // "url.registered_domain" semantic conventions. It represents the highest
  13147. // registered url domain, stripped of the subdomain.
  13148. func URLRegisteredDomain(val string) attribute.KeyValue {
  13149. return URLRegisteredDomainKey.String(val)
  13150. }
  13151. // URLScheme returns an attribute KeyValue conforming to the "url.scheme"
  13152. // semantic conventions. It represents the [URI scheme] component identifying the
  13153. // used protocol.
  13154. //
  13155. // [URI scheme]: https://www.rfc-editor.org/rfc/rfc3986#section-3.1
  13156. func URLScheme(val string) attribute.KeyValue {
  13157. return URLSchemeKey.String(val)
  13158. }
  13159. // URLSubdomain returns an attribute KeyValue conforming to the "url.subdomain"
  13160. // semantic conventions. It represents the subdomain portion of a fully qualified
  13161. // domain name includes all of the names except the host name under the
  13162. // registered_domain. In a partially qualified domain, or if the qualification
  13163. // level of the full name cannot be determined, subdomain contains all of the
  13164. // names below the registered domain.
  13165. func URLSubdomain(val string) attribute.KeyValue {
  13166. return URLSubdomainKey.String(val)
  13167. }
  13168. // URLTemplate returns an attribute KeyValue conforming to the "url.template"
  13169. // semantic conventions. It represents the low-cardinality template of an
  13170. // [absolute path reference].
  13171. //
  13172. // [absolute path reference]: https://www.rfc-editor.org/rfc/rfc3986#section-4.2
  13173. func URLTemplate(val string) attribute.KeyValue {
  13174. return URLTemplateKey.String(val)
  13175. }
  13176. // URLTopLevelDomain returns an attribute KeyValue conforming to the
  13177. // "url.top_level_domain" semantic conventions. It represents the effective top
  13178. // level domain (eTLD), also known as the domain suffix, is the last part of the
  13179. // domain name. For example, the top level domain for example.com is `com`.
  13180. func URLTopLevelDomain(val string) attribute.KeyValue {
  13181. return URLTopLevelDomainKey.String(val)
  13182. }
  13183. // Namespace: user
  13184. const (
  13185. // UserEmailKey is the attribute Key conforming to the "user.email" semantic
  13186. // conventions. It represents the user email address.
  13187. //
  13188. // Type: string
  13189. // RequirementLevel: Recommended
  13190. // Stability: Development
  13191. //
  13192. // Examples: "a.einstein@example.com"
  13193. UserEmailKey = attribute.Key("user.email")
  13194. // UserFullNameKey is the attribute Key conforming to the "user.full_name"
  13195. // semantic conventions. It represents the user's full name.
  13196. //
  13197. // Type: string
  13198. // RequirementLevel: Recommended
  13199. // Stability: Development
  13200. //
  13201. // Examples: "Albert Einstein"
  13202. UserFullNameKey = attribute.Key("user.full_name")
  13203. // UserHashKey is the attribute Key conforming to the "user.hash" semantic
  13204. // conventions. It represents the unique user hash to correlate information for
  13205. // a user in anonymized form.
  13206. //
  13207. // Type: string
  13208. // RequirementLevel: Recommended
  13209. // Stability: Development
  13210. //
  13211. // Examples: "364fc68eaf4c8acec74a4e52d7d1feaa"
  13212. // Note: Useful if `user.id` or `user.name` contain confidential information and
  13213. // cannot be used.
  13214. UserHashKey = attribute.Key("user.hash")
  13215. // UserIDKey is the attribute Key conforming to the "user.id" semantic
  13216. // conventions. It represents the unique identifier of the user.
  13217. //
  13218. // Type: string
  13219. // RequirementLevel: Recommended
  13220. // Stability: Development
  13221. //
  13222. // Examples: "S-1-5-21-202424912787-2692429404-2351956786-1000"
  13223. UserIDKey = attribute.Key("user.id")
  13224. // UserNameKey is the attribute Key conforming to the "user.name" semantic
  13225. // conventions. It represents the short name or login/username of the user.
  13226. //
  13227. // Type: string
  13228. // RequirementLevel: Recommended
  13229. // Stability: Development
  13230. //
  13231. // Examples: "a.einstein"
  13232. UserNameKey = attribute.Key("user.name")
  13233. // UserRolesKey is the attribute Key conforming to the "user.roles" semantic
  13234. // conventions. It represents the array of user roles at the time of the event.
  13235. //
  13236. // Type: string[]
  13237. // RequirementLevel: Recommended
  13238. // Stability: Development
  13239. //
  13240. // Examples: "admin", "reporting_user"
  13241. UserRolesKey = attribute.Key("user.roles")
  13242. )
  13243. // UserEmail returns an attribute KeyValue conforming to the "user.email"
  13244. // semantic conventions. It represents the user email address.
  13245. func UserEmail(val string) attribute.KeyValue {
  13246. return UserEmailKey.String(val)
  13247. }
  13248. // UserFullName returns an attribute KeyValue conforming to the "user.full_name"
  13249. // semantic conventions. It represents the user's full name.
  13250. func UserFullName(val string) attribute.KeyValue {
  13251. return UserFullNameKey.String(val)
  13252. }
  13253. // UserHash returns an attribute KeyValue conforming to the "user.hash" semantic
  13254. // conventions. It represents the unique user hash to correlate information for a
  13255. // user in anonymized form.
  13256. func UserHash(val string) attribute.KeyValue {
  13257. return UserHashKey.String(val)
  13258. }
  13259. // UserID returns an attribute KeyValue conforming to the "user.id" semantic
  13260. // conventions. It represents the unique identifier of the user.
  13261. func UserID(val string) attribute.KeyValue {
  13262. return UserIDKey.String(val)
  13263. }
  13264. // UserName returns an attribute KeyValue conforming to the "user.name" semantic
  13265. // conventions. It represents the short name or login/username of the user.
  13266. func UserName(val string) attribute.KeyValue {
  13267. return UserNameKey.String(val)
  13268. }
  13269. // UserRoles returns an attribute KeyValue conforming to the "user.roles"
  13270. // semantic conventions. It represents the array of user roles at the time of the
  13271. // event.
  13272. func UserRoles(val ...string) attribute.KeyValue {
  13273. return UserRolesKey.StringSlice(val)
  13274. }
  13275. // Namespace: user_agent
  13276. const (
  13277. // UserAgentNameKey is the attribute Key conforming to the "user_agent.name"
  13278. // semantic conventions. It represents the name of the user-agent extracted from
  13279. // original. Usually refers to the browser's name.
  13280. //
  13281. // Type: string
  13282. // RequirementLevel: Recommended
  13283. // Stability: Development
  13284. //
  13285. // Examples: "Safari", "YourApp"
  13286. // Note: [Example] of extracting browser's name from original string. In the
  13287. // case of using a user-agent for non-browser products, such as microservices
  13288. // with multiple names/versions inside the `user_agent.original`, the most
  13289. // significant name SHOULD be selected. In such a scenario it should align with
  13290. // `user_agent.version`
  13291. //
  13292. // [Example]: https://www.whatsmyua.info
  13293. UserAgentNameKey = attribute.Key("user_agent.name")
  13294. // UserAgentOriginalKey is the attribute Key conforming to the
  13295. // "user_agent.original" semantic conventions. It represents the value of the
  13296. // [HTTP User-Agent] header sent by the client.
  13297. //
  13298. // Type: string
  13299. // RequirementLevel: Recommended
  13300. // Stability: Stable
  13301. //
  13302. // Examples: "CERN-LineMode/2.15 libwww/2.17b3", "Mozilla/5.0 (iPhone; CPU
  13303. // iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko)
  13304. // Version/14.1.2 Mobile/15E148 Safari/604.1", "YourApp/1.0.0
  13305. // grpc-java-okhttp/1.27.2"
  13306. //
  13307. // [HTTP User-Agent]: https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent
  13308. UserAgentOriginalKey = attribute.Key("user_agent.original")
  13309. // UserAgentOSNameKey is the attribute Key conforming to the
  13310. // "user_agent.os.name" semantic conventions. It represents the human readable
  13311. // operating system name.
  13312. //
  13313. // Type: string
  13314. // RequirementLevel: Recommended
  13315. // Stability: Development
  13316. //
  13317. // Examples: "iOS", "Android", "Ubuntu"
  13318. // Note: For mapping user agent strings to OS names, libraries such as
  13319. // [ua-parser] can be utilized.
  13320. //
  13321. // [ua-parser]: https://github.com/ua-parser
  13322. UserAgentOSNameKey = attribute.Key("user_agent.os.name")
  13323. // UserAgentOSVersionKey is the attribute Key conforming to the
  13324. // "user_agent.os.version" semantic conventions. It represents the version
  13325. // string of the operating system as defined in [Version Attributes].
  13326. //
  13327. // Type: string
  13328. // RequirementLevel: Recommended
  13329. // Stability: Development
  13330. //
  13331. // Examples: "14.2.1", "18.04.1"
  13332. // Note: For mapping user agent strings to OS versions, libraries such as
  13333. // [ua-parser] can be utilized.
  13334. //
  13335. // [Version Attributes]: /docs/resource/README.md#version-attributes
  13336. // [ua-parser]: https://github.com/ua-parser
  13337. UserAgentOSVersionKey = attribute.Key("user_agent.os.version")
  13338. // UserAgentSyntheticTypeKey is the attribute Key conforming to the
  13339. // "user_agent.synthetic.type" semantic conventions. It represents the specifies
  13340. // the category of synthetic traffic, such as tests or bots.
  13341. //
  13342. // Type: Enum
  13343. // RequirementLevel: Recommended
  13344. // Stability: Development
  13345. //
  13346. // Examples:
  13347. // Note: This attribute MAY be derived from the contents of the
  13348. // `user_agent.original` attribute. Components that populate the attribute are
  13349. // responsible for determining what they consider to be synthetic bot or test
  13350. // traffic. This attribute can either be set for self-identification purposes,
  13351. // or on telemetry detected to be generated as a result of a synthetic request.
  13352. // This attribute is useful for distinguishing between genuine client traffic
  13353. // and synthetic traffic generated by bots or tests.
  13354. UserAgentSyntheticTypeKey = attribute.Key("user_agent.synthetic.type")
  13355. // UserAgentVersionKey is the attribute Key conforming to the
  13356. // "user_agent.version" semantic conventions. It represents the version of the
  13357. // user-agent extracted from original. Usually refers to the browser's version.
  13358. //
  13359. // Type: string
  13360. // RequirementLevel: Recommended
  13361. // Stability: Development
  13362. //
  13363. // Examples: "14.1.2", "1.0.0"
  13364. // Note: [Example] of extracting browser's version from original string. In the
  13365. // case of using a user-agent for non-browser products, such as microservices
  13366. // with multiple names/versions inside the `user_agent.original`, the most
  13367. // significant version SHOULD be selected. In such a scenario it should align
  13368. // with `user_agent.name`
  13369. //
  13370. // [Example]: https://www.whatsmyua.info
  13371. UserAgentVersionKey = attribute.Key("user_agent.version")
  13372. )
  13373. // UserAgentName returns an attribute KeyValue conforming to the
  13374. // "user_agent.name" semantic conventions. It represents the name of the
  13375. // user-agent extracted from original. Usually refers to the browser's name.
  13376. func UserAgentName(val string) attribute.KeyValue {
  13377. return UserAgentNameKey.String(val)
  13378. }
  13379. // UserAgentOriginal returns an attribute KeyValue conforming to the
  13380. // "user_agent.original" semantic conventions. It represents the value of the
  13381. // [HTTP User-Agent] header sent by the client.
  13382. //
  13383. // [HTTP User-Agent]: https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent
  13384. func UserAgentOriginal(val string) attribute.KeyValue {
  13385. return UserAgentOriginalKey.String(val)
  13386. }
  13387. // UserAgentOSName returns an attribute KeyValue conforming to the
  13388. // "user_agent.os.name" semantic conventions. It represents the human readable
  13389. // operating system name.
  13390. func UserAgentOSName(val string) attribute.KeyValue {
  13391. return UserAgentOSNameKey.String(val)
  13392. }
  13393. // UserAgentOSVersion returns an attribute KeyValue conforming to the
  13394. // "user_agent.os.version" semantic conventions. It represents the version string
  13395. // of the operating system as defined in [Version Attributes].
  13396. //
  13397. // [Version Attributes]: /docs/resource/README.md#version-attributes
  13398. func UserAgentOSVersion(val string) attribute.KeyValue {
  13399. return UserAgentOSVersionKey.String(val)
  13400. }
  13401. // UserAgentVersion returns an attribute KeyValue conforming to the
  13402. // "user_agent.version" semantic conventions. It represents the version of the
  13403. // user-agent extracted from original. Usually refers to the browser's version.
  13404. func UserAgentVersion(val string) attribute.KeyValue {
  13405. return UserAgentVersionKey.String(val)
  13406. }
  13407. // Enum values for user_agent.synthetic.type
  13408. var (
  13409. // Bot source.
  13410. // Stability: development
  13411. UserAgentSyntheticTypeBot = UserAgentSyntheticTypeKey.String("bot")
  13412. // Synthetic test source.
  13413. // Stability: development
  13414. UserAgentSyntheticTypeTest = UserAgentSyntheticTypeKey.String("test")
  13415. )
  13416. // Namespace: vcs
  13417. const (
  13418. // VCSChangeIDKey is the attribute Key conforming to the "vcs.change.id"
  13419. // semantic conventions. It represents the ID of the change (pull request/merge
  13420. // request/changelist) if applicable. This is usually a unique (within
  13421. // repository) identifier generated by the VCS system.
  13422. //
  13423. // Type: string
  13424. // RequirementLevel: Recommended
  13425. // Stability: Development
  13426. //
  13427. // Examples: "123"
  13428. VCSChangeIDKey = attribute.Key("vcs.change.id")
  13429. // VCSChangeStateKey is the attribute Key conforming to the "vcs.change.state"
  13430. // semantic conventions. It represents the state of the change (pull
  13431. // request/merge request/changelist).
  13432. //
  13433. // Type: Enum
  13434. // RequirementLevel: Recommended
  13435. // Stability: Development
  13436. //
  13437. // Examples: "open", "closed", "merged"
  13438. VCSChangeStateKey = attribute.Key("vcs.change.state")
  13439. // VCSChangeTitleKey is the attribute Key conforming to the "vcs.change.title"
  13440. // semantic conventions. It represents the human readable title of the change
  13441. // (pull request/merge request/changelist). This title is often a brief summary
  13442. // of the change and may get merged in to a ref as the commit summary.
  13443. //
  13444. // Type: string
  13445. // RequirementLevel: Recommended
  13446. // Stability: Development
  13447. //
  13448. // Examples: "Fixes broken thing", "feat: add my new feature", "[chore] update
  13449. // dependency"
  13450. VCSChangeTitleKey = attribute.Key("vcs.change.title")
  13451. // VCSLineChangeTypeKey is the attribute Key conforming to the
  13452. // "vcs.line_change.type" semantic conventions. It represents the type of line
  13453. // change being measured on a branch or change.
  13454. //
  13455. // Type: Enum
  13456. // RequirementLevel: Recommended
  13457. // Stability: Development
  13458. //
  13459. // Examples: "added", "removed"
  13460. VCSLineChangeTypeKey = attribute.Key("vcs.line_change.type")
  13461. // VCSOwnerNameKey is the attribute Key conforming to the "vcs.owner.name"
  13462. // semantic conventions. It represents the group owner within the version
  13463. // control system.
  13464. //
  13465. // Type: string
  13466. // RequirementLevel: Recommended
  13467. // Stability: Development
  13468. //
  13469. // Examples: "my-org", "myteam", "business-unit"
  13470. VCSOwnerNameKey = attribute.Key("vcs.owner.name")
  13471. // VCSProviderNameKey is the attribute Key conforming to the "vcs.provider.name"
  13472. // semantic conventions. It represents the name of the version control system
  13473. // provider.
  13474. //
  13475. // Type: Enum
  13476. // RequirementLevel: Recommended
  13477. // Stability: Development
  13478. //
  13479. // Examples: "github", "gitlab", "gitea", "bitbucket"
  13480. VCSProviderNameKey = attribute.Key("vcs.provider.name")
  13481. // VCSRefBaseNameKey is the attribute Key conforming to the "vcs.ref.base.name"
  13482. // semantic conventions. It represents the name of the [reference] such as
  13483. // **branch** or **tag** in the repository.
  13484. //
  13485. // Type: string
  13486. // RequirementLevel: Recommended
  13487. // Stability: Development
  13488. //
  13489. // Examples: "my-feature-branch", "tag-1-test"
  13490. // Note: `base` refers to the starting point of a change. For example, `main`
  13491. // would be the base reference of type branch if you've created a new
  13492. // reference of type branch from it and created new commits.
  13493. //
  13494. // [reference]: https://git-scm.com/docs/gitglossary#def_ref
  13495. VCSRefBaseNameKey = attribute.Key("vcs.ref.base.name")
  13496. // VCSRefBaseRevisionKey is the attribute Key conforming to the
  13497. // "vcs.ref.base.revision" semantic conventions. It represents the revision,
  13498. // literally [revised version], The revision most often refers to a commit
  13499. // object in Git, or a revision number in SVN.
  13500. //
  13501. // Type: string
  13502. // RequirementLevel: Recommended
  13503. // Stability: Development
  13504. //
  13505. // Examples: "9d59409acf479dfa0df1aa568182e43e43df8bbe28d60fcf2bc52e30068802cc",
  13506. // "main", "123", "HEAD"
  13507. // Note: `base` refers to the starting point of a change. For example, `main`
  13508. // would be the base reference of type branch if you've created a new
  13509. // reference of type branch from it and created new commits. The
  13510. // revision can be a full [hash value (see
  13511. // glossary)],
  13512. // of the recorded change to a ref within a repository pointing to a
  13513. // commit [commit] object. It does
  13514. // not necessarily have to be a hash; it can simply define a [revision
  13515. // number]
  13516. // which is an integer that is monotonically increasing. In cases where
  13517. // it is identical to the `ref.base.name`, it SHOULD still be included.
  13518. // It is up to the implementer to decide which value to set as the
  13519. // revision based on the VCS system and situational context.
  13520. //
  13521. // [revised version]: https://www.merriam-webster.com/dictionary/revision
  13522. // [hash value (see
  13523. // glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
  13524. // [commit]: https://git-scm.com/docs/git-commit
  13525. // [revision
  13526. // number]: https://svnbook.red-bean.com/en/1.7/svn.tour.revs.specifiers.html
  13527. VCSRefBaseRevisionKey = attribute.Key("vcs.ref.base.revision")
  13528. // VCSRefBaseTypeKey is the attribute Key conforming to the "vcs.ref.base.type"
  13529. // semantic conventions. It represents the type of the [reference] in the
  13530. // repository.
  13531. //
  13532. // Type: Enum
  13533. // RequirementLevel: Recommended
  13534. // Stability: Development
  13535. //
  13536. // Examples: "branch", "tag"
  13537. // Note: `base` refers to the starting point of a change. For example, `main`
  13538. // would be the base reference of type branch if you've created a new
  13539. // reference of type branch from it and created new commits.
  13540. //
  13541. // [reference]: https://git-scm.com/docs/gitglossary#def_ref
  13542. VCSRefBaseTypeKey = attribute.Key("vcs.ref.base.type")
  13543. // VCSRefHeadNameKey is the attribute Key conforming to the "vcs.ref.head.name"
  13544. // semantic conventions. It represents the name of the [reference] such as
  13545. // **branch** or **tag** in the repository.
  13546. //
  13547. // Type: string
  13548. // RequirementLevel: Recommended
  13549. // Stability: Development
  13550. //
  13551. // Examples: "my-feature-branch", "tag-1-test"
  13552. // Note: `head` refers to where you are right now; the current reference at a
  13553. // given time.
  13554. //
  13555. // [reference]: https://git-scm.com/docs/gitglossary#def_ref
  13556. VCSRefHeadNameKey = attribute.Key("vcs.ref.head.name")
  13557. // VCSRefHeadRevisionKey is the attribute Key conforming to the
  13558. // "vcs.ref.head.revision" semantic conventions. It represents the revision,
  13559. // literally [revised version], The revision most often refers to a commit
  13560. // object in Git, or a revision number in SVN.
  13561. //
  13562. // Type: string
  13563. // RequirementLevel: Recommended
  13564. // Stability: Development
  13565. //
  13566. // Examples: "9d59409acf479dfa0df1aa568182e43e43df8bbe28d60fcf2bc52e30068802cc",
  13567. // "main", "123", "HEAD"
  13568. // Note: `head` refers to where you are right now; the current reference at a
  13569. // given time.The revision can be a full [hash value (see
  13570. // glossary)],
  13571. // of the recorded change to a ref within a repository pointing to a
  13572. // commit [commit] object. It does
  13573. // not necessarily have to be a hash; it can simply define a [revision
  13574. // number]
  13575. // which is an integer that is monotonically increasing. In cases where
  13576. // it is identical to the `ref.head.name`, it SHOULD still be included.
  13577. // It is up to the implementer to decide which value to set as the
  13578. // revision based on the VCS system and situational context.
  13579. //
  13580. // [revised version]: https://www.merriam-webster.com/dictionary/revision
  13581. // [hash value (see
  13582. // glossary)]: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
  13583. // [commit]: https://git-scm.com/docs/git-commit
  13584. // [revision
  13585. // number]: https://svnbook.red-bean.com/en/1.7/svn.tour.revs.specifiers.html
  13586. VCSRefHeadRevisionKey = attribute.Key("vcs.ref.head.revision")
  13587. // VCSRefHeadTypeKey is the attribute Key conforming to the "vcs.ref.head.type"
  13588. // semantic conventions. It represents the type of the [reference] in the
  13589. // repository.
  13590. //
  13591. // Type: Enum
  13592. // RequirementLevel: Recommended
  13593. // Stability: Development
  13594. //
  13595. // Examples: "branch", "tag"
  13596. // Note: `head` refers to where you are right now; the current reference at a
  13597. // given time.
  13598. //
  13599. // [reference]: https://git-scm.com/docs/gitglossary#def_ref
  13600. VCSRefHeadTypeKey = attribute.Key("vcs.ref.head.type")
  13601. // VCSRefTypeKey is the attribute Key conforming to the "vcs.ref.type" semantic
  13602. // conventions. It represents the type of the [reference] in the repository.
  13603. //
  13604. // Type: Enum
  13605. // RequirementLevel: Recommended
  13606. // Stability: Development
  13607. //
  13608. // Examples: "branch", "tag"
  13609. //
  13610. // [reference]: https://git-scm.com/docs/gitglossary#def_ref
  13611. VCSRefTypeKey = attribute.Key("vcs.ref.type")
  13612. // VCSRepositoryNameKey is the attribute Key conforming to the
  13613. // "vcs.repository.name" semantic conventions. It represents the human readable
  13614. // name of the repository. It SHOULD NOT include any additional identifier like
  13615. // Group/SubGroup in GitLab or organization in GitHub.
  13616. //
  13617. // Type: string
  13618. // RequirementLevel: Recommended
  13619. // Stability: Development
  13620. //
  13621. // Examples: "semantic-conventions", "my-cool-repo"
  13622. // Note: Due to it only being the name, it can clash with forks of the same
  13623. // repository if collecting telemetry across multiple orgs or groups in
  13624. // the same backends.
  13625. VCSRepositoryNameKey = attribute.Key("vcs.repository.name")
  13626. // VCSRepositoryURLFullKey is the attribute Key conforming to the
  13627. // "vcs.repository.url.full" semantic conventions. It represents the
  13628. // [canonical URL] of the repository providing the complete HTTP(S) address in
  13629. // order to locate and identify the repository through a browser.
  13630. //
  13631. // Type: string
  13632. // RequirementLevel: Recommended
  13633. // Stability: Development
  13634. //
  13635. // Examples:
  13636. // "https://github.com/opentelemetry/open-telemetry-collector-contrib",
  13637. // "https://gitlab.com/my-org/my-project/my-projects-project/repo"
  13638. // Note: In Git Version Control Systems, the canonical URL SHOULD NOT include
  13639. // the `.git` extension.
  13640. //
  13641. // [canonical URL]: https://support.google.com/webmasters/answer/10347851?hl=en#:~:text=A%20canonical%20URL%20is%20the,Google%20chooses%20one%20as%20canonical.
  13642. VCSRepositoryURLFullKey = attribute.Key("vcs.repository.url.full")
  13643. // VCSRevisionDeltaDirectionKey is the attribute Key conforming to the
  13644. // "vcs.revision_delta.direction" semantic conventions. It represents the type
  13645. // of revision comparison.
  13646. //
  13647. // Type: Enum
  13648. // RequirementLevel: Recommended
  13649. // Stability: Development
  13650. //
  13651. // Examples: "ahead", "behind"
  13652. VCSRevisionDeltaDirectionKey = attribute.Key("vcs.revision_delta.direction")
  13653. )
  13654. // VCSChangeID returns an attribute KeyValue conforming to the "vcs.change.id"
  13655. // semantic conventions. It represents the ID of the change (pull request/merge
  13656. // request/changelist) if applicable. This is usually a unique (within
  13657. // repository) identifier generated by the VCS system.
  13658. func VCSChangeID(val string) attribute.KeyValue {
  13659. return VCSChangeIDKey.String(val)
  13660. }
  13661. // VCSChangeTitle returns an attribute KeyValue conforming to the
  13662. // "vcs.change.title" semantic conventions. It represents the human readable
  13663. // title of the change (pull request/merge request/changelist). This title is
  13664. // often a brief summary of the change and may get merged in to a ref as the
  13665. // commit summary.
  13666. func VCSChangeTitle(val string) attribute.KeyValue {
  13667. return VCSChangeTitleKey.String(val)
  13668. }
  13669. // VCSOwnerName returns an attribute KeyValue conforming to the "vcs.owner.name"
  13670. // semantic conventions. It represents the group owner within the version control
  13671. // system.
  13672. func VCSOwnerName(val string) attribute.KeyValue {
  13673. return VCSOwnerNameKey.String(val)
  13674. }
  13675. // VCSRefBaseName returns an attribute KeyValue conforming to the
  13676. // "vcs.ref.base.name" semantic conventions. It represents the name of the
  13677. // [reference] such as **branch** or **tag** in the repository.
  13678. //
  13679. // [reference]: https://git-scm.com/docs/gitglossary#def_ref
  13680. func VCSRefBaseName(val string) attribute.KeyValue {
  13681. return VCSRefBaseNameKey.String(val)
  13682. }
  13683. // VCSRefBaseRevision returns an attribute KeyValue conforming to the
  13684. // "vcs.ref.base.revision" semantic conventions. It represents the revision,
  13685. // literally [revised version], The revision most often refers to a commit object
  13686. // in Git, or a revision number in SVN.
  13687. //
  13688. // [revised version]: https://www.merriam-webster.com/dictionary/revision
  13689. func VCSRefBaseRevision(val string) attribute.KeyValue {
  13690. return VCSRefBaseRevisionKey.String(val)
  13691. }
  13692. // VCSRefHeadName returns an attribute KeyValue conforming to the
  13693. // "vcs.ref.head.name" semantic conventions. It represents the name of the
  13694. // [reference] such as **branch** or **tag** in the repository.
  13695. //
  13696. // [reference]: https://git-scm.com/docs/gitglossary#def_ref
  13697. func VCSRefHeadName(val string) attribute.KeyValue {
  13698. return VCSRefHeadNameKey.String(val)
  13699. }
  13700. // VCSRefHeadRevision returns an attribute KeyValue conforming to the
  13701. // "vcs.ref.head.revision" semantic conventions. It represents the revision,
  13702. // literally [revised version], The revision most often refers to a commit object
  13703. // in Git, or a revision number in SVN.
  13704. //
  13705. // [revised version]: https://www.merriam-webster.com/dictionary/revision
  13706. func VCSRefHeadRevision(val string) attribute.KeyValue {
  13707. return VCSRefHeadRevisionKey.String(val)
  13708. }
  13709. // VCSRepositoryName returns an attribute KeyValue conforming to the
  13710. // "vcs.repository.name" semantic conventions. It represents the human readable
  13711. // name of the repository. It SHOULD NOT include any additional identifier like
  13712. // Group/SubGroup in GitLab or organization in GitHub.
  13713. func VCSRepositoryName(val string) attribute.KeyValue {
  13714. return VCSRepositoryNameKey.String(val)
  13715. }
  13716. // VCSRepositoryURLFull returns an attribute KeyValue conforming to the
  13717. // "vcs.repository.url.full" semantic conventions. It represents the
  13718. // [canonical URL] of the repository providing the complete HTTP(S) address in
  13719. // order to locate and identify the repository through a browser.
  13720. //
  13721. // [canonical URL]: https://support.google.com/webmasters/answer/10347851?hl=en#:~:text=A%20canonical%20URL%20is%20the,Google%20chooses%20one%20as%20canonical.
  13722. func VCSRepositoryURLFull(val string) attribute.KeyValue {
  13723. return VCSRepositoryURLFullKey.String(val)
  13724. }
  13725. // Enum values for vcs.change.state
  13726. var (
  13727. // Open means the change is currently active and under review. It hasn't been
  13728. // merged into the target branch yet, and it's still possible to make changes or
  13729. // add comments.
  13730. // Stability: development
  13731. VCSChangeStateOpen = VCSChangeStateKey.String("open")
  13732. // WIP (work-in-progress, draft) means the change is still in progress and not
  13733. // yet ready for a full review. It might still undergo significant changes.
  13734. // Stability: development
  13735. VCSChangeStateWip = VCSChangeStateKey.String("wip")
  13736. // Closed means the merge request has been closed without merging. This can
  13737. // happen for various reasons, such as the changes being deemed unnecessary, the
  13738. // issue being resolved in another way, or the author deciding to withdraw the
  13739. // request.
  13740. // Stability: development
  13741. VCSChangeStateClosed = VCSChangeStateKey.String("closed")
  13742. // Merged indicates that the change has been successfully integrated into the
  13743. // target codebase.
  13744. // Stability: development
  13745. VCSChangeStateMerged = VCSChangeStateKey.String("merged")
  13746. )
  13747. // Enum values for vcs.line_change.type
  13748. var (
  13749. // How many lines were added.
  13750. // Stability: development
  13751. VCSLineChangeTypeAdded = VCSLineChangeTypeKey.String("added")
  13752. // How many lines were removed.
  13753. // Stability: development
  13754. VCSLineChangeTypeRemoved = VCSLineChangeTypeKey.String("removed")
  13755. )
  13756. // Enum values for vcs.provider.name
  13757. var (
  13758. // [GitHub]
  13759. // Stability: development
  13760. //
  13761. // [GitHub]: https://github.com
  13762. VCSProviderNameGithub = VCSProviderNameKey.String("github")
  13763. // [GitLab]
  13764. // Stability: development
  13765. //
  13766. // [GitLab]: https://gitlab.com
  13767. VCSProviderNameGitlab = VCSProviderNameKey.String("gitlab")
  13768. // [Gitea]
  13769. // Stability: development
  13770. //
  13771. // [Gitea]: https://gitea.io
  13772. VCSProviderNameGitea = VCSProviderNameKey.String("gitea")
  13773. // [Bitbucket]
  13774. // Stability: development
  13775. //
  13776. // [Bitbucket]: https://bitbucket.org
  13777. VCSProviderNameBitbucket = VCSProviderNameKey.String("bitbucket")
  13778. )
  13779. // Enum values for vcs.ref.base.type
  13780. var (
  13781. // [branch]
  13782. // Stability: development
  13783. //
  13784. // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
  13785. VCSRefBaseTypeBranch = VCSRefBaseTypeKey.String("branch")
  13786. // [tag]
  13787. // Stability: development
  13788. //
  13789. // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
  13790. VCSRefBaseTypeTag = VCSRefBaseTypeKey.String("tag")
  13791. )
  13792. // Enum values for vcs.ref.head.type
  13793. var (
  13794. // [branch]
  13795. // Stability: development
  13796. //
  13797. // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
  13798. VCSRefHeadTypeBranch = VCSRefHeadTypeKey.String("branch")
  13799. // [tag]
  13800. // Stability: development
  13801. //
  13802. // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
  13803. VCSRefHeadTypeTag = VCSRefHeadTypeKey.String("tag")
  13804. )
  13805. // Enum values for vcs.ref.type
  13806. var (
  13807. // [branch]
  13808. // Stability: development
  13809. //
  13810. // [branch]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch
  13811. VCSRefTypeBranch = VCSRefTypeKey.String("branch")
  13812. // [tag]
  13813. // Stability: development
  13814. //
  13815. // [tag]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag
  13816. VCSRefTypeTag = VCSRefTypeKey.String("tag")
  13817. )
  13818. // Enum values for vcs.revision_delta.direction
  13819. var (
  13820. // How many revisions the change is behind the target ref.
  13821. // Stability: development
  13822. VCSRevisionDeltaDirectionBehind = VCSRevisionDeltaDirectionKey.String("behind")
  13823. // How many revisions the change is ahead of the target ref.
  13824. // Stability: development
  13825. VCSRevisionDeltaDirectionAhead = VCSRevisionDeltaDirectionKey.String("ahead")
  13826. )
  13827. // Namespace: webengine
  13828. const (
  13829. // WebEngineDescriptionKey is the attribute Key conforming to the
  13830. // "webengine.description" semantic conventions. It represents the additional
  13831. // description of the web engine (e.g. detailed version and edition
  13832. // information).
  13833. //
  13834. // Type: string
  13835. // RequirementLevel: Recommended
  13836. // Stability: Development
  13837. //
  13838. // Examples: "WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) -
  13839. // 2.2.2.Final"
  13840. WebEngineDescriptionKey = attribute.Key("webengine.description")
  13841. // WebEngineNameKey is the attribute Key conforming to the "webengine.name"
  13842. // semantic conventions. It represents the name of the web engine.
  13843. //
  13844. // Type: string
  13845. // RequirementLevel: Recommended
  13846. // Stability: Development
  13847. //
  13848. // Examples: "WildFly"
  13849. WebEngineNameKey = attribute.Key("webengine.name")
  13850. // WebEngineVersionKey is the attribute Key conforming to the
  13851. // "webengine.version" semantic conventions. It represents the version of the
  13852. // web engine.
  13853. //
  13854. // Type: string
  13855. // RequirementLevel: Recommended
  13856. // Stability: Development
  13857. //
  13858. // Examples: "21.0.0"
  13859. WebEngineVersionKey = attribute.Key("webengine.version")
  13860. )
  13861. // WebEngineDescription returns an attribute KeyValue conforming to the
  13862. // "webengine.description" semantic conventions. It represents the additional
  13863. // description of the web engine (e.g. detailed version and edition information).
  13864. func WebEngineDescription(val string) attribute.KeyValue {
  13865. return WebEngineDescriptionKey.String(val)
  13866. }
  13867. // WebEngineName returns an attribute KeyValue conforming to the "webengine.name"
  13868. // semantic conventions. It represents the name of the web engine.
  13869. func WebEngineName(val string) attribute.KeyValue {
  13870. return WebEngineNameKey.String(val)
  13871. }
  13872. // WebEngineVersion returns an attribute KeyValue conforming to the
  13873. // "webengine.version" semantic conventions. It represents the version of the web
  13874. // engine.
  13875. func WebEngineVersion(val string) attribute.KeyValue {
  13876. return WebEngineVersionKey.String(val)
  13877. }
  13878. // Namespace: zos
  13879. const (
  13880. // ZOSSmfIDKey is the attribute Key conforming to the "zos.smf.id" semantic
  13881. // conventions. It represents the System Management Facility (SMF) Identifier
  13882. // uniquely identified a z/OS system within a SYSPLEX or mainframe environment
  13883. // and is used for system and performance analysis.
  13884. //
  13885. // Type: string
  13886. // RequirementLevel: Recommended
  13887. // Stability: Development
  13888. //
  13889. // Examples: "SYS1"
  13890. ZOSSmfIDKey = attribute.Key("zos.smf.id")
  13891. // ZOSSysplexNameKey is the attribute Key conforming to the "zos.sysplex.name"
  13892. // semantic conventions. It represents the name of the SYSPLEX to which the z/OS
  13893. // system belongs too.
  13894. //
  13895. // Type: string
  13896. // RequirementLevel: Recommended
  13897. // Stability: Development
  13898. //
  13899. // Examples: "SYSPLEX1"
  13900. ZOSSysplexNameKey = attribute.Key("zos.sysplex.name")
  13901. )
  13902. // ZOSSmfID returns an attribute KeyValue conforming to the "zos.smf.id" semantic
  13903. // conventions. It represents the System Management Facility (SMF) Identifier
  13904. // uniquely identified a z/OS system within a SYSPLEX or mainframe environment
  13905. // and is used for system and performance analysis.
  13906. func ZOSSmfID(val string) attribute.KeyValue {
  13907. return ZOSSmfIDKey.String(val)
  13908. }
  13909. // ZOSSysplexName returns an attribute KeyValue conforming to the
  13910. // "zos.sysplex.name" semantic conventions. It represents the name of the SYSPLEX
  13911. // to which the z/OS system belongs too.
  13912. func ZOSSysplexName(val string) attribute.KeyValue {
  13913. return ZOSSysplexNameKey.String(val)
  13914. }