Verbosity of addAttributes vs. Natchez #504
Replies: 2 comments 7 replies
-
At $work, the team almost always makes a wrapper over I guess we can forward the majority of the |
Beta Was this translation helpful? Give feedback.
-
Another source of verbosity I see, or rather decrease in ergonomics is the set of attribute key types is hardcoded (for spec / java interop reasons, I assume). With I guess this can be overcome if you introduce your own syntax as above, and your own conversion typeclass to be used by it, since it's not possible as it currently stands to implement Given what's discussed here. I think providing a syntax module for otel4s might be useful, even if it's an external / third-party project. |
Beta Was this translation helpful? Give feedback.
-
I'm staring at a diff that looks like this:
The philosophy has been to adhere to the Otel spec, which I think it good. But it's awfully low level. I'm wondering how early adopters are dealing with this.
I think the minimalism is great in libraries: less surface area to cause breaking changes. I'm concerned about selling this API to app developers without a bit of sugar, though.
Beta Was this translation helpful? Give feedback.
All reactions