Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Semconv conformance to connect specification #63

Merged
merged 3 commits into from
Jan 20, 2023

Conversation

joshcarp
Copy link
Contributor

Conforms to open-telemetry/opentelemetry-specification#3116

Namely:

  • buf_connect is not connect_rpc
  • status_code is now error_code for connect_rpc instances. This means that no attribute is set for success
  • introduce string consts for grpc, grpcweb connect_rpc...

@joshcarp joshcarp changed the title semconv conformance to connect specification Semconv conformance to connect specification Jan 19, 2023
case grpcProtocol:
return grpcProtocol
case connectString:
return connectProtocol
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤷🏽‍♂️ No objections to this, but I've never quite understood why the extra indirection is worth it if we're only referencing the string in one place.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tbh I think it's probably just because it looks prettier:


	case grpcProtocol:
		return grpcProtocol
	case connectString:
		return connectProtocol

vs


	case grpcProtocol:
		return grpcProtocol
	case "connect":
		return connectProtocol

@joshcarp joshcarp merged commit 43e136f into main Jan 20, 2023
@joshcarp joshcarp deleted the feat/semconv-conformance branch January 20, 2023 20:41
akshayjshah pushed a commit that referenced this pull request Jul 26, 2023
Conforms to
open-telemetry/opentelemetry-specification#3116

Namely:
- `buf_connect` is not `connect_rpc` 
- `status_code` is now `error_code` for `connect_rpc` instances. This
means that no attribute is set for success
- introduce string consts for grpc, grpcweb connect_rpc...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants