Container introspect its service under swarm

I would like to ask for a new swarm behavior.

I desire that a running container can introspect its service-id.

It would be great to have Docker swarm inject a host variable into a container so the container would know the service id under which it is managed, similar to the way HOSTNAME is set to the docker container-id. This makes it easier to see what container-id is being accessed when using mesh network.

docker service ps myservice
ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS
4fnudxx0afpt myservice.x3m6q4zeot9cd8db62i84z9qm myimage:latest myhost Running Running 3 minutes ago *:8077->8080/tcp

Desired behavior (inside container)
{container env:}
echo $HOSTNAME
ddc063d07f92
echo $DOCKER_SERVICE_ID
4fnudxx0afpt

Note the running container can introspect its service-id. Thoughts?