10 ms·
Why and how GitHub is adopting OpenTelemetry
- mikece 5y agoAre there any examples of companies making a contractually binding pledge to never use any telemetry data for anything than improving the application/service... NEVER for creating marketing profiles or for surfacing ads?
- postpawl 5y agoIn the context of this article - opentelemetry is for performance tracing on the backend. The call to the endpoint would already end up in access logs, and this would just give more detailed performance metrics on queries and function calls.
- enriquto 5y agoeven if they did, that would't mean anything. They could easily construct an argument that surfacing ads serves to improve the application (with a few extra rethoric steps in between).
- pdkl95 5y agoIf a company is serious about this type of promise, they should take away their ability to change their mind in the future with a Ulysses pact[1]. See this[2] older post where for a bit more detail from a talk by Cory Doctorow. >> The answer to not getting pressure from your bosses, your stakeholders, your investors or your members, to do the wrong thing later, when times are hard, is to take options off the table right now. [1] https://en.wikipedia.org/wiki/Ulysses_pact https://en.wikipedia.org/wiki/Ulysses_pact [2] https://news.ycombinator.com/item?id=20411018 https://news.ycombinator.com/item?id=20411018
- enriquto 5y agoHow would that be implemented in practice, for the case of telemetry? The data is held by a third party? Couldn't they always "buy" that third party? Is there a standard Ulysses mechanism for data compartmentalization?
- adamcstephens 5y agoThis is likely more in the realm of observability than what you’re thinking. eg metrics, logs and traces. Could you store marketing data in here? Sure, but that’s not really what opentelemetry is built for.
- chippy 5y agoIt seems that, in the majority of cases, we are left with trust at the end of the day. They might say "we will never do X" but if someone buys them, then the "we" becomes something different, and the new company is free to do whatever. With github, it's that paragon of good behaviour Microsoft that controls things. These promises need to be written down in the articles of association in a company, and I have never seen this.
- handrous 5y agoThey're not using "telemetry" as a euphemism for "shipping spyware to end users to record their actions on their own machine", in this case. This appears to be a very fancy log aggregation product that has also eaten logging/tracing related configuration deployment functionality.
- cogman10 5y agoIt's not even that. It's the interface that other logging/tracing apis can plug into. It's the "SLF4J" of tracing/metrics gathering. Why is this useful? Because it lets people writing libraries provide the ability for users of their libraries to track performance information without dictating to them what performance tracking tools they should use.
- wdb 5y agoThere is the web-packages in Javascript that creates traces for click events etc. but also the track how much time requests took on the client-side. Or render times of the UI e.g. Vue/React components See: https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/web/opentelemetry-instrumentation-user-interaction https://github.com/open-telemetry/opentelemetry-js-contrib/t...
- sebow 5y agoConsidering GH is MS-owned, i'm even more reluctant to use it. Anything that leaves your computer and enters hardware owned by MS should make you think twice about using a certain service/product. Same goes for almost every other company out there.Also FOMO is not an argument, there are plenty of alternatives for almost everything out there.If it's comfort people are worried about then they should stick to iPads and ditch software-dev, because trends like these are why the quality of software has been declining drastically in the last decade. These streamlined processes of using telemetry for the "product's good" are just a way to compensate that.
- jetpks 5y agoI think you have a misunderstanding of what OpenTelemetry is. It helps you understand what your backend software is doing with insights like how long database queries take to complete.
- StreamBright 5y agoI think it would be great to show the performance impact of these SDKs because it is one of the really important aspects of monitoring (being non-intrusive).
- crandycodes 5y agoAs someone who's needed to maintain complex, high-performance database drivers that needed to work across a bunch of different platforms, I've been following them and their predecessors of OpenTracing/OpenCensus. The problem that's always been interesting to me as a library maintainer is consistency across platforms and well maintained multi-platform libraries. I hadn't really found an acceptable solution that would work across Java, Node.js, browser, and so on. We'd invented our own formats and then we owned all the integration problems with various monitoring tools. I left the team before we started to adopt, but they've started doing it and it looks like it's help with reducing integration burden. I also think using someone else's opinionated library can help avoid bikeshedding on concepts not related to your core value.
- jeffbee 5y agoI've noticed that orgs where I've worked vary between being totally insensitive to observability cost to being real hardasses about it. But I think most smaller shops are falling into the former category. I've even heard in meetings crazy shit like "It's very low overhead, only about 5%" which would get you laughed out of the office at, say, Google. Unfortunately (to me) the focus on ease-of-use has meant that OpenTelemetry concepts are structured in such a way to preclude even the possibility of a very efficient implementation, which means that there will be a schism between people who are happy in the otel ecosystem and people who can't use it on cost grounds, who probably will splinter into distinct home-grown solutions.
- drewbug01 5y ago> Unfortunately (to me) the focus on ease-of-use has meant that OpenTelemetry concepts are structured in such a way to preclude even the possibility of a very efficient implementation Curious what you mean about the design of OpenTelemetry precluding efficient implementation?
- Animats 5y agoDoes this put "telemetry" in Git itself? If you're just using git to access Github, is it snooping on you?
- vbsteven 5y agoNo, OpenTelemetry is focussed on gathering metrics in distributed systems. Metrics, log aggregation and tracing of requests from the entrypoint (load balancer) all the way to the backend services and data stores. Take a look at the Jaeger and Zipkin websites and it should be pretty clear what it is used for.
- cogman10 5y agoAnd, it should be stated, that it isn't even really about gathering metrics. It is about providing a standard interface to gather metrics. (I know you know this, but with the confusion here, I figure I should go into details). The point of OpenTelemitry is to make it so you could write the places you get your traces/metrics in one part of code and configure which backend system it is collected into in another part. So, for example, you'd add a `trace("my slow thing"){ be slow }` into your code and later add `report to zipkin` or `report to Jaeger` in another part. The place where you trace "my slow thing" doesn't care about how to interact with the backend system or which backend vendor is ultimately used. You can start using prometheus, zipkin, new relic, Jaeger, whatever, just so long as they have an OpenTelemetry adapter you are golden. The analog is SLF4J in Java.
- stefan_ 5y agoThat makes zero sense. Of course accessing a GitHub remote with git means accessing a huge distributed system and involves "load balancer all the way to the backend services and data stores". If anything, that is the core of GitHub and the webui is bolted on. It's baffling to me, what do people think happens when they pull/push from a GitHub repo?
- vbsteven 5y agoI interpreted the original question to be concerned about phone home telemetry in the git binary.
- rektide 5y agoA lot of very confused weird comments here. This article is about a fairly large sized tech company adopting a fairly recent but increasingly mainstream & popular tool that helps them understand their operations. It'll give them a standard way to see what their computers are doing, across their various systems. OpenTelemetry is one of the key emerging cloud standards, and I expect many many many many more articles like this going forwards, from all kinds of companies. As for concerns about user tracking & privacy, that's not generally what these operational tools are used for. I haven't heard of a single case of them being used for user tracking or behavioral analytics. Thusfar these are purely operational tools, to understand the health of systems, to debug & typically to understand what happens to an incoming request as it works through dozens of systems & services to get processed. That said, I tend to think over time the importance of this distributed after-the-fact log we are building is going to become inverted. That we will start to see the potential to harvest these records for analytics, and more generally, to forward-feed them into other processes to automatically build & advance Event Sourcing systems. Right now these systems are relatively pure & good, but what's really at stake here is that we've been doing computing blind, with no record of what's happened, and OpenTelemetry is a key first step in lifting that veil of ignorance as to what computing has happened. We are beginning to capture the data of what compute occurred. Many things will emerge as we open this box.
- AlexandrB 5y ago> As for concerns about user tracking & privacy, that's not generally what these operational tools are used for. I'm not sure that the intended use matters. Unless the telemetry systems are carefully designed to not capture PII at all they become yet another channel that must be secured as if they are collecting PII. For example, see Windows 10 telemetry vs. HIPPA: https://hipaaone.com/2015/09/22/windows-10-and-hipaa/ https://hipaaone.com/2015/09/22/windows-10-and-hipaa/
- random3 5y agoThey are agnostic data collection protocols/ systems / libraries. Just like a protocol they could do PII collection and unlikely to prevent that. Ultimately the intended use matters more than the tech. And in this case it seems purposely built to measure performance.
- thefounder 5y agoOff topic: At some point my wasm app was consuming excessive memory bringing the browser to a halt. The issue was the OpenTelemetry package(Go-lang) used by various Google sdks. Forking/sanitizing the sdks fixed the issue.
- ehershey 5y agoWhat do you mean by “sanitizing” the sdk’s? Did you remove the OpenTelemetry package?
- thefounder 5y ago>> Did you remove the OpenTelemetry package? Exactly!
- tedk-42 5y agoWith your level of debugging, I'd say the problem was pebcak
- Datagenerator 5y agoRemoved code is debugged code, according to the infamous suckless website and the creator of ZeroMQ. (1) 1) http://suckless.org/philosophy/ http://suckless.org/philosophy/
- tedk-42 5y agoOK but not related to the issue mentioned by the poster. Good code isn't minimalistic, else we'd be writing all our code in a code golf style with fewest possible characters. Funny that my comment got flagged - If you really believe removing something fixes your problem, what about other people who could have the same issue as you or the people that don't have your issue and used the library successfully? You've effectively removed yourself as the possible cause to the problem and you probably are the problem if no-one else has reported the issue. You're the problem for not reporting it and you're the problem for complaining about it 'not working' when you did so little to try socialise a fix or look into it more deeply.
- yannoninator 5y agoI’m now gravely concerned about GitHub after reading this. So now I should be excited about telemetry and that GitHub uses this in their systems? This raises alarm bells into if I should be using them for my repositories at all. Unsure if I should trust GitHub after this now. Downvoters: I don’t understand here? So I should be excited about telemetry? Why?
- yunohn 5y agoI believe you (and many others here) have misunderstood the article. They are talking about telemetry on their backend systems to track performance metrics and the like. Not the usual telemetry that HN loves to argue about.
- deleted 5y ago[deleted]
- scrollaway 5y agoYou're getting downvoted because you are complaining about something you don't understand, which puts into question the "after reading this" part of your post. Jumping on the first opportunity to rant about telemetry without even checking what the article is talking about will do that.
- yannoninator 5y agothen why name it open "telemetry" in the first place? you know it has an extremely bad connotation to spyware. > which puts into question the "after reading this" > without even checking what the article is talking about will do that. please don't do that, this is against the HN guidelines. https://news.ycombinator.com/newsguidelines.html https://news.ycombinator.com/newsguidelines.html
- kortex 5y agoTelemetry is the in situ collection of measurements or other data at remote points and their automatic transmission to receiving equipment (telecommunication) for monitoring. The word is derived from the Greek roots tele, "remote", and metron, "measure". Why name it the precise thing that it literally is? Telemetry is used everywhere: rockets, drones, airplanes, boats, water meters, microservices, applications, and yes spyware, bots, viruses, and keyloggers. All spyware is telemetry by definition: "remote measuring." Not all telemetry is spyware.
- wdb 5y agoIt's a really nice solution. I am using it to send traces and metrics via a standardised API in Go, and Node.js. During development I am sending without sampling it to Jaeger but in production I am sending ratio sampled traces to Google Trace but you can use Honeycomb or Lightstep. For metrics, I am sending them to local Prometheus during development, and cluster prometheus in production. It's nice to see all the traces through all the different services of one API request and all its log items it generated. Using a custom span exporter to ensure PPI is stripped away as much as possible for span attributes. Using W3C trace context and baggage to send some more data along, e.g. sending the trace id, span id etc into pub sub events to ensure to connect them with the trace. Loving it! For now, I think it's worth the costs of adding tracing to services.
- infogulch 5y agoFor everyone blindly rage triggered by the presence of the bytes "t-e-l-e-m-e-t-r-y", cogman10 elsewhere ITT [1] summarized that concern well: > It's like being afraid your browser profiler is being used to spy on you. Could it do that? Sure. but there are so many easier ways to accomplish the same task. So take a second to straighten out your panties and then actually look at the thing first. It's just an open-source (!) APM protocol that competes with (edit: more like, adjacent to) DataDog, DynaTrace, New Relic etc etc. It's not even a suitable tool for spying. [1]: https://news.ycombinator.com/item?id=27296419 https://news.ycombinator.com/item?id=27296419
- cogman10 5y agoDoesn't even compete with them :) Each of those have opentelemetry adapters. You'd write your opentelemitry traces throughout your code and at some top level point in your app you configure and say "Hey, OpenTelemetry, report to New Relic". By itself, OpenTelemetry does nothing. It's usefulness is that someone writing a lib can add OpenTelemetry calls throughout and anyone using that lib can then collect metrics/traces into whatever metrics solution they are currently usings (be it DynaTrace, DataDog, or New Relic).
- wdb 5y agoIt doesn't really compete Datadog, Dynatrace, Honeycomb, Lightstep, new Relic are all partners in defining the specification and help implementing it. Most of them already allowing ingesting traces over the OLTP protocol
- porker 5y agoYes, where it helps is every programming language and framework can have one integration with OpenTelemetry, rather than custom ones for each separate telemetry system.
- rektide 5y agoI tend to think computing itself has been in kind of a dumb rut. Right now, OpenTelemetry is just logging & tracing, imagined as tools for ops, but over time, I fully expect we begin to see this as an event-stream in itself, something we can use for Event Sourcing, to watch & trigger new compute based off of. That's not in the cards today. But longer term, I think "knowing what computers are doing" is big business. And, I am very sad to say, eventually it will the obvious & logical way to spy on folks too. Because it will be the obvious & logical way to do many many many things, not because it's tech that's built or intended for spying. But right now computing is ephemeral, we don't persist any of the stack traces we compute through, and fundamentally, tracing really is about distilling out & keeping higher level stack traces. It's something computing needs to have been doing, that will bring us to a radically higher level of understanding (but it also does have some scary uses). It's been a couple years, but tracing is a powerful new basis with which to start re-engaging the "Turning the datqbase inside out"[1] / "I <3 Logs" view of data-storage (& computing) that had some buzz for a bit. We're not at all here yet, but I think it's coming. [1] https://martin.kleppmann.com/2015/11/05/database-inside-out-at-oredev.html https://martin.kleppmann.com/2015/11/05/database-inside-out-...
- michaelperel 5y agoFor anyone interested in learning how to use Open Telemetry for distributed tracing in go, I recently made a demo app to share with some friends: https://github.com/michaelperel/otel-demo https://github.com/michaelperel/otel-demo . To run, clone it & docker-compose up
- avinassh 5y agoHow much changes I need to make if I want to add open telemetry in my existing application?
- hendry 5y agoAmount of "otel" instrumentation required in your code by LOC looks ridiculous to me. Isn't it a better approach to just use logs? e.g. defer ctx.WithField("path", path).Trace("opening").Stop(&err) from https://medium.com/@tjholowaychuk/apex-log-e8d9627f4a9a https://medium.com/@tjholowaychuk/apex-log-e8d9627f4a9a
- bassdropvroom 5y agoOpentelemetry is a lot more than that. It can handle traces across services.
- hendry 5y agoYou can log and use a tool like AWS LogInsights to see the trace across services.. No code changes needed.
- bassdropvroom 5y agoGreat, so now link each request across services, combined with the timings of each individual component within each service. LogInsights is for logging, not tracing. Logging is not a replacement for tracing.
- hendry 5y ago
- domlebo70 5y agoWhat is that app they are using in the screenshot?
- apk 5y agoIt's Lightstep (https://lightstep.com https://lightstep.com).
- TheRealWatson 5y agoRecently acquired by ServiceNow
- kortex 5y agoMandatory "do some research before jumping to freaking out at GitHub for 'spyware.'" Yes technically you could use OT to exfiltrate data; guess what, you can do it with http headers, too. Been using OpenTelemetry for python and golang. It's great. I really like using Jaeger for tracing across small ML webapps. We have users on the scale of dozens so I just trace everything without sampling. Way, way easier than going through logs. Also used python + jaeger to narrow down some wifi issues on my home network. Basically run a server on each device and round-robin a request through each and look at the flame graph. Turns out, some Macs' location preferences can cause 500-800ms outage multiple times an hour, as it tries to scan know AP ssids or something. Yeah, dumb.
- weberer 5y agoThey problem is that Microsoft continuously used the term "telemetry" as a euphemism for the dystopian corporate spyware they shipped with Windows 10. So now to the average end user, the two concepts are the same. This is compounded by the fact that Github is now a Microsoft company and Microsoft has been caught in the past hiding "telemetry" in programs compiled with Visual Studio. https://old.reddit.com/r/cpp/comments/4ibauu/visual_studio_adding_telemetry_function_calls_to/ https://old.reddit.com/r/cpp/comments/4ibauu/visual_studio_a...
- kortex 5y agoI get what you are getting at, but It's not really a euphemism. Telemetry means literally "distant measurement." You can use telemetry to track sensors in a rocket, a request across a service mesh, a traceback from a crash in a user program, fine-grained details about everything a user does in Windows, or a straight-up keylogger. All are forms of telemetry. The VS telemetry injection is scary as hell though. Telemetry is like a knife. Context and location matters. Great in the kitchen, bad when lodged in your back. Sharing this from myself downthread: Telemetry is the in situ collection of measurements or other data at remote points and their automatic transmission to receiving equipment (telecommunication) for monitoring. The word is derived from the Greek roots tele, "remote", and metron, "measure". All spyware is, by definition, telemetry. Heck, the whole field of spycraft ( espionage ) is telemetry of sorts. Not all telemetry is spyware.
- OldGoodNewBad 5y agoAmazing to see people defending telemetry especially in free software. Amazing, and sickening.
- heinrichhartman 5y agoI think you are confusing "telemetry" here. This is not about Cookies or "phoning home" or Advertizing. This is about collecting logs, metrics, traces from (Micro-)Services running inside your own DC/Cloud for operational purposes (e.g. troubleshooting incidents).
- CommanderData 5y agoThis is more like application logging and tracing. At Github's scale their setup and micro services depth would necessitate some type of correlated based tracing like this. Heck even if your architecture is 1 layer thin OpenTelementry is still useful than crawling through logs every time there's an issue.
- jonatan-ivanov 5y agoIt's an interesting move given that OTel is not stable yet. :o
- hobofan 5y agoAnd why exactly is that interesting? Tech companies often use new products before they are stable, how else would they become battle-tested? On the website it even says: "OpenTelemetry is in beta across several languages and is suitable for use. We anticipate general availability soon."
- jonatan-ivanov 5y agoI guess because you might not want to go to prod with something on GH scale that is not stable and still subject to have breaking changes? Fyi: that quote has been there for a while.
- hobofan 5y agoIt's usually the opposite: You might not want to go to prod with something like this on an SMB scale where you have little resources to navigate tech debt. On a Github scale where you have more engineers available, it's often worth it to adopt cutting-edge alpha/beta software for their novel features, as you generally also have more expertise/mechanisms to ensure stability of the overall product and run less risk of being suffocated in tech debt.
- kortex 5y agoWhy is this controversial? OT is great but it's not totally production ready imho. I tried integrating it last year in Python and had almost weekly breaking changes to the internal API calls. I mean, it was a 0.x, so they were well within their liberty, also they don't owe me anything. But it was a bit of a false start for me. Finally they released a 1.0 and the interfaces are more stable, but the docs are still incomplete or stale in some places. I currently use it in a minor way. Frankly I can't wait because I love the tools and ecosystem, but I personally would be hesitant to put it into full blown production at such a big company.
- 02020202 5y agotelemetry is just a new "safe" term for tracking and spying.
- devops000 5y agoWhat are good solutions for charts and alerting for data sent from OpenTelemetry?
- speedgoose 5y agoIs OpenTelemetry the right tool ? In my team, we started using it but we kept Prometheus and Grafana to have charts and alerts.
- devops000 5y agoWhy not using Datadog?
- speedgoose 5y agoWe are in the health care industry, so we are not keen about sending our data to third parties. We also prefer open-source technologies.
- joeblubaugh 5y agoThe "simplest" self-hosted tools are probably Prometheus (https://prometheus.io https://prometheus.io) and Jaeger (https://jaegertracing.io https://jaegertracing.io), but they're big distributed systems. Running them may or may not be worth the cost, though you might be using something like Prometheus already. I really would love to see a simpler set of tools that works better for small / medium companies to self-host if they really can't send data to a vendor for some reason.
- usr1106 5y agoBecause it's proprietary IIRC?
- intricatedetail 5y agoWhen I wrote that once MS gets GH it will turn onto another spying service and I got rained with downvotes. Looks like it's finally time to use something else. Shame the tech community is okay with such dystopian development.
- iddan 5y agoIt’s exciting an organisation like GitHub gives a vote of confidence in an open standard for tracing. Making OpenTelemetry an industry standard will help everyone to develop better backend services
- dgildeh 5y agoI did a blog on using OpenTelemetry with Python/Google Cloud Run and source code here if anyone is interested: https://davidgildeh.com/2021/03/08/running-python-opentelemetry-with-google-cloud-run/ https://davidgildeh.com/2021/03/08/running-python-openteleme... I need to update the code as I didn't use the BatchSpanProcessor and as a result all my calls are taking 2-3 seconds vs. a more reasonable 300ms. My only issue so far is the stability and maturity of the project. Now they're at V1 stability of the main SDK looks better, but the instrumentation libraries are still all over the place and need some cleaning up/maturing. I like the vision though and we're keeping an eye on the project as it matures.
- flemhans 5y agoIs it production ready yet? From what I could gather it seems still pretty experimental. But I guess GitHub adopting it would cement the standard a bit.