You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
better documentation around MetadataValue being expressible by literals (#85)
* better documentation around MetadataValue being expressible by literals
Motivation:
In many examples, I could see that users seem to construct metadata
values using the explicit enum cases `.string("foo")`, `.array(...)`, as
well as `.dictionary(...)`. It's much more readable and easier to type
to just use `"foo"`, `["bar", "buz"]`, and `["qux": "quux"]` and rely on
the `ExpressibleBy...Literal` conformances.
Modifications:
Add the docs and examples.
Result:
Hopefully, users will read the docs and write more idiomatic code.
* Update Logging.swift
0 commit comments