{"id":4050,"date":"2025-03-31T14:46:25","date_gmt":"2025-03-31T14:46:25","guid":{"rendered":"https:\/\/wiki.thomasandsofia.com\/?p=4050"},"modified":"2025-03-31T17:33:32","modified_gmt":"2025-03-31T17:33:32","slug":"opentelemetry-overview","status":"publish","type":"post","link":"https:\/\/wiki.thomasandsofia.com\/?p=4050","title":{"rendered":"OpenTelemetry Overview"},"content":{"rendered":"<p>Source: <a href=\"https:\/\/www.youtube.com\/watch?v=dfpGU9al_i4\" target=\"_blank\" rel=\"noopener\">https:\/\/www.youtube.com\/watch?v=dfpGU9al_i4<\/a><\/p>\n<p>Merger of 2 open source standards:<\/p>\n<ul>\n<li>Open Tracing<\/li>\n<li>Open Census<\/li>\n<\/ul>\n<h1>Types of data<\/h1>\n<h2>Tracing<\/h2>\n<p><a href=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2024\/06\/obs1-5a.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3987\" src=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2024\/06\/obs1-5a.png\" alt=\"\" width=\"1123\" height=\"465\" srcset=\"https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2024\/06\/obs1-5a.png 1123w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2024\/06\/obs1-5a-300x124.png 300w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2024\/06\/obs1-5a-1024x424.png 1024w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2024\/06\/obs1-5a-768x318.png 768w, https:\/\/wiki.thomasandsofia.com\/wp-content\/uploads\/2024\/06\/obs1-5a-150x62.png 150w\" sizes=\"auto, (max-width: 1123px) 100vw, 1123px\" \/><\/a><\/p>\n<ul>\n<li>Made of spans.<\/li>\n<li>Spans represent the work being done by a sub-component of a service.\n<ul>\n<li>Name<\/li>\n<li>Start timestamp<\/li>\n<li>End timestamp<\/li>\n<li>Attributes\n<ul>\n<li>These are predefined depending on the technology\n<ul>\n<li>Http:\n<ul>\n<li>http.method<\/li>\n<li>http.status_code<\/li>\n<\/ul>\n<\/li>\n<li>Database\n<ul>\n<li>db.type<\/li>\n<li>db.instance<\/li>\n<li>db.statement<\/li>\n<\/ul>\n<\/li>\n<li>Messaging\n<ul>\n<li>messaging.system<\/li>\n<li>messaging.destination<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>Metrics<\/h2>\n<ul>\n<li>A measurement of something<\/li>\n<li>Name<\/li>\n<li>Description<\/li>\n<li>Unit<\/li>\n<li>Kind\n<ul>\n<li>There are 3 &#8220;kinds&#8221; of metrics\n<ul>\n<li>counter: Increments over time<\/li>\n<li>metric: aggregation of a value over time<\/li>\n<li>observer: set of values at a given time<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>Label<\/li>\n<li>Aggregation<\/li>\n<li>Timestamp<\/li>\n<\/ul>\n<h2>Logs<\/h2>\n<ul>\n<li>Video is old. Logging is available now.<\/li>\n<\/ul>\n<h1>OTel Components<\/h1>\n<h2>Collectors<\/h2>\n<ul>\n<li>May not be required<\/li>\n<li>Can make deployment faster\/easier<\/li>\n<li>Deployment Options\n<ul>\n<li>Agent<\/li>\n<li>Containerized<\/li>\n<li>Daemon set<\/li>\n<li>Gateway\n<ul>\n<li>Multiple collectors running as a service<\/li>\n<li>Point your collectors to this then export to a common source.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>Collector Components<\/h3>\n<ul>\n<li>Receiver\n<ul>\n<li>Get the data to the collector<\/li>\n<li>Push or Pull<\/li>\n<li>otlp protocols\n<ul>\n<li>grpc\n<ul>\n<li>Specify endpoint:<\/li>\n<li>endpoint: 0.0.0.0.:55680<\/li>\n<\/ul>\n<\/li>\n<li>http (otlphttp = protobuf)\n<ul>\n<li>Specify endpoint<\/li>\n<li>endpoint: 0.0.0.0:55681<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>Processor\n<ul>\n<li>Transform the data you&#8217;ve received<\/li>\n<\/ul>\n<\/li>\n<li>Exporter\n<ul>\n<li>Where to send the data\n<ul>\n<li>Can send to multiple locations<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>Collector Pipelines<\/h3>\n<ul>\n<li>Really just the YAML file<\/li>\n<\/ul>\n<h3>Extensions<\/h3>\n<ul>\n<li>Trace Extensions\n<ul>\n<li>Receiver . Exporter\n<ul>\n<li>OTLP<\/li>\n<li>Jaeger<\/li>\n<li>Zipkin<\/li>\n<\/ul>\n<\/li>\n<li>Processor\n<ul>\n<li>Attributes<\/li>\n<li>batch<\/li>\n<li>queued retry<\/li>\n<li>resource<\/li>\n<li>sampling<\/li>\n<li>span<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>Metric Extensions\n<ul>\n<li>Receiver\n<ul>\n<li>OTLP<\/li>\n<li>Host<\/li>\n<li>Promethius<\/li>\n<\/ul>\n<\/li>\n<li>Exporter\n<ul>\n<li>OTLP<\/li>\n<li>Prometheus<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>Community Based\n<ul>\n<li>Build Your Own extensions<\/li>\n<li>Enhance the collector pipeline\n<ul>\n<li>Perhaps build a dedicated exporter<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>Client Library (Instrumentation Library)<\/h2>\n<ul>\n<li>Applications require an instrumentation library (manual or automatic)<\/li>\n<li>Automatic\n<ul>\n<li>Various languages supported<\/li>\n<li><a href=\"https:\/\/opentelemetry.io\/docs\/languages\/\" target=\"_blank\" rel=\"noopener\">Natively supported language list<\/a><\/li>\n<\/ul>\n<\/li>\n<li>Manual\n<ul>\n<li>You have to do all of this.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Source: https:\/\/www.youtube.com\/watch?v=dfpGU9al_i4 Merger of 2 open source standards: Open Tracing Open Census Types of data Tracing Made of spans. Spans represent the work being done by a sub-component of a service. Name Start timestamp End timestamp Attributes These are predefined depending on the technology Http: http.method http.status_code Database db.type db.instance db.statement Messaging messaging.system messaging.destination Metrics ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/wiki.thomasandsofia.com\/?p=4050\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[84],"tags":[],"class_list":["post-4050","post","type-post","status-publish","format-standard","hentry","category-observability"],"_links":{"self":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/4050","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4050"}],"version-history":[{"count":1,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/4050\/revisions"}],"predecessor-version":[{"id":4051,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/4050\/revisions\/4051"}],"wp:attachment":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4050"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4050"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4050"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}