HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
michaelperel
otel-demo
Go2021–2021
michaelperel / otel-demo

otel-demo

Discover this repository through its Hacker News conversations.

3Distinct people
3Mentions
0Explicit recommenders
28GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

A public description has not been verified.

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 5:04:57 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by hour3 dated mentions

Observed mentions: 2021-05-26 22:49:44 UTC to 2021-05-28 02:53:53 UTC.

012021-05-26 22:00:00 UTC to 2021-05-26 23:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsMay 26, 22:002021-05-26 23:00:00 UTC to 2021-05-27 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-05-27 00:00:00 UTC to 2021-05-27 01:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-05-27 01:00:00 UTC to 2021-05-27 02:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-05-27 02:00:00 UTC to 2021-05-27 03:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-05-27 03:00:00 UTC to 2021-05-27 04:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-05-27 04:00:00 UTC to 2021-05-27 05:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-05-27 05:00:00 UTC to 2021-05-27 06:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-05-27 06:00:00 UTC to 2021-05-27 07:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-05-27 07:00:00 UTC to 2021-05-27 08:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-05-27 08:00:00 UTC to 2021-05-27 09:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-05-27 09:00:00 UTC to 2021-05-27 10:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-05-27 10:00:00 UTC to 2021-05-27 11:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-05-27 11:00:00 UTC to 2021-05-27 12:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-05-27 12:00:00 UTC to 2021-05-27 13:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsMay 27, 12:002021-05-27 13:00:00 UTC to 2021-05-27 14:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-05-27 14:00:00 UTC to 2021-05-27 15:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-05-27 15:00:00 UTC to 2021-05-27 16:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-05-27 16:00:00 UTC to 2021-05-27 17:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-05-27 17:00:00 UTC to 2021-05-27 18:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-05-27 18:00:00 UTC to 2021-05-27 19:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2021-05-27 19:00:00 UTC to 2021-05-27 20:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-05-27 20:00:00 UTC to 2021-05-27 21:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-05-27 21:00:00 UTC to 2021-05-27 22:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-05-27 22:00:00 UTC to 2021-05-27 23:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-05-27 23:00:00 UTC to 2021-05-28 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-05-28 00:00:00 UTC to 2021-05-28 01:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-05-28 01:00:00 UTC to 2021-05-28 02:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-05-28 02:00:00 UTC to 2021-05-28 03:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsMay 28, 02:00

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
May 26, 22:002021-05-26 22:00:00 UTC2021-05-26 23:00:00 UTC101
May 26, 23:002021-05-26 23:00:00 UTC2021-05-27 00:00:00 UTC000
May 27, 00:002021-05-27 00:00:00 UTC2021-05-27 01:00:00 UTC000
May 27, 01:002021-05-27 01:00:00 UTC2021-05-27 02:00:00 UTC000
May 27, 02:002021-05-27 02:00:00 UTC2021-05-27 03:00:00 UTC000
May 27, 03:002021-05-27 03:00:00 UTC2021-05-27 04:00:00 UTC000
May 27, 04:002021-05-27 04:00:00 UTC2021-05-27 05:00:00 UTC000
May 27, 05:002021-05-27 05:00:00 UTC2021-05-27 06:00:00 UTC000
May 27, 06:002021-05-27 06:00:00 UTC2021-05-27 07:00:00 UTC000
May 27, 07:002021-05-27 07:00:00 UTC2021-05-27 08:00:00 UTC000
May 27, 08:002021-05-27 08:00:00 UTC2021-05-27 09:00:00 UTC000
May 27, 09:002021-05-27 09:00:00 UTC2021-05-27 10:00:00 UTC000
May 27, 10:002021-05-27 10:00:00 UTC2021-05-27 11:00:00 UTC000
May 27, 11:002021-05-27 11:00:00 UTC2021-05-27 12:00:00 UTC000
May 27, 12:002021-05-27 12:00:00 UTC2021-05-27 13:00:00 UTC000
May 27, 13:002021-05-27 13:00:00 UTC2021-05-27 14:00:00 UTC000
May 27, 14:002021-05-27 14:00:00 UTC2021-05-27 15:00:00 UTC000
May 27, 15:002021-05-27 15:00:00 UTC2021-05-27 16:00:00 UTC000
May 27, 16:002021-05-27 16:00:00 UTC2021-05-27 17:00:00 UTC000
May 27, 17:002021-05-27 17:00:00 UTC2021-05-27 18:00:00 UTC000
May 27, 18:002021-05-27 18:00:00 UTC2021-05-27 19:00:00 UTC101
May 27, 19:002021-05-27 19:00:00 UTC2021-05-27 20:00:00 UTC000
May 27, 20:002021-05-27 20:00:00 UTC2021-05-27 21:00:00 UTC000
May 27, 21:002021-05-27 21:00:00 UTC2021-05-27 22:00:00 UTC000
May 27, 22:002021-05-27 22:00:00 UTC2021-05-27 23:00:00 UTC000
May 27, 23:002021-05-27 23:00:00 UTC2021-05-28 00:00:00 UTC000
May 28, 00:002021-05-28 00:00:00 UTC2021-05-28 01:00:00 UTC000
May 28, 01:002021-05-28 01:00:00 UTC2021-05-28 02:00:00 UTC000
May 28, 02:002021-05-28 02:00:00 UTC2021-05-28 03:00:00 UTC101

What Hacker News says

3 sources
Once setup, I found that amount of code required for creating a simple trace via otel and logging is roughly the same. Refer to: https://github.com/michaelperel/otel-demo/blob/master/cmd/se... 51: Start a span. Equivalent to one line of log 60: Add a event. Equivalent to one log 69: Set attribute. This retroactively add attribute to whole span since the start. While log don't have exact same effect, one line of log can be used here. 74: RecordError. Equivalent to one log I haven't compare amount of code to setup a proper logger which connected to correct infra with amount of code to setup otel yet. Still, I don't think it gonna make much difference. In general, I won't mind either approach if I get a great visualizer. The main reason I would choose OpenTelemetry is I get trace visualizers for free and I can switch to better visualizer any
Read the rest
time that I want.
In Why and how GitHub is adopting OpenTelemetry
Your counterexample is misleading, because a single simplistic function call is what happens in most of the code, e.g. creating spans for an arbitrary point in the code is like, 1 function call[1] after setup. I don't see anything egregious here. Of course, you also have to record where the span ends, but that's part of the game you're playing when you move beyond logs. You have to record that. What you're probably looking at is all the boilerplate set up, e.g. configuring the provider and backend to point to the right stuff. It reminds me of SL4J, which isn't actually an insult. It's just boilerplate, because people want a lot out of their logging and tracing systems. Demo applications like this are often easily misleading because there are only like 50 lines of "business logic" and 50 lines of tracing setup, so it makes it seem like the
Read the rest
tracing is excessively hard. But those two things don't scale the same way. In a large application where tracing is really valuable, you'll have 100,000 lines of business logic, and still only 50 (or maybe like 100) lines of tracing setup, per application.[2] Actual usage at the call sites remains only a line or two in most cases, and easy to add as you need, where you need it, just like a logger. It is also worth noting in other ecosystems like when I played with tokio_trace, I found integrating tracing easy, even at the very start. So some of this definitely involves the "philosophy" of the client library. [1] https://github.com/michaelperel/otel-demo/blob/master/cmd/cl... [2] I guess if the 100,000 LoC running your business is split into 2000 microservices with 50 lines each, then yes, it may be excessive.
In Why and how GitHub is adopting OpenTelemetry

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.