open-telemetry / open-telemetry/community
Dart support ?
Open
Nobody has claimed this yet.
area/language-interest
- Dominant language
- Python
- Stars
- 1.1k
- Forks
- 314
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 13
Description
GRPC is fully supported and dart, and i want to make grpc middleware in dart to use opentelemtry.
SO i was wondering if Dart would be possible to support.
I regularly code gen the golanf and dart code from a protobuf all the time and it works fine.
For example to gen chat.proto from a make file.
protoc-go:
protoc -I grpc-web/pkg/proto grpc-web/pkg/proto/v2.proto --gofast_out=plugins=grpc:./grpc-web/pkg/api/v2
proto-dart:
pub global activate protoc_plugin
mkdir -p $(SAMPLE_FSPATH)/lib/api/v1/google/protobuf
ifeq ($(GO_OS), windows)
@echo Windows detected
protoc empty.proto timestamp.proto wrappers.proto --proto_path=$(LIB_FSPATH)/server/third_party/google/protobuf/ --plugin=$(HOME_PATH)/AppData/Roaming/Pub/Cache/bin/protoc-gen-dart.bat --dart_out=grpc:"$(PROTO_OUTPUT)/client/lib/chat_view/api/v1/google/protobuf"
protoc chat.proto --proto_path=$(LIB_FSPATH)/server/api/proto/v1/ --plugin=$(HOME_PATH)/AppData/Roaming/Pub/Cache/bin/protoc-gen-dart.bat --dart_out=grpc:"$(PROTO_OUTPUT)/client/lib/chat_view/api/v1/"
else
protoc empty.proto timestamp.proto wrappers.proto --proto_path=$(LIB_FSPATH)/server/third_party/google/protobuf --plugin=protoc-gen-dart=$(HOME)/.pub-cache/bin/protoc-gen-dart --dart_out=grpc:$(SAMPLE_FSPATH)/lib/api/v1/google/protobuf
protoc chat.proto --proto_path=$(LIB_FSPATH)/server/api/proto/v1/ --plugin=protoc-gen-dart=$(HOME)/.pub-cache/bin/protoc-gen-dart --dart_out=grpc:$(SAMPLE_FSPATH)/client/lib/chat_view/api/v1/
endif
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the referenced protoc and proto-dart Makefile targets, including the chat.proto generation example. Determine the scope and feasibility of Dart middleware support and define what Dart support would need to include before implementation can begin.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart
- Domain
- observability-sre
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100